/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0A0A0A;
  color: #F5F5F5;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Variables ===== */
:root {
  --accent: #E38346;
  --teal: #0D6E6E;
  --purple: #7C5CFC;
  --text-primary: #F5F5F5;
  --text-secondary: #999999;
  --text-muted: #888888;
  --text-dim: #AAAAAA;
  --text-dark: #666666;
  --bg-primary: #0A0A0A;
  --bg-secondary: #0F0F0F;
  --bg-card: #161616;
  --border: #222222;
  --border-light: #333333;
  --max-w: 1280px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}
.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0F0F0F;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 80px;
  gap: 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-brand {
  font-size: 22px;
  font-weight: 700;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }
.nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}
.nav-back:hover { opacity: 0.8; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle svg { display: block; }

/* ===== Buttons ===== */
.btn-download {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-download:hover { opacity: 0.85; }
.btn-ghost {
  background: #1A1A1A;
  color: #F5F5F5;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 28px;
  border: 1.5px solid #333;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { background: #222; }
.btn-outline {
  background: transparent;
  color: #F5F5F5;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 28px;
  border: 1.5px solid #444;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,.05); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #0A0A0A 0%, #111 50%, #1A1510 100%);
  padding: 100px 80px 80px;
}
.badge {
  background: #2A1A0D;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 40px;
  display: inline-block;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
  max-width: 800px;
  color: #F5F5F5;
  margin-bottom: 24px;
}
.hero-accent {
  color: #E38346;
  font-size: 1.25em;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1A1A1A;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 20px;
  transition: background 0.2s;
}
.store-btn:hover { background: #222; }
.store-btn > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-small {
  font-size: 10px;
  color: #AAAAAA;
  display: block;
}
.store-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: block;
}
.trust-row {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #777;
}
.icon-teal { color: var(--teal); }

/* ===== Sections ===== */
.section-dark {
  background: #0F0F0F;
  padding: 80px;
}
.section-darker {
  background: #0A0A0A;
  padding: 80px;
}
.section-gradient {
  background: linear-gradient(180deg, #0A0A0A 0%, #15120D 50%, #1A1510 100%);
  padding: 80px;
}
.section-cta {
  background: #111;
  padding: 80px;
}
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 700px;
}
.section-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-muted);
  max-width: 560px;
  text-align: center;
}
.label-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}
.label-mono.accent { color: var(--accent); }
.label-mono.teal { color: var(--teal); }

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.feature-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #F5F5F5;
}
.feature-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 0 16px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.step h3 {
  font-size: 20px;
  font-weight: 600;
  color: #F5F5F5;
}
.step p {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* ===== Phones (App Preview) ===== */
.phones-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.phone-mock {
  width: 260px;
  height: 520px;
  background: #161616;
  border: 1px solid #2A2A2A;
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  max-width: 700px;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 32px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Footer (homepage) ===== */
.footer {
  background: #060606;
  padding: 48px 80px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-tagline {
  font-size: 13px;
  color: #666;
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-link {
  font-size: 14px;
  color: #AAAAAA;
  transition: color 0.2s;
}
.footer-link:hover { color: #F5F5F5; }
.footer-divider { height: 1px; background: #222; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: #666; }
.footer-social {
  display: flex;
  gap: 16px;
  color: #666;
}
.footer-social a { color: #666; transition: color 0.2s; }
.footer-social a:hover { color: #AAA; }

/* ===== Legal pages (Privacy, Terms) ===== */
.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 80px;
}
.legal-content {
  background: #0F0F0F;
  padding: 64px 80px 80px;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #F5F5F5;
}
.legal-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #777;
}
.legal-intro {
  font-size: 16px;
  color: #999;
  line-height: 1.6;
}
.legal-divider { height: 1px; background: #1A1A1A; }
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: #F5F5F5;
}
.legal-section p {
  font-size: 15px;
  color: #999;
  line-height: 1.6;
}
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}
.legal-list li {
  font-size: 15px;
  color: #999;
  line-height: 1.5;
  list-style: none;
}
.legal-list li::before { content: "• "; color: #555; }
.legal-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.legal-email:hover { opacity: 0.8; }

/* Legal Footer */
.legal-footer {
  background: #0A0A0A;
  border-top: 1px solid #222;
}
.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 80px;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer-copy { font-size: 12px; color: #666; }
.legal-footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.legal-footer-link {
  font-size: 12px;
  font-weight: 500;
  color: #777;
  transition: color 0.2s;
}
.legal-footer-link:hover { color: #AAA; }
.legal-footer-link.active { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .nav-inner { padding: 20px 40px; }
  .legal-nav-inner { padding: 20px 40px; }
  .hero { padding: 80px 40px 60px; }
  .section-dark,
  .section-darker,
  .section-gradient,
  .section-cta { padding: 60px 40px; }
  .footer { padding: 40px 40px 24px; }
  .footer-links { gap: 40px; }
  .legal-content { padding: 48px 40px 64px; }
  .legal-footer-inner { padding: 28px 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-mock { width: 200px; height: 400px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav */
  .nav-inner { padding: 16px 20px; }
  .nav-toggle { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F0F0F;
    border-top: 1px solid #222;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
    z-index: 99;
  }
  .nav-right.open { display: flex; }
  .nav { position: relative; }
  .nav-cta { align-self: stretch; text-align: center; justify-content: center; }

  .legal-nav-inner { padding: 16px 20px; }

  /* Hero */
  .hero { padding: 56px 20px 48px; }

  /* Sections */
  .section-dark,
  .section-darker,
  .section-gradient,
  .section-cta { padding: 48px 20px; }

  /* Grids → single column */
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Phones */
  .phones-row { gap: 16px; }
  .phone-mock { width: 140px; height: 280px; border-radius: 20px; }

  /* Trust row */
  .trust-row { gap: 16px; }

  /* Footer */
  .footer { padding: 40px 20px 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Legal */
  .legal-content { padding: 40px 20px 56px; }
  .legal-footer-inner { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .store-row { flex-direction: column; align-items: center; }
  .phone-mock { width: 110px; height: 220px; border-radius: 16px; }
  .footer-links { flex-direction: column; }
  .legal-footer-links { flex-direction: column; align-items: flex-start; gap: 12px; }
}
