/* ============================================================
   MoonlightAI Solutions — Design System v2
   Shared stylesheet for all pages
   ============================================================ */

:root {
    --black: #050505;
    --black-2: #0a0a0b;
    --black-3: #101012;
    --surface: #0d0d0f;
    --border: #1c1c20;
    --border-strong: #2a2a30;

    --green: #10b981;
    --green-bright: #34d399;
    --green-dark: #059669;
    --green-glow: rgba(16, 185, 129, 0.14);
    --green-subtle: rgba(16, 185, 129, 0.07);

    --white: #ffffff;
    --gray-100: #f2f2f3;
    --gray-300: #c9c9cf;
    --gray-400: #9c9ca6;
    --gray-500: #6e6e78;
    --gray-600: #4a4a52;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 30px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 0 1px rgba(16,185,129,0.25), 0 8px 40px rgba(16,185,129,0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--green); color: #000; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 88px 0; }
.section-alt { background: var(--black-2); border-block: 1px solid var(--border); }

/* ---------- Scroll progress & cursor glow ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-bright));
    transform: scaleX(0); transform-origin: left; z-index: 2000;
}

.cursor-glow {
    position: fixed; top: 0; left: 0; width: 480px; height: 480px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%);
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
    background: transparent;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px 0;
    border-bottom-color: var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--white); text-decoration: none;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark-img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }
.logo-text {
    font-size: 1.12rem; font-weight: 800; letter-spacing: 0.02em;
    white-space: nowrap;
}
.logo-text em { font-style: normal; color: var(--green-bright); }
.logo-img { height: 34px; width: auto; flex: none; display: block; }

.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a {
    font-size: 0.92rem; font-weight: 500; color: var(--gray-400);
    transition: color 0.2s var(--ease); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--green); transition: width 0.25s var(--ease); border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: #03130d; font-weight: 600; font-size: 0.9rem;
    padding: 10px 18px; border-radius: 999px;
    transition: transform 0.2s var(--bounce), box-shadow 0.3s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
}
.nav-cta:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 1100; }
.hamburger span {
    width: 24px; height: 2px; background: var(--white); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .hamburger { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed; inset: 0; z-index: 1050;
    background: rgba(5, 5, 5, 0.6); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 85vw);
    background: var(--black-2); border-left: 1px solid var(--border);
    padding: 96px 32px 40px;
    display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-panel a {
    padding: 14px 8px; font-size: 1.05rem; font-weight: 600; color: var(--gray-300);
    border-bottom: 1px solid var(--border); transition: color 0.2s var(--ease);
}
.mobile-drawer-panel a:hover { color: var(--green-bright); }
.mobile-drawer-panel .nav-cta { justify-content: center; margin-top: 24px; border: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: 999px;
    transition: transform 0.2s var(--bounce), box-shadow 0.3s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--green); color: #03130d; }
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-secondary {
    border: 1px solid var(--border-strong); color: var(--white); background: var(--black-3);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green-bright); transform: translateY(-2px); }

.btn-ghost { color: var(--gray-300); padding: 8px 4px; }
.btn-ghost:hover { color: var(--green-bright); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    padding: 140px 0 96px; overflow: hidden;
}
.hero-bg-grid {
    position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero-orb {
    position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.orb-1 { width: 560px; height: 560px; background: rgba(16,185,129,0.22); top: -180px; right: -120px; animation: drift1 16s var(--ease) infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: rgba(52,211,153,0.12); bottom: -140px; left: -140px; animation: drift2 20s var(--ease) infinite alternate; }
.orb-3 { width: 300px; height: 300px; background: rgba(16,185,129,0.10); top: 30%; left: 55%; animation: drift1 24s var(--ease) infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, -30px) scale(1.1); } }

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green-bright);
    border: 1px solid rgba(16,185,129,0.3); background: var(--green-subtle);
    padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.hero-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 24px;
}
.hero h1 .grad {
    background: linear-gradient(100deg, var(--green-bright), var(--green) 55%, #6ee7b7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--gray-400);
    max-width: 640px; margin-bottom: 20px;
}

.hero-slogan {
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--gray-400); font-size: 0.85rem; font-weight: 600;
    max-width: 640px; margin-bottom: 40px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-metrics {
    display: flex; flex-wrap: wrap; gap: 40px; padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-metric .m-value {
    font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--white);
}
.hero-metric .m-value em { font-style: normal; color: var(--green-bright); }
.hero-metric .m-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }

/* ---------- Hero (inner pages) ---------- */
.hero-simple {
    position: relative; padding: 168px 0 80px; text-align: center; overflow: hidden;
    background: linear-gradient(180deg, var(--black-3) 0%, var(--black) 100%);
}
.hero-simple::after {
    content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
    width: 760px; height: 460px; background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero-simple .container { position: relative; z-index: 1; }
.hero-simple h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 20px; }
.hero-simple h1 .grad { background: linear-gradient(100deg, var(--green-bright), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-simple p { font-size: 1.1rem; color: var(--gray-400); max-width: 620px; margin: 0 auto; }

/* ---------- Section headers ---------- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--green-bright);
    background: var(--green-subtle); border: 1px solid rgba(16,185,129,0.25);
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-400); }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.35); box-shadow: var(--shadow-card); }
.card-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center;
    background: var(--green-subtle); border: 1px solid rgba(16,185,129,0.25); margin-bottom: 20px;
    color: var(--green-bright);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--gray-400); font-size: 0.95rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--green-bright); transition: gap 0.2s var(--ease); }
.card-link:hover { gap: 10px; }

/* ---------- Stats ---------- */
.stat-value { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--green-bright); line-height: 1; }
.stat-value .unit { font-size: 1.2rem; color: var(--green); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 8px; }

/* ---------- Case cards ---------- */
.case-card { display: flex; flex-direction: column; }
.case-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.case-industry {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green-bright); background: var(--green-subtle);
    border: 1px solid rgba(16,185,129,0.25); padding: 5px 12px; border-radius: 999px;
}
.case-client { font-size: 0.8rem; color: var(--gray-500); }
.case-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.case-card > p { color: var(--gray-400); font-size: 0.95rem; margin-bottom: 22px; flex: 1; }
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.case-stat {
    background: var(--black-3); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px;
}
.case-stat .v { font-size: 1.25rem; font-weight: 800; color: var(--white); }
.case-stat .v span { color: var(--green-bright); }
.case-stat .l { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.case-quote {
    border-left: 3px solid var(--green); padding: 12px 0 12px 16px;
    font-size: 0.9rem; color: var(--gray-300); font-style: italic; margin-bottom: 22px;
}
.case-quote cite { display: block; font-style: normal; font-size: 0.78rem; color: var(--gray-500); margin-top: 8px; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 0; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.step { position: relative; padding: 32px 24px; }
@media (min-width: 1024px) {
    .step:not(:last-child)::after {
        content: ''; position: absolute; top: 46px; right: -1px;
        width: 2px; height: 60%; background: linear-gradient(180deg, var(--green), transparent);
    }
}
.step-num {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green); color: #03130d; font-weight: 800; font-size: 1.1rem;
    margin-bottom: 20px; box-shadow: 0 0 0 6px var(--green-subtle);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--gray-400); font-size: 0.92rem; margin-bottom: 16px; }
.step ul { display: grid; gap: 8px; }
.step ul li { font-size: 0.88rem; color: var(--gray-300); padding-left: 22px; position: relative; }
.step ul li::before {
    content: '✓'; position: absolute; left: 0; top: 0; color: var(--green-bright); font-weight: 700;
}

/* ---------- Tool logo strip ---------- */
.logo-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.logo-chip {
    font-size: 0.85rem; font-weight: 600; color: var(--gray-400);
    border: 1px solid var(--border); background: var(--black-3);
    padding: 10px 18px; border-radius: 999px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--bounce);
}
.logo-chip:hover { color: var(--green-bright); border-color: rgba(16,185,129,0.4); transform: translateY(-2px); }

