/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:            #000000;
  --bg-surface:    #050505;
  --bg-card:       #0d1a13;
  --bg-dark-green: #01392D;
  --bg-mid-green:  #0d2e20;
  --border:        #1a2e24;
  --border-subtle: #111111;
  --primary:       #45DFA4;
  --primary-rgb:   69, 223, 164;
  --text-white:    #ffffff;
  --text-muted:    #767676;
  --text-dim:      #6a9980;
  --text-subtle:   #888888;

  --bg-nav:        #0d0d0d;

  --container-w:   1100px;
  --section-py:    80px;
  --radius-card:   12px;
  --radius-btn:    24px;
  --nav-h:         64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section          { padding: var(--section-py) 0; }
.section--surface {
  background:    var(--bg-surface);
  border-top:    1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.label {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom:  12px;
  display:        block;
}
.label--accent { color: var(--primary); }

.section-heading {
  font-size:      32px;
  font-weight:    800;
  letter-spacing: -0.5px;
  margin-bottom:  40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         13px 26px;
  border-radius:   var(--radius-btn);
  font-size:       14px;
  font-weight:     700;
  cursor:          pointer;
  transition:      opacity 0.15s, transform 0.15s;
  border:          none;
  white-space:     nowrap;
  font-family:     inherit;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--primary); color: #000; }
.btn--outline  { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn--white    { background: #fff; color: #000; }
.btn--sm       { padding: 8px 16px; font-size: 12px; }

.btn:focus-visible,
.nav__link:focus-visible,
.faq-item__q:focus-visible,
.footer__link:focus-visible,
.contact-card__link:focus-visible,
.support-email-cta__link:focus-visible {
  outline:        2px solid var(--primary);
  outline-offset: 3px;
  border-radius:  4px;
}

/* ============================================================
   LOGO PILL
   ============================================================ */
.logo-pill {
  display:       inline-flex;
  align-items:   center;
  background:    #fff;
  border-radius: 8px;
  padding:       5px 12px;
}
.logo-pill--lg {
  border-radius: 10px;
  padding:       8px 18px;
  margin-bottom: 20px;
}
.logo-pill--sm {
  background:    rgba(255,255,255,0.08);
  border-radius: 6px;
  padding:       4px 8px;
}

.logo-img--nav    { height: 28px; }
.logo-img--cta    { height: 36px; }
.logo-img--footer { height: 20px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position:      sticky;
  top:           0;
  z-index:       100;
  background:    var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height:        var(--nav-h);
  display:       flex;
  align-items:   center;
}

.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
}

.nav__links {
  display:     flex;
  align-items: center;
  gap:         28px;
}

.nav__link            { font-size: 14px; color: #888; transition: color 0.15s; }
.nav__link:hover      { color: var(--text-white); }
.nav__link.active     { color: var(--text-white); }

.nav__burger {
  display:    none;
  flex-direction: column;
  gap:        5px;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
}
.nav__burger span {
  display:       block;
  width:         22px;
  height:        2px;
  background:    var(--text-white);
  border-radius: 2px;
  transition:    transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 96px 0; }

.hero__inner {
  display:     flex;
  align-items: center;
  gap:         64px;
}

.hero__text { flex: 1; }

.hero__heading {
  font-size:      56px;
  font-weight:    900;
  line-height:    1.08;
  letter-spacing: -1px;
  margin-bottom:  20px;
}

.hero__sub {
  font-size:     16px;
  color:         var(--text-muted);
  line-height:   1.7;
  margin-bottom: 32px;
  max-width:     420px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* CSS phone frame */
.hero__phone { flex-shrink: 0; }

.phone-frame {
  width:         200px;
  height:        380px;
  background:    #0f0f0f;
  border-radius: 32px;
  border:        2px solid #222;
  overflow:      hidden;
  display:       flex;
  flex-direction: column;
  box-shadow:    0 0 80px rgba(var(--primary-rgb),0.06), 0 32px 64px rgba(0,0,0,0.4);
}

.phone-frame__bar { height: 12px; background: var(--primary); opacity: 0.35; }

.phone-frame__screen {
  flex:    1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap:     10px;
}

.phone-frame__block                { height: 36px; background: #1a1a1a; border-radius: 8px; }
.phone-frame__block--tall          { height: 72px; }
.phone-frame__block--accent        { background: var(--primary); opacity: 0.2; height: 28px; width: 70%; }
.phone-frame__block--wide          { width: 90%; }
.phone-frame__block--half          { width: 55%; }

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.feat-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       28px 24px;
  transition:    border-color 0.2s;
}
.feat-card:hover { border-color: rgba(var(--primary-rgb),0.3); }

.feat-card__icon {
  width:         48px;
  height:        48px;
  background:    rgba(var(--primary-rgb),0.1);
  border-radius: 12px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 16px;
  color:         var(--primary);
}
.feat-card__icon svg { width: 24px; height: 24px; }

.feat-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card__desc  { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   32px;
  text-align:            center;
}

.step__num {
  width:           44px;
  height:          44px;
  background:      var(--primary);
  border-radius:   50%;
  color:           #000;
  font-size:       18px;
  font-weight:     900;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto 16px;
}

.step__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step__desc  { font-size: 13px; color: var(--text-subtle); }

/* ============================================================
   DOWNLOAD CTA BAND
   ============================================================ */
.download {
  background:  linear-gradient(135deg, var(--bg-dark-green) 0%, var(--bg-mid-green) 100%);
  border-top:  1px solid #1a3d2c;
}

.download__inner {
  text-align:      center;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
}

.download__heading {
  font-size:      40px;
  font-weight:    900;
  letter-spacing: -0.5px;
  margin-bottom:  28px;
}

.download__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:  var(--bg-surface);
  border-top:  1px solid var(--border-subtle);
  padding:     28px 0;
}

.footer__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__copy  { font-size: 12px; color: var(--text-subtle); }

.footer__nav { display: flex; gap: 24px; }

.footer__link            { font-size: 13px; color: var(--text-subtle); transition: color 0.15s; }
.footer__link:hover      { color: var(--text-white); }
.footer__link.active     { color: var(--text-white); }

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-hero {
  padding:       64px 0 56px;
  text-align:    center;
  border-bottom: 1px solid var(--border-subtle);
}

.support-hero__title { font-size: 44px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 14px; }
.support-hero__sub   { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

.contact-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   20px;
  margin:                56px 0;
}

.contact-card {
  background:     var(--bg-card);
  border:         1px solid var(--border);
  border-radius:  var(--radius-card);
  padding:        32px 28px;
  display:        flex;
  flex-direction: column;
  gap:            14px;
}

.contact-card__icon {
  width:           48px;
  height:          48px;
  background:      rgba(var(--primary-rgb),0.1);
  border-radius:   12px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--primary);
}
.contact-card__icon svg { width: 24px; height: 24px; }

.contact-card__title { font-size: 17px; font-weight: 700; }
.contact-card__desc  { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.contact-card__link {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  color:       var(--primary);
  font-size:   14px;
  font-weight: 600;
  transition:  opacity 0.15s;
}
.contact-card__link:hover { opacity: 0.75; }

/* FAQ */
.faq-section          { margin-bottom: 56px; }
.faq-section__heading { font-size: 24px; font-weight: 800; margin-bottom: 20px; }

.faq-item             { border-top: 1px solid var(--border-subtle); }
.faq-item:last-child  { border-bottom: 1px solid var(--border-subtle); }

.faq-item__q {
  width:           100%;
  background:      none;
  border:          none;
  color:           var(--text-white);
  font-size:       15px;
  font-weight:     600;
  text-align:      left;
  padding:         20px 0;
  cursor:          pointer;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             16px;
  font-family:     inherit;
}
.faq-item__q svg           { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-item__q svg { transform: rotate(45deg); }

.faq-item__a {
  font-size:   14px;
  color:       var(--text-muted);
  line-height: 1.7;
  max-height:  0;
  overflow:    hidden;
  transition:  max-height 0.3s ease, padding-bottom 0.3s ease;
}
.faq-item.open .faq-item__a { max-height: 300px; padding-bottom: 20px; }

.support-email-cta {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-card);
  padding:       32px;
  text-align:    center;
  margin-bottom: 80px;
}
.support-email-cta__text { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.support-email-cta__link { color: var(--primary); font-weight: 700; font-size: 16px; transition: opacity 0.15s; }
.support-email-cta__link:hover { opacity: 0.75; }

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================================ */
.legal-hero {
  padding:       64px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero__title   { font-size: 40px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.legal-hero__updated { font-size: 13px; color: var(--text-muted); }

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

.legal-intro {
  font-size:     16px;
  color:         var(--text-muted);
  line-height:   1.7;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section          { margin-bottom: 36px; }
.legal-section__heading { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.legal-section__body    { font-size: 14px; color: var(--text-muted); line-height: 1.8; white-space: pre-line; }

.legal-footer-note {
  margin-top:    48px;
  padding-top:   28px;
  border-top:    1px solid var(--border-subtle);
  font-size:     13px;
  color:         var(--text-subtle);
  line-height:   1.6;
}

/* ============================================================
   RESPONSIVE — tablet (≤1023px)
   ============================================================ */
@media (max-width: 1023px) {
  .hero__heading { font-size: 44px; }
  .hero__inner   { gap: 40px; }
  .phone-frame   { width: 160px; height: 300px; }
}

/* ============================================================
   RESPONSIVE — mobile (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 48px; }

  /* Nav */
  .nav__burger { display: flex; }

  .nav__links {
    display:        none;
    position:       absolute;
    top:            var(--nav-h);
    left:           0;
    right:          0;
    background:     var(--bg-nav);
    border-bottom:  1px solid var(--border);
    flex-direction: column;
    align-items:    flex-start;
    padding:        16px 24px 24px;
    gap:            18px;
    z-index:        99;
  }
  .nav__links.open { display: flex; }

  /* Hero */
  .hero         { padding: 56px 0 48px; }
  .hero__inner  { flex-direction: column; gap: 40px; }
  .hero__heading { font-size: 36px; }
  .hero__sub    { max-width: 100%; }
  .phone-frame  { width: 160px; height: 300px; }

  /* Grids → 1 col */
  .features__grid,
  .contact-grid { grid-template-columns: 1fr; }

  .steps__grid { grid-template-columns: 1fr; gap: 24px; }

  /* Download band */
  .download__heading { font-size: 28px; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer__nav   { flex-wrap: wrap; gap: 16px; }

  /* Legal */
  .legal-hero__title { font-size: 28px; }

  /* Support */
  .support-hero__title { font-size: 32px; }
}

/* ============================================================
   MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation:  none !important;
  }
}
