/* 
   QuantLease — Premium SaaS Design System
   Dark Mode First · Glassmorphism · No Screenshots
*/

:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --primary: #5E6AD2;
    --primary-hover: #4c56b0;
    --primary-glow: rgba(94, 106, 210, 0.3);
    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-blur: 12px;
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03);
    --container-width: 1400px;
    --nav-height: 80px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .3s ease;
}

/* ── Typography ─────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1.display-heading {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.lead-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Utilities ──────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin: 0 auto;
}

.w-full {
    width: 100%;
}

.mb-16 {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.06);
    margin-bottom: 20px;
}

/* ── Badge pill ─────────────────────────────── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    font-size: .875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    transition: all .3s ease;
}

.badge-pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .7;
        transform: scale(1.2);
    }
}

/* ── Gradient text ──────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 5s linear infinite;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Navigation ─────────────────────────────── */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all .3s ease;
}

[data-theme="dark"] .glass-nav {
    background: rgba(0, 0, 0, .85);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    transition: transform .3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all .3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(94, 106, 210, .3));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: .95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-only-btn {
    display: none !important;
}



.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: rotate(15deg);
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn.pill {
    border-radius: 99px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(94, 106, 210, .2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 106, 210, .3);
}

.glow-effect {
    box-shadow: 0 0 20px var(--primary-glow);
}

.glow-effect:hover {
    box-shadow: 0 0 30px var(--primary-glow), 0 8px 20px rgba(94, 106, 210, .3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(94, 106, 210, .05);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   HERO — text-only, no app panel
   ══════════════════════════════════════════════ */
.hero-section {
    position: relative;
    padding-top: calc(var(--nav-height) + 72px);
    padding-bottom: 60px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, .15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, .15) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, black 20%, transparent 70%);
    z-index: 1;
    animation: grid-flow 20s linear infinite;
}

[data-theme="dark"] .hero-section::before {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

@keyframes grid-flow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

.spotlight {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .3;
    z-index: 0;
}

[data-theme="dark"] .spotlight {
    opacity: .18;
}

.spotlight:nth-child(1) {
    top: -10%;
    left: 15%;
    background: radial-gradient(circle, rgba(94, 106, 210, .7), transparent 70%);
    animation: orb1 20s ease-in-out infinite;
}

.spotlight:nth-child(2) {
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, .6), transparent 70%);
    animation: orb2 25s ease-in-out infinite;
}

@keyframes orb1 {

    0%,
    100% {
        transform: translate(0, 0)scale(1);
    }

    33% {
        transform: translate(40px, -40px)scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px)scale(.95);
    }
}

