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

:root {
  --bg:          #09090D;
  --surface:     #111118;
  --surface-2:   #17171F;
  --border:      #1E1E2C;
  --border-2:    #252535;
  --amber:       #F0B030;
  --amber-dim:   #C08020;
  --amber-glow:  rgba(240,176,48,.15);
  --income:      #34C78A;
  --burn:        #F0704A;
  --text:        #EEEEF4;
  --text-2:      #9090A8;
  --text-3:      #5C5C78;
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

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

/* ── Typography helpers ──────────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  padding: 10px 20px;
  white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--amber);
  color: #0A0805;
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-2); opacity: 1; background: var(--surface-2); }

.btn--sm  { padding: 7px 16px; font-size: .8rem; }
.btn--lg  { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,13,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo { width: 32px; height: 32px; border-radius: 7px; }
.nav__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  text-align: center;
}

.hero__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(240,176,48,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(240,176,48,.35);
  background: rgba(240,176,48,.08);
  color: var(--amber);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Features ────────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
}

.features > .container > .section-label,
.features > .container > .section-title {
  text-align: center;
}
.features > .container > .section-title { margin-bottom: 56px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--border-2); }

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card__icon--burn    { background: rgba(240,112,74,.12); color: var(--burn); }
.feature-card__icon--income  { background: rgba(52,199,138,.12); color: var(--income); }
.feature-card__icon--arc     { background: rgba(240,176,48,.12); color: var(--amber); }
.feature-card__icon--cashflow{ background: rgba(130,130,220,.12); color: #8888DC; }

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature-card__body {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Advisor ─────────────────────────────────────────────────────── */
.advisor {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.advisor__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.advisor__body {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 20px 0 28px;
}

.advisor__examples {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advisor__examples li {
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  color: var(--text-2);
  font-style: italic;
}
.advisor__examples li::before {
  content: '"';
  color: var(--amber-dim);
}

.advisor__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.6;
  max-width: 420px;
}
.chat-bubble--user {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble--ai {
  background: rgba(240,176,48,.08);
  border: 1px solid rgba(240,176,48,.2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble__label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

/* ── Privacy ─────────────────────────────────────────────────────── */
.privacy {
  padding: 96px 0;
  text-align: center;
}

.privacy__inner { max-width: 600px; margin: 0 auto; }

.privacy__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(52,199,138,.1);
  border: 1px solid rgba(52,199,138,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--income);
}
.privacy__icon svg { width: 28px; height: 28px; }

.privacy__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.privacy__body {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.privacy__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--text-2);
  font-weight: 500;
}

/* ── iOS Waitlist ─────────────────────────────────────────────────── */
.waitlist {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.waitlist__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.waitlist__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(130,130,220,.1);
  border: 1px solid rgba(130,130,220,.25);
  color: #A0A0E0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.waitlist__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8888DC;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.waitlist__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.waitlist__body {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
}

.waitlist__field {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist__input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.waitlist__input::placeholder { color: var(--text-3); }
.waitlist__input:focus { border-color: var(--amber-dim); }

.waitlist__fine {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--text-3);
}

.waitlist__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(52,199,138,.08);
  border: 1px solid rgba(52,199,138,.25);
  border-radius: var(--radius);
  color: var(--income);
  font-weight: 500;
  font-size: .95rem;
}

/* ── Prose page (Privacy, etc.) ──────────────────────────────────── */
.prose-page {
  padding: 72px 0 96px;
}

.prose-page__header {
  max-width: 680px;
  margin-bottom: 48px;
}

.prose-page__updated {
  font-size: .78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.prose-page__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.prose-page__subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.65;
}

.prose-page__body {
  max-width: 680px;
}

/* Markdown-generated elements */
.prose-page__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.prose-page__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.prose-page__body h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 24px 0 8px;
}

.prose-page__body p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prose-page__body a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-page__body a:hover { opacity: .8; }

.prose-page__body ul, .prose-page__body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose-page__body li {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.prose-page__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.prose-page__body strong { color: var(--text); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-2);
}
.footer__logo { width: 24px; height: 24px; border-radius: 5px; }
.footer__copy { font-size: .83rem; color: var(--text-3); }
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a { font-size: .83rem; color: var(--text-3); transition: color .15s; }
.footer__links a:hover { color: var(--text-2); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero { padding: 72px 0 64px; }

  .advisor__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .advisor__visual { display: none; }

  .waitlist__field { flex-direction: column; }
  .waitlist__field .btn { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
