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

:root {
  --bg: #080808;
  --bg-raised: #111111;
  --border: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.4);
  --subtle: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --font: 'Inter', -apple-system, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Grain ─────────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -3%); }
  20% { transform: translate(3%, -3%); }
  30% { transform: translate(-3%, 3%); }
  40% { transform: translate(3%, 3%); }
  50% { transform: translate(-3%, 0); }
  60% { transform: translate(3%, 0); }
  70% { transform: translate(0, -3%); }
  80% { transform: translate(0, 3%); }
  90% { transform: translate(-1%, 1%); }
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── NAV ───────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-cta:hover {
  color: var(--text);
}

/* ── SECTION SHARED ──────────────────────────────────────────── */
.section-inner {
  max-width: 800px; /* narrowed for readability */
  margin: 0 auto;
  padding: 120px 40px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.section-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 600px;
}

.highlight-text {
  font-weight: 600;
  color: var(--text);
}

.text-center {
  text-align: center;
  max-width: 900px;
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 40px 80px;
  gap: 60px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-headline {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.hero-headline .line {
  display: block;
}

.hero-headline .line span.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordUp 0.7s var(--ease) forwards;
}

@keyframes wordUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  width: fit-content;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hero-btn svg {
  transition: transform 0.25s;
}

.hero-btn:hover svg {
  transform: translateX(3px);
}

.hero-btn-scroll:hover svg {
  transform: translateY(3px) !important;
}

/* Hero Visual: Floating Hooks */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.floating-hooks {
  position: relative;
  width: 100%;
  height: 100%;
}

.hook-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: floatCard 6s ease-in-out infinite;
  max-width: 260px;
}

.hook-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  width: fit-content;
}

.hook-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.hook-meta {
  font-size: 11px;
  color: var(--muted);
}

.hook-1 { top: 10%; left: 0; animation-delay: 0s; }
.hook-2 { top: 35%; right: 0; animation-delay: -1.5s; }
.hook-3 { bottom: 25%; left: 10%; animation-delay: -3s; }
.hook-4 { bottom: 0; right: 10%; animation-delay: -4.5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeIn 2s 1.5s both;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* ── PROBLEM (PAIN POINTS) ────────────────────────────────── */
.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.pain-card {
  background: var(--border);
  padding: 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
  transition: color 0.3s;
}

.pain-card:hover {
  color: var(--text);
}

/* ── WHY CURRENT SAVING FAILS ────────────────────────────── */
.fails-body {
  display: flex;
  margin-top: 40px;
  margin-bottom: 24px;
}

.fails-col {
  flex: 1;
  padding: 0 40px;
}

.fails-col h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--muted);
}

.highlight-col h4 {
  color: var(--text);
}

.fails-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fails-col li {
  font-size: 16px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.fails-col li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--subtle);
}

.highlight-col li {
  color: var(--text);
  font-weight: 500;
}

.highlight-col li::before {
  color: var(--text);
}

.fails-divider {
  width: 1px;
  background: var(--border);
  margin-top: 10px;
  margin-bottom: 10px;
}

.split-comparison {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.split-side {
  flex: 1;
  padding: 40px;
}

.bad-side {
  background: rgba(255,255,255,0.02);
}

.good-side {
  background: rgba(255,255,255,0.06);
}

.split-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--muted);
}

.good-side .split-title {
  color: var(--text);
}

.split-side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-side li {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.good-side li {
  color: var(--text);
  font-weight: 500;
}

.cross { color: #ff5555; font-size: 12px; }
.check { color: #55ffaa; font-size: 12px; }

/* ── THE HOOK SYSTEM ─────────────────────────────────────── */
.hook-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.hook-pill {
  padding: 16px 24px;
  border-radius: 100px;
  background: var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s;
  cursor: default;
}

.hook-pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
}

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

.step-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 200px;
}

.step-connector {
  flex: 0 0 60px;
  height: 1px;
  background: var(--border);
  margin-top: 8px;
  margin-left: 16px;
  margin-right: 16px;
  align-self: flex-start;
  position: relative;
}

/* ── USE CASES ───────────────────────────────────────────── */
.cards-scroller {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
}

.cards-scroller::-webkit-scrollbar {
  display: none;
}

.use-card {
  flex: 0 0 240px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 32px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.use-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.use-card p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ── DIFFERENTIATION ─────────────────────────────────────── */
.diff-table-wrapper {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.diff-table th, .diff-table td {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  width: 50%;
}

.diff-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.diff-table td {
  color: var(--muted);
}

.diff-table .highlight-cell {
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,0.04);
}

.diff-table tr:last-child td {
  border-bottom: none;
}

/* ── FUTURE SELF ─────────────────────────────────────────── */
.large-statement {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.emotional-copy {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CTA STRIP ───────────────────────────────────────────────── */
#cta-strip {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#footer {
  padding: 48px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-tagline {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 899px) {
  #hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    text-align: center;
    justify-items: center;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    height: 420px;
  }
  
  .hook-card {
    transform: scale(0.8);
    max-width: 240px;
  }

  /* Mobile specific positioning for floating hooks */
  .hook-1 { top: 5%; left: 0; z-index: 2; }
  .hook-2 { top: 25%; right: 0; z-index: 1; }
  .hook-3 { top: 50%; left: 5%; z-index: 3; }
  .hook-4 { bottom: 5%; right: 5%; z-index: 4; }

  .hero-sub {
    margin: 0 auto;
  }

  .hero-buttons {
    margin: 0 auto;
  }

  .scroll-hint {
    display: none;
  }

  .pain-points-grid {
    grid-template-columns: 1fr;
  }

  .fails-body {
    flex-direction: column;
    gap: 32px;
  }

  .fails-col {
    padding: 0;
  }

  .fails-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .split-comparison {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    display: none;
  }
  
  .diff-table th, .diff-table td {
    padding: 16px;
    font-size: 14px;
  }

  /* ── Performance optimizations for mobile ── */
  .grain {
    display: none !important;
  }

  .visual-glow {
    animation: none;
    opacity: 0.6;
  }

  .hook-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(24, 24, 24, 0.95);
    box-shadow: none;
  }
}

@media (max-width: 540px) {
  #nav {
    padding: 16px 20px;
  }

  .section-inner {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}