/* =====================================================
   SummitPeek — Main Stylesheet
   ===================================================== */

/* --- Custom Properties --- */
:root {
  --sky:        #5BBFEA;
  --sky-dark:   #2A8FBC;
  --green-dark: #1E4620;
  --green-mid:  #2D6E32;
  --red:        #D93025;
  --black:      #0D0D0D;
  --white:      #FFFFFF;
  --off-white:  #F4F8FB;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A5568;
  --text-light: rgba(255,255,255,0.85);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.10);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.20);

  --max-width:  1100px;
  --nav-h:      68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   NAV
   ===================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
}

.nav-link[aria-current="page"] {
  font-weight: 600;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
  justify-self: end;
}

.nav-badge:hover {
  background: var(--sky);
  color: var(--white);
  transform: translateY(-1px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  transform: scale(1.04);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,0.50) 60%,
    rgba(0,0,0,0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 80px;
  max-width: 680px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-lg);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =====================================================
   APP STORE BADGE
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}

.badge:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.badge-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.badge span small {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.badge span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =====================================================
   SCREENSHOTS
   ===================================================== */
.screenshots {
  background: var(--off-white);
  padding: 96px 0;
}

.screenshot-pair {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.screenshot-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.screenshot-item--alt {
  direction: rtl;
}

.screenshot-item--alt > * {
  direction: ltr;
}

.screenshot-img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.screenshot-caption h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.screenshot-caption p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 420px;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
  background: var(--white);
  padding: 96px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--sky);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  fill: none;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =====================================================
   PHOTO STRIP
   ===================================================== */
.photo-strip {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.photo-strip-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
}

.photo-strip-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.photo-strip-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 680px;
}

.photo-strip-quote {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.55;
  font-style: italic;
  opacity: 0.96;
}

/* =====================================================
   DOWNLOAD CTA
   ===================================================== */
.cta {
  background: var(--off-white);
  padding: 96px 0;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 4px;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--black);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-logo img {
  border-radius: 6px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* =====================================================
   PRIVACY PAGE
   ===================================================== */
.privacy-page {
  padding-top: var(--nav-h);
}

.privacy-hero {
  background: var(--green-dark);
  padding: 64px 24px;
  text-align: center;
}

.privacy-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.privacy-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.privacy-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.privacy-body h2:first-child {
  margin-top: 0;
}

.privacy-body p,
.privacy-body li {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.privacy-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.privacy-body li {
  margin-bottom: 6px;
}

.privacy-body a {
  color: var(--sky-dark);
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .screenshot-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .screenshot-item--alt {
    direction: ltr;
  }

  .screenshot-caption p {
    max-width: 100%;
    margin: 0 auto;
  }

  .screenshot-img {
    max-width: 280px;
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    margin-top: 0;
  }

  .nav-badge {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* =====================================================
   FAQ PAGE
   ===================================================== */
.faq-page {
  padding-top: var(--nav-h);
}

.faq-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 64px 24px;
  text-align: center;
}

.faq-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.faq-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

.faq-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid #E2E8F0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky-dark);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.45;
}

.faq-answer {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-answer a {
  color: var(--sky-dark);
  text-decoration: underline;
}

/* =====================================================
   SUPPORT PAGE
   ===================================================== */
.contact-page {
  padding-top: var(--nav-h);
}

.contact-hero {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky) 100%);
  padding: 64px 24px 56px;
  text-align: center;
}

.contact-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.contact-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.contact-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* --- Form layout --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.required {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid #D1D9E0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(91, 191, 234, 0.20);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A0AEC0;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* --- Status message --- */
.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-status--success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.form-status--error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* --- Submit button --- */
.form-submit {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--sky-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
}

.form-submit:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* --- Support tips --- */
.contact-tips {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #E2E8F0;
}

.contact-tips h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.contact-tips ul {
  padding-left: 20px;
}

.contact-tips li {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .screenshots,
  .features,
  .cta {
    padding: 64px 0;
  }

  .hero-icon {
    width: 76px;
    height: 76px;
  }

  .screenshot-pair {
    gap: 56px;
  }
}
