/* ── Fonts ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/manrope-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/manrope-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/manrope-800.ttf') format('truetype');
}

/* ── Tokens ── */
:root {
  --canvas:           #121416;
  --surface-low:      #1a1c1e;
  --surface-high:     #282a2c;
  --surface-highest:  #333537;
  --surface-bright:   #3d3f41;
  --on-surface:       #e8eaeb;
  --on-surface-muted: #9ca3af;
  --on-surface-dim:   #94a3b8;
  --primary:          #71d7cd;
  --primary-dark:     #3ca89e;
  --tertiary:         #ffb954;
  --outline:          #2e3133;
  --start:            #4eaa6e;
  --stop:             #d95f55;
  --maintain:         #6b83c4;
  --replace:          #a47ed4;
  --font-display:     'Manrope', 'Helvetica Neue', sans-serif;
  --font-body:        'Inter', 'Helvetica Neue', sans-serif;
  --radius:           12px;
  --radius-lg:        20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 20, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  transition: height 0.3s;
}

/* Scroll-Driven Animations: Shrinking Nav & Progress Bar */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
    transform-origin: left;
    transform: scaleX(0);
    animation: grow-progress auto linear;
    animation-timeline: scroll(block root);
    z-index: 1000;
  }

  @keyframes grow-progress {
    to { transform: scaleX(1); }
  }

  nav {
    animation: shrink-nav auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }

  @keyframes shrink-nav {
    to {
      background: rgba(18, 20, 22, 0.95);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
  }

  .nav-inner {
    animation: shrink-nav-inner auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 80px;
  }

  @keyframes shrink-nav-inner {
    to {
      height: 52px;
    }
  }
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--on-surface);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--on-surface); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #121416;
}
.btn-ghost {
  background: var(--surface-high);
  color: var(--on-surface);
  border: 1px solid var(--outline);
}

/* ── Hero ── */
.hero {
  padding: 96px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(113, 215, 205, 0.08) 0%, rgba(18, 20, 22, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(113, 215, 205, 0.1);
  border: 1px solid rgba(113, 215, 205, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--on-surface);
  max-width: 780px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 30%, var(--tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--on-surface-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--on-surface-dim);
}
.hero-badge::before {
  content: '🔒';
  font-size: 11px;
}

/* ── Phone frames ── */
.phone-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 0 16px 48px;
}
.phone {
  flex-shrink: 0;
  width: 200px;
  border-radius: 32px;
  background: var(--surface-high);
  border: 2px solid var(--surface-bright);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}
.phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.phone.hero-phone {
  width: 240px;
  border-radius: 40px;
}
/* Bezel Overlay */
.phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}
/* Glass Reflection Sheen */
.phone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 2;
}
.phone img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }


/* offset effect for 4-up row */
.phone-row .phone:nth-child(1) { transform: translateY(30px); }
.phone-row .phone:nth-child(2) { transform: translateY(0); }
.phone-row .phone:nth-child(3) { transform: translateY(20px); }
.phone-row .phone:nth-child(4) { transform: translateY(10px); }
.phone-row .phone:nth-child(1):hover,
.phone-row .phone:nth-child(2):hover,
.phone-row .phone:nth-child(3):hover,
.phone-row .phone:nth-child(4):hover { transform: translateY(-6px); }

/* ── Section shared ── */
section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--on-surface);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--on-surface-muted);
  max-width: 540px;
  line-height: 1.65;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.feature-card {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: rgba(113, 215, 205, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(4deg);
}

/* Feature Cards Scroll Reveal Animation */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .feature-card {
      animation: fade-in-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 15px;
  color: var(--on-surface-muted);
  line-height: 1.65;
}
.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── Screenshots section ── */
.screenshots { padding: 80px 0 100px; overflow: hidden; }
.screenshots .section-title { text-align: center; }
.screenshots .section-sub { text-align: center; margin: 0 auto 56px; }

/* ── Privacy strip ── */
.privacy-strip {
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  padding: 60px 0;
}
.privacy-strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.privacy-strip-text { flex: 1; min-width: 260px; }
.privacy-strip-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--on-surface);
  margin-bottom: 12px;
}
.privacy-strip-text p {
  font-size: 16px;
  color: var(--on-surface-muted);
  line-height: 1.65;
}
.privacy-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}
.privacy-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--on-surface-muted);
}
.privacy-pillar::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Download CTA ── */
.cta-section {
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--on-surface);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.cta-section p {
  font-size: 17px;
  color: var(--on-surface-muted);
  margin-bottom: 36px;
}

/* ── App Store badge ── */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--on-surface);
  color: var(--canvas);
  border-radius: 14px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.15s, transform 0.1s;
}
.appstore-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; color: var(--canvas); }
.appstore-btn svg { flex-shrink: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--outline);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--on-surface-muted);
}
.footer-logo span { color: var(--primary); }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--on-surface-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--on-surface); text-decoration: none; }
.footer-copy {
  font-size: 13px;
  color: var(--on-surface-dim);
}

/* ── Support / Privacy pages ── */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--outline);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--on-surface);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  color: var(--on-surface-muted);
  max-width: 520px;
}

/* FAQ accordion */
.faq { padding: 64px 0; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
details {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--surface-bright); }
summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }

/* Smooth Accordion Height Transition using CSS Grid */
details .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
}
details[open] .faq-content {
  grid-template-rows: 1fr;
}
.faq-answer {
  overflow: hidden;
  padding: 0 24px 0px;
  font-size: 15px;
  color: var(--on-surface-muted);
  line-height: 1.7;
  transition: padding 0.25s ease-out;
}
details[open] .faq-answer {
  padding: 0 24px 20px;
}
.faq-answer a { color: var(--primary); }

/* Contact box */
.contact-box {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-box h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface);
  margin-bottom: 6px;
}
.contact-box p { font-size: 15px; color: var(--on-surface-muted); }

/* Privacy policy prose */
.prose { padding: 64px 0; max-width: 720px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 40px 0 12px;
  letter-spacing: -0.2px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 16px;
  color: var(--on-surface-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.prose a { color: var(--primary); }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li {
  font-size: 16px;
  color: var(--on-surface-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.prose .updated {
  display: inline-block;
  font-size: 13px;
  color: var(--on-surface-dim);
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .phone-row { gap: 10px; }
  .phone { width: 140px; border-radius: 22px; }
  .phone.hero-phone { width: 170px; }
  .privacy-strip-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-box { flex-direction: column; }
}

/* ── Contact Form & Inputs ── */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1;
  min-width: 200px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--canvas);
  border: 1px solid var(--outline);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--on-surface-muted);
  opacity: 0.6;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 215, 205, 0.15);
}
.form-success {
  padding: 24px;
  background: rgba(78, 170, 110, 0.1);
  border: 1px solid rgba(78, 170, 110, 0.25);
  border-radius: var(--radius);
  color: var(--start);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