@keyframes orb2 {

    0%,
    100% {
        transform: translate(0, 0)scale(1);
    }

    33% {
        transform: translate(-40px, 30px)scale(1.08);
    }

    66% {
        transform: translate(20px, -20px)scale(.93);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    max-width: 860px;
    text-align: left;
}

.hero-graphics {
    position: relative;
    height: 600px;
    width: 100%;
    perspective: 1000px;
}

.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from {
        max-width: 0;
    }

    to {
        max-width: 12ch;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Benefits Bar */
.benefits-bar {
    display: flex;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    overflow: hidden;
    max-width: 700px;
    margin-top: 40px;
    justify-content: flex-start;
}

[data-theme="dark"] .benefits-bar {
    background: rgba(255, 255, 255, .03);
}

.benefit-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border-right: 1px solid var(--glass-border);
    gap: 4px;
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.benefit-label {
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: center;
}

/* Fade-in */
.fade-in-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   PROBLEM STATEMENT
   ══════════════════════════════════════════════ */
.problems-section {
    padding: 72px 0;
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .problems-section {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.problems-header {
    margin-bottom: 40px;
}

.problems-header h2 {
    margin-bottom: 12px;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .problem-card {
    background: rgba(20, 20, 20, .6);
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.problem-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--primary);
    opacity: .25;
    margin-bottom: 16px;
    line-height: 1;
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════
   PROCESS FLOW
   ══════════════════════════════════════════════ */
.process-section {
    padding: 72px 0;
}

.process-header {
    margin-bottom: 40px;
}

.process-header h2 {
    margin-bottom: 12px;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] .process-step {
    background: rgba(15, 15, 15, .8);
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(124, 58, 237, .1);
}

.process-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, .1);
    border: 1px solid rgba(124, 58, 237, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all .3s ease;
}

.process-step:hover .process-icon {
    background: rgba(124, 58, 237, .2);
    transform: scale(1.05);
}

.process-step-num {
    font-family: 'Outfit', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--primary);
}

.process-step h3 {
    font-size: 1.1rem;
}

.process-step p {
    font-size: .875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.process-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .35;
    position: relative;
    flex-shrink: 0;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--accent);
    opacity: .5;
}

/* ══════════════════════════════════════════════
   FEATURE TOUR — sticky scroll
   ══════════════════════════════════════════════ */
.features-section {
    padding: 72px 0;
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] .features-section {
    border-top: 1px solid var(--glass-border);
}

.tour-header {
    margin-bottom: 48px;
}

.tour-header h2 {
    margin-bottom: 12px;
}

.feature-tour {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Left: Sticky */
.feature-sticky-left {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Glyph frame container */
.glyph-frame {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(255, 255, 255, .04);
    overflow: hidden;
}

[data-theme="dark"] .glyph-frame {
    background: #080808;
}

/* Glyph states */
.glyph-state {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
    transform: translateY(10px);
}

.glyph-state.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 2;
}

.glyph-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── G0: Dashboard ring + pills ── */
.g-ring-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.g-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 100%, var(--glass-border) 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 40px rgba(124, 58, 237, .2);
}

.g-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

[data-theme="dark"] .g-ring::before {
    background: #080808;
}

.g-ring-label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

.g-ring-label span {
    font-size: .65rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: .06em;
}

.g-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.g-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

[data-theme="dark"] .g-pill {
    background: rgba(255, 255, 255, .03);
}

.g-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.g-pill-label {
    flex: 1;
    font-size: .8rem;
    color: var(--text-secondary);
}

.g-pill-val {
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ── G1: AI Extraction scan ── */
.g-scan-area {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(124, 58, 237, .03);
}

.g-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 2.5s ease-in-out infinite;
    top: 0;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 1;
    }

    90% {
        top: 100%;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.g-text-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g-tl {
    height: 10px;
    background: var(--glass-border);
    border-radius: 4px;
}

.g-tl-hi {
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .25);
}

.g-tl-hi.warn {
    background: rgba(245, 158, 11, .06);
    border-color: rgba(245, 158, 11, .25);
}

.g-field-tag {
    font-size: .65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex: 1;
}

.g-conf {
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.g-conf.high {
    color: #22c55e;
}

.g-conf.med {
    color: #f59e0b;
}

.g-extract-status {
    display: flex;
    gap: 8px;
}

.g-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 600;
}

.g-badge.green {
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, .2);
}

.g-badge.yellow {
    background: rgba(245, 158, 11, .1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, .2);
}

.g-badge.purple {
    background: rgba(124, 58, 237, .1);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, .2);
}

/* ── G2: Audit Schedule bar strip ── */
.g-bar-strip {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.g-bs-label {
    font-size: .7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.g-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g-bs-bar {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
}

.g-bs-bar span:first-child {
    color: var(--text-secondary);
    white-space: nowrap;
}

.g-bs-bar::after {
    content: '';
    grid-column: 2;
    height: 8px;
    width: var(--w);
    background: var(--glass-border);
    border-radius: 4px;
    display: block;
}

.g-bs-bar.principal::after {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.g-bs-bar.interest::after {
    background: #f59e0b;
}

.g-bs-bar.rou::after {
    background: rgba(124, 58, 237, .4);
}

.g-bs-val {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.g-formula-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, .06);
    border: 1px solid rgba(124, 58, 237, .2);
    font-size: .72rem;
    color: var(--text-secondary);
}

.g-formula-icon {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ── G3: Journal glyph ── */
.g-journal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.g-journal-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-tertiary);
    padding: 0 10px;
    margin-bottom: 4px;
}

.g-journal-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: .78rem;
}

