/* ===========================================
   Growth10x — Brand System v2
   Fonts: Plus Jakarta Sans + Lora
   =========================================== */

/* --- Design Tokens (Light) --- */
:root {
    --linen:      #fbf1e5;
    --linen-dk:   #ede0cc;
    --teal:       #5cbcc5;
    --teal-lt:    #d8ebeb;
    --navy:       #2e2a4a;
    --navy-80:    rgba(46,42,74,0.8);
    --navy-10:    rgba(46,42,74,0.08);
    --gold:       #f5c842;
    --gold-dk:    #d9af2a;
    --gold-glow:  rgba(245,200,66,0.35);
    --muted:      #6b7a8d;
    --muted-lt:   #a8adb5;
    --white:      #ffffff;
    --card-bg:    #ffffff;
    --card-border: rgba(46,42,74,0.07);
    --surface:    #ffffff;

    --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --serif: 'Lora', Georgia, serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Dark Mode Tokens --- */
[data-theme="dark"] {
    --linen:      #16131f;
    --linen-dk:   #1e1a2e;
    --navy:       #f0eaf8;
    --navy-80:    rgba(240,234,248,0.8);
    --navy-10:    rgba(240,234,248,0.08);
    --muted:      #9ba3b5;
    --muted-lt:   #5e6578;
    --card-bg:    #1e1a2e;
    --card-border: rgba(240,234,248,0.08);
    --surface:    #1e1a2e;
    --linen-dk:   #2a2540;
    --gold-glow:  rgba(245,200,66,0.25);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--sans);
    background: var(--linen);
    color: var(--navy);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ─── Container ─── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}
.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── Eyebrow ─── */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before, .eyebrow::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--teal);
    opacity: 0.5;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #2e2a4a !important; /* Fixed dark color for contrast */
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
    white-space: nowrap;
    box-shadow: 0 4px 16px var(--gold-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    border-radius: inherit;
    pointer-events: none;
}
.btn-primary:hover {
    background: var(--gold-dk);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--gold-glow), 0 2px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:active { transform: translateY(-1px); }
.btn-primary svg { transition: transform 0.2s var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-large {
    font-size: 1.05rem;
    padding: 17px 36px;
}

.btn-cta-featured {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 17px 32px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1.5px solid var(--card-border);
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease-spring);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    border-color: var(--navy-10);
    background: var(--navy-10);
    transform: translateY(-2px);
}

/* ─── Reveal animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===========================================
   NAVIGATION
   =========================================== */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#nav.scrolled {
    padding: 14px 0;
    background: rgba(251,241,229,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--card-border);
}
[data-theme="dark"] #nav.scrolled {
    background: rgba(22,19,31,0.85);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wordmark {
    font-family: var(--sans);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    transition: opacity 0.2s;
}
.wordmark:hover { opacity: 0.8; }
.wordmark em {
    font-style: normal;
    color: var(--gold-dk);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links > a:not(.nav-btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}
.nav-links > a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal);
    transition: width 0.25s var(--ease);
}
.nav-links > a:not(.nav-btn):hover { color: var(--navy); }
.nav-links > a:not(.nav-btn):hover::after { width: 100%; }

.nav-btn {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border: none;
    transition: background 0.25s var(--ease), transform 0.2s var(--ease-spring), box-shadow 0.2s !important;
}
[data-theme="dark"] .nav-btn {
    background: var(--navy) !important;
    color: #1e1a2e !important;
    border: none;
}
.nav-btn:hover {
    background: var(--gold) !important;
    color: #2e2a4a !important; /* Dark text for contrast against gold background */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gold-glow) !important;
}

/* ─── Theme Toggle ─── */
.theme-toggle {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 50px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.3s, border-color 0.3s, transform 0.2s var(--ease-spring);
    font-size: 0.8rem;
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-icon { transition: opacity 0.3s, transform 0.3s; line-height: 1; }
[data-theme="light"] .theme-icon--moon { opacity: 0.3; }
[data-theme="dark"] .theme-icon--sun { opacity: 0.3; }

/* ===========================================
   HERO
   =========================================== */
.hero {
    position: relative;
    padding: 188px 0 110px;
    overflow: hidden;
}
.hero-bg-accent {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(92,188,197,0.14) 0%, rgba(251,241,229,0) 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: floatBg 12s ease-in-out infinite alternate;
}
[data-theme="dark"] .hero-bg-accent {
    background: radial-gradient(circle, rgba(92,188,197,0.1) 0%, transparent 65%);
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--card-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
@keyframes floatBg {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-30px, 30px) scale(1.05); }
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: var(--navy);
}
.hero h1 em {
    font-style: italic;
    color: var(--teal);
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 52px;
    font-weight: 400;
}
.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 88px;
}