/* ---------- Pricing ---------- */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px;
    font-size: 0.95rem; font-weight: 600; color: var(--gray-400);
}
.pricing-toggle .active { color: var(--white); }
.switch {
    width: 56px; height: 30px; border-radius: 999px; background: var(--border-strong);
    position: relative; transition: background 0.25s var(--ease);
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
    border-radius: 50%; background: var(--white); transition: transform 0.25s var(--ease);
}
.pricing-toggle.monthly .switch { background: var(--green); }
.pricing-toggle.monthly .switch::after { transform: translateX(26px); }

.pricing-card { display: flex; flex-direction: column; }
.pricing-card.popular {
    border-color: rgba(16,185,129,0.45);
    box-shadow: var(--shadow-glow);
}
.pricing-popular-badge {
    position: absolute; top: 18px; right: -38px; transform: rotate(38deg);
    background: var(--green); color: #03130d; font-size: 0.68rem; font-weight: 700;
    padding: 5px 42px; letter-spacing: 0.05em;
}
.pricing-name { font-size: 1rem; font-weight: 700; color: var(--gray-300); margin-bottom: 14px; }
.pricing-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pricing-amount small { font-size: 1rem; font-weight: 600; color: var(--gray-500); }
.pricing-period { font-size: 0.85rem; color: var(--gray-500); margin-top: 8px; margin-bottom: 24px; }
.pricing-features { display: grid; gap: 10px; flex: 1; margin-bottom: 28px; }
.pricing-features li { font-size: 0.9rem; color: var(--gray-300); padding-left: 26px; position: relative; }
.pricing-features li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--green-subtle); border: 1px solid rgba(16,185,129,0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 6' stroke='%2334d399' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.pricing-cta { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--green-bright); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-text { font-size: 0.98rem; color: var(--gray-300); font-style: italic; flex: 1; margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green-subtle); border: 1px solid rgba(16,185,129,0.3);
    font-weight: 700; color: var(--green-bright); font-size: 0.95rem;
}
.testimonial-name { font-size: 0.92rem; font-weight: 600; }
.testimonial-role { font-size: 0.78rem; color: var(--gray-500); }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-item + .faq-item { margin-top: 14px; }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; text-align: left; font-size: 1.02rem; font-weight: 600;
    transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--green-bright); }