[data-theme="dark"] .g-journal-row {
    background: rgba(255, 255, 255, .025);
}

.g-jr-account {
    color: var(--text-primary);
}

.g-jr-debit {
    color: #22c55e;
    font-weight: 600;
    text-align: right;
    font-family: 'Outfit', sans-serif;
}

.g-jr-credit {
    color: #f59e0b;
    font-weight: 600;
    text-align: right;
    font-family: 'Outfit', sans-serif;
}

.g-journal-sep {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.g-export-row {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

/* ── G4: Before/After ── */
.g-before-after {
    display: flex;
    align-items: center;
    gap: 12px;
}

.g-ba-box {
    flex: 1;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[data-theme="dark"] .g-ba-box {
    background: rgba(255, 255, 255, .025);
}

.g-ba-box.after {
    border-color: rgba(124, 58, 237, .3);
    background: rgba(124, 58, 237, .04);
}

.g-ba-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-tertiary);
}

.g-ba-fig {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.g-ba-sub {
    font-size: .65rem;
    color: var(--text-tertiary);
}

.g-ba-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: var(--primary);
}

.g-ba-event {
    font-size: .6rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.g-mod-tags {
    display: flex;
    gap: 8px;
}

/* ── G5: Progress track ── */
.g-progress-track {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.g-pt-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 0;
    position: relative;
}

.g-pt-step+.g-pt-step {
    margin-top: 0;
}

.g-pt-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: var(--text-tertiary);
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    align-self: center;
    flex-shrink: 0;
}

.g-pt-step.done .g-pt-dot {
    background: rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .3);
    color: #22c55e;
}

.g-pt-pulse {
    background: rgba(124, 58, 237, .15);
    border-color: rgba(124, 58, 237, .4);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, .3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(124, 58, 237, 0);
    }
}

.g-pt-empty {
    background: var(--bg-tertiary);
}

.g-pt-line {
    width: 2px;
    height: 32px;
    background: rgba(34, 197, 94, .3);
    grid-row: 2;
    grid-column: 1;
    margin: 0 auto;
}

.g-pt-line-dim {
    background: var(--glass-border);
}

.g-pt-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-primary);
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    padding: 8px 0 0;
}

.g-pt-sub {
    font-size: .65rem;
    color: var(--text-tertiary);
    grid-row: 2;
    grid-column: 2;
    padding-bottom: 8px;
}

/* Feature nav dots */
.feature-nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
}

.feature-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

.feature-dot:hover:not(.active) {
    background: var(--text-tertiary);
    transform: scale(1.2);
}

/* Right: story blocks */
.feature-scroll-right {
    display: flex;
    flex-direction: column;
}

.feature-story-block {
    padding: 36px 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: .3;
    transition: opacity .5s ease;
}

.feature-story-block:first-child {
    padding-top: 0;
}

.feature-story-block:last-child {
    border-bottom: none;
}

.feature-story-block.active {
    opacity: 1;
}

.feature-story-number {
    font-family: 'Outfit', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-story-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
}

.feature-story-block h3 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    margin-bottom: 14px;
}

.feature-story-block p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.feature-story-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-story-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--text-secondary);
}

.feature-story-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   LATEST INSIGHTS (BLOG PREVIEW)
   ═══════════════════════════════════════════════════ */
