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

:root {
    --color-bg: #FDFAF6;
    --color-bg-dark: #1A1714;
    --color-text: #1A1714;
    --color-text-secondary: #6B6560;
    --color-text-tertiary: #9B9590;
    --color-text-inverse: #FDFAF6;
    --color-accent: #C2956B;
    --color-accent-hover: #A87D57;
    --color-prep: #C2956B;
    --color-taper: #B07AA1;
    --color-early: #7BA38F;
    --color-long: #6B8EAE;
    --color-card: #FFFFFF;
    --color-card-dark: #242018;
    --color-border: #E8E0D8;
    --color-border-dark: #3A3430;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(26,23,20,0.06);
    --shadow-md: 0 4px 16px rgba(26,23,20,0.08);
    --shadow-lg: 0 12px 40px rgba(26,23,20,0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navigation ──────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
    background: rgba(253,250,246,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.logo-off { color: var(--color-text); }
.logo-ramp { color: var(--color-accent); }
.nav.scrolled .logo-off { color: var(--color-text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 24px;
    background: rgba(253,250,246,0.98);
    backdrop-filter: blur(16px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 8px 0;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { background: rgba(194,149,107,0.06); border-color: var(--color-accent); }

.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(168deg, #FDFAF6 0%, #F5EDE3 50%, #EDE4D8 100%);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-kicker {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--color-prep), var(--color-early));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hero-disclaimer {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}
.phone-mockup {
    width: 280px;
    background: #1A1714;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}
.phone-screen {
    background: linear-gradient(170deg, #2A2520 0%, #1A1714 100%);
    border-radius: 26px;
    padding: 20px 16px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mock-status-bar {
    height: 24px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 4px;
}
.mock-greeting {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.mock-headline {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.mock-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 110px;
    height: 110px;
    margin: 8px auto;
}
.ring-svg { width: 100%; height: 100%; }
.ring-progress {
    animation: ringDraw 2s ease-out 0.5s both;
}
@keyframes ringDraw {
    from { stroke-dashoffset: 326; }
    to { stroke-dashoffset: 82; }
}
.mock-ring-text {
    position: absolute;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}
.mock-banner {
    background: rgba(194,149,107,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}
.mock-cards {
    display: flex;
    gap: 8px;
}
.mock-card {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
}
.mock-card-icon { font-size: 18px; }

/* ─── Sections ────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}
.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}
.section-dark .section-kicker { color: var(--color-accent); }
.section-dark .section-subtitle { color: rgba(253,250,246,0.55); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ─── Stats ───────────────────────────────────────────────── */
.section-problem { background: #F5EDE3; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-number {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-taper), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}
.stat-cite {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-top: 4px;
}

/* ─── Phases ──────────────────────────────────────────────── */
.phases-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}
.phases-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 32px;
    bottom: 32px;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-prep), var(--color-taper), var(--color-early), var(--color-long));
    border-radius: 3px;
}
.phase-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 0;
    position: relative;
}
.phase-marker {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--phase-color);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--phase-color) 30%, transparent);
    z-index: 1;
}
.phase-content { flex: 1; }
.phase-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--phase-color);
}
.phase-duration {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.phase-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}
.phase-tone {
    font-size: 14px;
    font-style: italic;
    color: var(--phase-color);
    font-weight: 500;
}

/* ─── Features ────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
    grid-column: span 1;
}
.feature-card {
    background: var(--color-card-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(194,149,107,0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(253,250,246,0.55);
}

/* ─── Habits ──────────────────────────────────────────────── */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.habit-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}
.habit-week {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    background: rgba(194,149,107,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}
.habit-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.habit-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.habit-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ─── Privacy ─────────────────────────────────────────────── */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.privacy-item {
    text-align: center;
}
.privacy-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(194,149,107,0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.privacy-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.privacy-item p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(253,250,246,0.5);
}

/* ─── Differentiator ──────────────────────────────────────── */
.differ-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.differ-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}
.comparison-table {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.comp-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    gap: 0;
    padding: 16px 20px;
    background: #F5EDE3;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}
.comp-header span:nth-child(2),
.comp-header span:nth-child(3) { text-align: center; }
.comp-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    gap: 0;
    padding: 14px 20px;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
}
.comp-row span:nth-child(2),
.comp-row span:nth-child(3) { text-align: center; font-size: 18px; }
.comp-no { color: #D4A0A0; }
.comp-yes { color: var(--color-early); font-weight: 700; }

/* ─── CTA ─────────────────────────────────────────────────── */
.section-cta {
    background: linear-gradient(168deg, #2A2520 0%, #1A1714 100%);
    text-align: center;
    color: var(--color-text-inverse);
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.cta-subtitle {
    font-size: 18px;
    color: rgba(253,250,246,0.6);
    margin-bottom: 36px;
}
.cta-buttons { margin-bottom: 20px; }
.app-store-badge { display: inline-block; transition: transform 0.2s; }
.app-store-badge:hover { transform: scale(1.05); }
.cta-note {
    font-size: 13px;
    color: rgba(253,250,246,0.35);
}

/* ─── Disclaimer Banner ───────────────────────────────────── */
.disclaimer-banner {
    background: #F0E8DD;
    padding: 20px 0;
}
.disclaimer-banner p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-text-tertiary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 64px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-tagline {
    font-size: 14px;
    color: rgba(253,250,246,0.4);
    margin-top: 12px;
    max-width: 260px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(253,250,246,0.35);
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 14px;
    color: rgba(253,250,246,0.6);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding: 20px 0;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(253,250,246,0.25);
}

/* ─── Animations ──────────────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.stats-grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.habits-grid .animate-in:nth-child(2) { transition-delay: 0.06s; }
.habits-grid .animate-in:nth-child(3) { transition-delay: 0.12s; }
.habits-grid .animate-in:nth-child(4) { transition-delay: 0.18s; }
.habits-grid .animate-in:nth-child(5) { transition-delay: 0.24s; }
.habits-grid .animate-in:nth-child(6) { transition-delay: 0.30s; }
.habits-grid .animate-in:nth-child(7) { transition-delay: 0.36s; }
.habits-grid .animate-in:nth-child(8) { transition-delay: 0.42s; }
.features-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .animate-in:nth-child(5) { transition-delay: 0.4s; }
.phase-card:nth-child(2) .animate-in { transition-delay: 0.1s; }
.phase-card:nth-child(3) .animate-in { transition-delay: 0.2s; }
.phase-card:nth-child(4) .animate-in { transition-delay: 0.3s; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-ctas { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .habits-grid { grid-template-columns: repeat(2, 1fr); }
    .privacy-grid { grid-template-columns: repeat(2, 1fr); }
    .differ-layout { grid-template-columns: 1fr; }
    .differ-content .section-title { text-align: center; }
    .differ-content { text-align: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 32px; }
    .section { padding: 72px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .habits-grid { grid-template-columns: 1fr; }
    .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .phases-timeline::before { left: 23px; }
    .comp-header, .comp-row { grid-template-columns: 1fr 60px 60px; padding: 12px 14px; font-size: 12px; }
}