.faq-question svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); color: var(--green-bright); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer-inner { padding: 0 24px 22px; color: var(--gray-400); font-size: 0.95rem; }

/* ---------- ROI calculator ---------- */
.calc {
    display: grid; grid-template-columns: 1fr; gap: 48px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px;
    position: relative; overflow: hidden;
}
.calc::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}
@media (min-width: 1024px) { .calc { grid-template-columns: 1.1fr 1fr; } }

.calc-inputs { display: grid; gap: 30px; }
.calc-field label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.calc-field label output { color: var(--green-bright); font-weight: 800; font-size: 1.1rem; }
.calc-field input[type="range"] {
    width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 4px;
    background: var(--border-strong); outline: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
    appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--green); border: 3px solid var(--black); cursor: grab;
    box-shadow: 0 0 0 4px var(--green-subtle);
    transition: transform 0.15s var(--bounce);
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc-field input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: var(--green);
    border: 3px solid var(--black); cursor: grab;
}
.calc-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 8px; }

.calc-result {
    display: flex; flex-direction: column; justify-content: center; gap: 18px;
    background: var(--black-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; text-align: center;
}
.calc-result .label { font-size: 0.85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; }
.calc-number { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--green-bright); }
.calc-number small { font-size: 1.2rem; color: var(--green); }
.calc-note { font-size: 0.9rem; color: var(--gray-400); }
.calc-note strong { color: var(--white); }
.calc-cta { margin-top: 8px; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 40px; position: relative; overflow: hidden;
}
.quiz-progress { height: 4px; background: var(--border); border-radius: 4px; margin-bottom: 32px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-dark), var(--green-bright)); transition: width 0.4s var(--ease); width: 10%; }
.quiz-question h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.quiz-question .q-sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 28px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
    display: flex; align-items: center; gap: 14px; text-align: left;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    padding: 16px 20px; font-size: 0.98rem; font-weight: 500; color: var(--gray-300);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--bounce);
    width: 100%;
}
.quiz-option:hover { border-color: var(--green); color: var(--white); transform: translateX(4px); }
.quiz-option.selected { border-color: var(--green); background: var(--green-subtle); color: var(--white); }
.quiz-option .key {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    border: 1px solid var(--border-strong); display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 700; color: var(--gray-500);
}
.quiz-option.selected .key { border-color: var(--green); color: var(--green-bright); background: var(--green-subtle); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.quiz-result { display: none; }
.quiz-result.show { display: block; text-align: center; }
.quiz-score {
    width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%;
    display: grid; place-items: center; flex-direction: column;
    border: 6px solid var(--green); color: var(--green-bright);
}
.quiz-score .num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.quiz-score .den { font-size: 0.85rem; color: var(--gray-500); }
.quiz-result h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.quiz-result .q-text { color: var(--gray-400); max-width: 520px; margin: 0 auto 24px; }
.quiz-picks { display: grid; gap: 10px; max-width: 480px; margin: 0 auto 28px; text-align: left; }
.quiz-picks li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--gray-300); }
.quiz-picks li::before { content: '→'; color: var(--green-bright); font-weight: 800; }