.blog-preview-section {
    padding: 72px 0;
    background: var(--bg-main);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.blog-preview-card.featured {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .blog-preview-card.featured {
    background: rgba(255, 255, 255, 0.02);
}

.blog-preview-card.featured:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-card-visual {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--glass-border);
}

.blog-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.blog-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.read-more {
    font-weight: 600;
    color: var(--primary);
}

.blog-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-preview-mini {
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

[data-theme="dark"] .blog-preview-mini {
    background: rgba(255, 255, 255, 0.015);
}

.blog-preview-mini:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.blog-preview-mini h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.blog-preview-mini p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

@media (max-width: 1100px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-preview-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card-body {
        padding: 24px;
    }
}

/* ══════════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════════ */
.comparison-section {
    padding: 72px 0;
}

.comparison-header {
    margin-bottom: 36px;
}

.comparison-header h2 {
    margin-bottom: 12px;
}

.comparison-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .comparison-wrap {
    background: rgba(10, 10, 10, .8);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead tr {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="dark"] .comparison-table thead tr {
    background: #111;
}

.comparison-table th {
    padding: 18px 24px;
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-tertiary);
    font-weight: 700;
}

.comp-ql-col {
    color: var(--primary) !important;
}

.comp-head-ql {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background .2s ease;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(124, 58, 237, .03);
}

.comparison-table td {
    padding: 16px 24px;
    font-size: .875rem;
    vertical-align: middle;
}

.comparison-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.comp-yes {
    color: #22c55e;
}

.comp-no {
    color: var(--text-tertiary);
}

.comp-partial {
    color: #f59e0b;
}

.comp-check {
    font-weight: 700;
    margin-right: 6px;
}

.comp-cross {
    font-weight: 700;
    margin-right: 6px;
    opacity: .5;
}

/* ══════════════════════════════════════════════
   ENTERPRISE SECTION
   ══════════════════════════════════════════════ */
.enterprise-section {
    padding: 72px 0;
}

.enterprise-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enterprise-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 60%);
    opacity: .08;
    pointer-events: none;
}

[data-theme="dark"] .enterprise-card {
    background: linear-gradient(180deg, rgba(124, 58, 237, .06) 0%, rgba(0, 0, 0, 0) 100%);
    border-color: rgba(124, 58, 237, .18);
}

.enterprise-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, .3);
    background: rgba(124, 58, 237, .08);
    margin-bottom: 24px;
}

.enterprise-card h2 {
    margin-bottom: 20px;
}

.enterprise-card .lead-text {
    max-width: 600px;
    margin: 0 auto 40px;
}

.enterprise-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
    text-align: left;
}

.enterprise-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: var(--text-secondary);
}

.enterprise-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   CTA / DEMO / FOOTER
   ══════════════════════════════════════════════ */
.cta-section {
    padding: 72px 0;
}

.cta-card {
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 60%);
    opacity: .08;
}

[data-theme="dark"] .cta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02) 0%, rgba(124, 58, 237, .04) 100%);
}

.demo-section {
    padding: 72px 0 48px;
}

.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: .875rem;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: all .3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social a {
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--primary);
}

/* ══════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════ */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all .3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width:1100px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-connector {
        width: 2px;
        height: 24px;
        margin: 0 auto;
    }

    .process-connector::after {
        top: auto;
        bottom: -4px;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
        border-left-color: transparent;
        border-top-color: var(--accent);
    }

    .feature-tour {
        grid-template-columns: 1fr;
    }

    .feature-sticky-left {
        position: relative;
        top: auto;
    }

    .glyph-state {
        position: absolute;
    }

    .enterprise-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 1000;
        padding: 80px 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-right .btn-primary {
        display: none;
    }

    .hide-mobile {
        display: none !important;
    }

    .mobile-only-btn {
        display: inline-flex !important;
        width: auto;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + 60px);
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-graphics {
        height: 400px;
        transform: scale(0.8);
        transform-origin: top center;
    }

    .benefits-bar {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .benefits-bar {
        flex-direction: column;
    }

    .benefit-item {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .benefit-item:last-child {
        border-bottom: none;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-card {
        padding: 40px 24px;
    }

    .enterprise-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .comparison-wrap {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 560px;
    }
}