/* Stats strip */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    padding-top: 52px;
    border-top: 1px solid var(--linen-dk);
    max-width: 860px;
    margin: 0 auto;
}
.stat { display: flex; align-items: center; gap: 18px; text-align: left; }
.stat-n {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1;
    color: var(--navy);
}
.stat-l {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-rule {
    width: 1px;
    height: 44px;
    background: var(--linen-dk);
}

/* ===========================================
   ENGINES
   =========================================== */
.engines {
    padding: 110px 0 130px;
}
.engines-header {
    margin-bottom: 72px;
}
.engines-header h2 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.18;
    margin-bottom: 22px;
    color: var(--navy);
}
.engines-note {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}
.engine-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.engine-item {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 64px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    align-items: start;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 16px rgba(46,42,74,0.04);
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
    will-change: transform;
}
.engine-item:hover {
    box-shadow: 0 16px 48px rgba(46,42,74,0.08);
    border-color: rgba(92,188,197,0.2);
}
[data-theme="dark"] .engine-item:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    border-color: rgba(92,188,197,0.18);
}
.engine-bg-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 400px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(92,188,197,0.05) 0%, transparent 65%);
    pointer-events: none;
}
.engine-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
    position: relative;
    z-index: 2;
}
.engine-num {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--teal);
    line-height: 1;
    opacity: 0.85;
}
.engine-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-lt);
}
.engine-content {
    position: relative;
    z-index: 2;
}
.engine-content h3 {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.22;
    margin-bottom: 18px;
    color: var(--navy);
}
.engine-pitch {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.72;
    margin-bottom: 32px;
    max-width: 560px;
}
.engine-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.engine-points li {
    font-size: 0.93rem;
    color: var(--navy);
    padding-left: 22px;
    position: relative;
    line-height: 1.55;
    font-weight: 500;
}
.engine-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

/* ===========================================
   PRICING
   =========================================== */
.pricing {
    padding: 120px 0 140px;
    background: var(--surface);
    position: relative;
}
.pricing::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--linen-dk) 50%, transparent 100%);
}
.pricing-header {
    margin-bottom: 72px;
}
.pricing h2 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.18;
    margin-bottom: 20px;
    color: var(--navy);
}
.pricing-note {
    font-size: 1.05rem;
    color: var(--muted);
}
.pricing-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 28px;
    align-items: stretch;
}

/* Featured card */
.price-featured {
    background: var(--navy);
    border-radius: 20px;
    padding: 52px 44px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(46,42,74,0.18);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}
[data-theme="dark"] .price-featured {
    background: linear-gradient(145deg, #2a2050 0%, #1a1730 100%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.price-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(46,42,74,0.22);
}
.price-featured-bg {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(92,188,197,0.18) 0%, rgba(46,42,74,0) 50%);
    pointer-events: none;
    z-index: 1;
}
.price-featured-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.price-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--teal);
    margin-bottom: 22px;
    display: block;
}
.price-featured h3 {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
    color: rgba(255,255,255,0.97);
}
.price-num {
    font-family: var(--serif);
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--white);
}
.price-num span {
    font-family: var(--sans);
    font-size: 1rem;
    color: rgba(255,255,255,0.45);
}
.price-note {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 36px;
    line-height: 1.6;
}
.price-list {
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}
.price-list li {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    padding-left: 22px;
    position: relative;
    line-height: 1.55;
}
.price-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 0.85rem;
    top: 2px;
}

/* Singles */
.price-singles {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.price-card {
    background: var(--linen);
    border-radius: 16px;
    padding: 34px 38px;
    border: 1px solid var(--card-border);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease), border-color 0.25s;
}
[data-theme="dark"] .price-card {
    background: var(--card-bg);
}
.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(46,42,74,0.07);
    border-color: rgba(92,188,197,0.2);
}
.price-chip {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-lt);
    display: block;
    margin-bottom: 10px;
}
.price-card h4 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--navy);
}
.price-sm {
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--navy);
}
.price-sm em {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted-lt);
}
.price-plus {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.price-list-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}
.price-list-sm li {
    font-size: 0.875rem;
    color: var(--muted);
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
}
.price-list-sm li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.05;
}

/* ===========================================
   FOOTER
   =========================================== */
#footer {
    padding: 44px 0;
    background: var(--surface);
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 10;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-row p {
    font-size: 0.875rem;
    color: var(--muted-lt);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .pricing-layout { grid-template-columns: 1fr; }
    .price-singles { flex-direction: row; flex-wrap: wrap; }
    .price-singles .price-card { flex: 1; min-width: 280px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .nav-links > a:not(.nav-btn) { display: none; }
    .theme-toggle { display: none; }

    .hero { padding: 148px 0 88px; }
    .hero h1 { font-size: clamp(2.3rem, 8vw, 3rem); }
    .hero-stats { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
    .stat { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .stat-rule { width: 48px; height: 1px; }

    .engines, .pricing { padding: 80px 0; }
    .engine-item {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 28px;
    }
    .engine-meta { flex-direction: row; align-items: center; }
    .pricing-layout { grid-template-columns: 1fr; }
    .price-singles { flex-direction: column; }
    .price-singles .price-card { min-width: unset; padding: 28px 24px; }
    .price-featured { padding: 40px 28px; }

    .footer-row { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 300px; margin: 0 auto 72px; }
    .hero-cta-row .btn-primary, .hero-cta-row .btn-ghost { justify-content: center; width: 100%; }
    .engine-item { padding: 28px 20px; }
    .price-featured { padding: 32px 22px; }
    .eyebrow::before, .eyebrow::after { display: none; }
}