/* ---------- Comparison table ---------- */
.compare-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius-lg); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; font-size: 0.95rem; }
.compare-table thead th { background: var(--black-3); color: var(--gray-300); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table thead th.ours { color: var(--green-bright); }
.compare-table tbody tr { border-top: 1px solid var(--border); }
.compare-table tbody tr:nth-child(even) { background: var(--black-2); }
.compare-table td.metric { color: var(--gray-400); font-weight: 500; }
.compare-table td.check { color: var(--green-bright); font-weight: 700; }
.compare-table td.cross { color: var(--gray-600); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; padding: 88px 0; overflow: hidden; }
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 100%, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--gray-400); font-size: 1.05rem; max-width: 560px; margin: 0 auto 36px; position: relative; }
.cta-note { font-size: 0.85rem !important; color: var(--gray-500) !important; margin-top: 18px !important; }
.cta-note strong { color: var(--gray-300); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--black-2); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--gray-500); font-size: 0.9rem; max-width: 300px; }
.footer-slogan {
    color: var(--green-bright); font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-300); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--gray-500); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--gray-600); font-size: 0.82rem; }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1500; }
.chat-launcher {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #03130d; display: grid; place-items: center;
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s var(--bounce);
}
.chat-launcher:hover { transform: scale(1.08); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .close-icon { display: none; }
.chat-widget.open .chat-launcher .open-icon { display: none; }
.chat-widget.open .chat-launcher .close-icon { display: block; }

.chat-panel {
    position: absolute; bottom: 74px; right: 0; width: min(340px, calc(100vw - 40px));
    background: var(--black-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6); overflow: hidden;
    opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-widget.open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-head { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 18px 20px; color: #03130d; }
.chat-head h4 { font-size: 1rem; font-weight: 800; }
.chat-head p { font-size: 0.8rem; opacity: 0.85; }
.chat-body { padding: 18px; display: grid; gap: 10px; }
.chat-msg {
    background: var(--black-3); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px; font-size: 0.9rem; color: var(--gray-300);
}
.chat-actions { display: grid; gap: 8px; }
.chat-actions a, .chat-actions button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    padding: 12px; font-size: 0.9rem; font-weight: 600; color: var(--white);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    width: 100%;
}
.chat-actions a:hover, .chat-actions button:hover { border-color: var(--green); background: var(--green-subtle); }
.chat-actions svg { width: 17px; height: 17px; color: var(--green-bright); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
    background: rgba(5, 5, 5, 0.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    display: none;
}
.sticky-cta.show { display: block; }
@media (min-width: 1024px) { .sticky-cta { display: none !important; } }
.sticky-cta .btn { width: 100%; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.placeholder-note {
    border: 1px dashed var(--gray-600); border-radius: var(--radius-md);
    padding: 10px 14px; font-size: 0.78rem; color: var(--gray-500);
    background: rgba(255,255,255,0.02);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 28px; transition: color 0.2s var(--ease); }
.back-link:hover { color: var(--green-bright); }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 60px; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(120deg, var(--green-bright), var(--green-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: 1.8rem; font-weight: 700; margin: 20px 0 12px; }
.notfound p { color: var(--gray-400); max-width: 440px; margin-bottom: 32px; }

/* ---------- Blog ---------- */
.blog-card .card-icon { background: var(--green-subtle); }
.blog-meta { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.blog-meta span::before { content: ''; }
.post-article { max-width: 760px; margin: 0 auto; }
.post-article h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 14px; }
.post-article h3 { font-size: 1.2rem; font-weight: 700; margin: 30px 0 10px; }
.post-article p { color: var(--gray-300); margin-bottom: 18px; font-size: 1.02rem; }
.post-article ul { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; }
.post-article ul li { color: var(--gray-300); padding-left: 26px; position: relative; font-size: 1rem; }
.post-article ul li::before { content: '→'; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }
.post-article blockquote {
    border-left: 3px solid var(--green); padding: 6px 0 6px 22px;
    color: var(--gray-300); font-style: italic; font-size: 1.1rem; margin: 28px 0;
}
.post-article .post-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 32px; }

.blog-post { padding: 140px 24px 40px; }
.blog-post .container.narrow { max-width: 760px; }
.blog-post h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.blog-standfirst { font-size: 1.15rem; line-height: 1.65; color: var(--gray-300); margin-bottom: 36px; }
.blog-post h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; }
.blog-post h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.blog-post p { color: var(--gray-300); margin-bottom: 18px; font-size: 1.02rem; line-height: 1.7; }
.blog-post ul { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; }
.blog-post ul li { color: var(--gray-300); padding-left: 26px; position: relative; font-size: 1rem; line-height: 1.6; }
.blog-post ul li::before { content: '→'; position: absolute; left: 0; color: var(--green-bright); font-weight: 800; }
.blog-post ol { margin: 0 0 20px 22px; display: grid; gap: 12px; }
.blog-post ol li { color: var(--gray-300); font-size: 1rem; line-height: 1.6; }
.blog-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 28px; transition: color 0.2s var(--ease); }
.blog-back:hover { color: var(--green-bright); }
.callout {
    border: 1px solid rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--green); border-radius: 10px; padding: 18px 22px;
    color: var(--gray-300); font-size: 1.02rem; line-height: 1.6; margin: 32px 0;
}
.callout strong { color: var(--green-bright); }
.blog-post .cta-band { border-radius: 16px; margin: 56px 0 0; }
.blog-post .cta-band h2 { font-size: 1.5rem; margin: 0 0 12px; }
.blog-post .cta-band p { margin-bottom: 24px; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
    .section { padding: 64px 0; }
    .hero { min-height: 0; padding-top: 120px; }
    .hero-metrics { gap: 24px; }
    .calc { padding: 28px 22px; }
    .quiz-card { padding: 28px 22px; }
    .case-stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { gap: 32px; }
    .pricing-card.popular .pricing-popular-badge { display: none; }
    .logo { font-size: 0.95rem; }
    .logo-text { font-size: 0.85rem; }
    .logo-mark { width: 24px; height: 24px; }
    .logo-mark-img { width: 26px; height: 26px; }
    .logo-img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
