@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --card: #FFFFFF;
    --card-hover: #F8FAFC;
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-deep: #1D4ED8;
    --mint: #0891B2;
    --gradient: linear-gradient(135deg, #1D4ED8, #2563EB, #38BDF8);
    --gradient-move: linear-gradient(135deg, #1D4ED8, #2563EB, #38BDF8, #1D4ED8);
    --glow-accent: rgba(37,99,235,0.25);
    --glow-mint: rgba(59,130,246,0.18);
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-label: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-data: 'JetBrains Mono', ui-monospace, monospace;
    --nav-height: 72px;
    --max-w: 1280px;
    --radius: 16px;

    /* Legacy aliases — app/admin pages reference these names.
       Mapped onto the emerald system so the whole product shares one palette. */
    --blue: var(--accent);
    --purple: var(--accent-light);
    --green: var(--accent);
    --gold: var(--mint);
    --pink: var(--accent-light);
    --tangerine: var(--mint);
    --red: #F43F5E;
    --white: var(--text);
    --secondary: var(--text-secondary);
    --muted: var(--text-muted);
    --glass-bg: var(--card);
    --glass-border: var(--border);
    --holo: var(--gradient);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#dna-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(96,165,250,0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-content {
    position: relative;
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.08; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); font-weight: 400; }

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-light); }

.label { font-family: var(--font-label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.data { font-family: var(--font-data); font-weight: 700; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- HERO ACCENT WORD --- */
.hero-accent {
    position: relative;
    display: inline-block;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}
.hero-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-accent.lit {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 30px var(--glow-accent), 0 0 60px rgba(37,99,235,0.15);
    transition: color 0.8s ease, -webkit-text-fill-color 0.8s ease, text-shadow 1s ease;
}
.hero-accent.lit::after {
    width: 100%;
}

/* --- CONTAINER --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-subtitle { color: var(--text-secondary); text-align: center; margin-top: 14px; font-size: 1.1rem; }

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-logo img {
    height: 32px;
    transition: all 0.3s;
}
.nav-logo:hover {
    filter: drop-shadow(0 0 16px var(--glow-accent));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-label);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
    transition: color 0.3s, background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(15,23,42,0.05);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.nav-sep {
    color: rgba(15,23,42,0.1);
    font-size: 0.75rem;
    user-select: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(37,99,235,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(37,99,235,0.4);
    background: #1D4ED8;
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37,99,235,0.08);
}

.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

@keyframes holoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- CARDS --- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), rgba(96,165,250,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15,23,42,0.12);
}
.card:hover::before { opacity: 1; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* --- TRUST BAR --- */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px 0;
}
.trust-item {
    text-align: center;
}
.trust-item .data {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-item .label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* --- PRICING CARDS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}
.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15,23,42,0.12);
}
.pricing-card.popular {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 0 60px rgba(37,99,235,0.1);
    background: rgba(37,99,235,0.06);
}
.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #FFFFFF;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 16px;
    border-radius: 50px;
    letter-spacing: 0.08em;
}

.pricing-card h3 { margin-bottom: 8px; }

.pricing-price {
    font-family: var(--font-data);
    font-size: 2.4rem;
    font-weight: 700;
    margin: 16px 0;
    color: var(--text);
}
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}
.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.pricing-features li::before {
    content: '\2713 ';
    color: var(--accent);
    font-weight: 700;
}

/* --- TABLES --- */
.ev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.ev-table th {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.ev-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.ev-table tr:hover td {
    background: rgba(15,23,42,0.02);
}

/* --- BADGES --- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-blue { background: rgba(37,99,235,0.15); color: var(--accent-light); }
.badge-purple { background: rgba(167,139,250,0.15); color: var(--accent-light); }
.badge-green { background: rgba(37,99,235,0.15); color: var(--accent-light); }
.badge-gold { background: rgba(96,165,250,0.15); color: var(--mint); }
.badge-pink { background: rgba(96,165,250,0.15); color: var(--mint); }
.badge-red { background: rgba(220,38,38,0.15); color: #FCA5A5; }

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15,23,42,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(15,23,42,0.04);
    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='%238E8E93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
select.form-control option {
    background: #1C1C1E;
    color: var(--text);
    padding: 10px;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent);
}

/* --- TABS --- */
.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active {
    background: var(--accent);
    border-color: transparent;
    color: #FFFFFF;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.18);
    backdrop-filter: blur(16px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
.modal-overlay.show { display: flex; }

.modal {
    background: #1C1C1E;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* --- SIGNATURE CANVAS --- */
.sig-canvas {
    width: 100%;
    height: 120px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: rgba(15,23,42,0.02);
    cursor: crosshair;
}

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 0;
    background: var(--surface);
}

.footer-top {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-weight: 500;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-policies {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-policies a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-policies a:hover { color: var(--text); }

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-by {
    font-family: var(--font-label);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-kth-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.footer-kth-inline:hover { color: var(--text); }
.footer-kth-icon {
    height: 24px;
    width: 24px;
    filter: none;
}
.footer-kth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.footer-kth img {
    height: 22px;
    width: 22px;
    filter: none;
}
.footer-kth:hover { color: var(--text); }
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: rgba(37,99,235,0.12);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}
.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .footer-brand-row { justify-content: center; text-align: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .section { padding: 72px 0; }

    .nav-links, .nav-actions { display: none; }
    .nav-links.open, .nav-actions.open { display: flex; }
    .hamburger { display: flex; }

    .nav .container { flex-wrap: wrap; }
    .nav-links.open {
        flex-direction: column;
        width: 100%;
        padding: 12px 0 8px;
        order: 3;
        gap: 2px;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        border-top: 1px solid var(--border);
    }
    .nav-links.open a {
        width: 100%;
        text-align: center;
        padding: 13px 14px;
        border-radius: 10px;
        font-size: 0.85rem;
    }
    /* Vertical menu — the "|" separators only make sense inline */
    .nav-links.open .nav-sep { display: none; }
    .nav-actions.open {
        width: 100%;
        justify-content: center;
        padding: 4px 0 18px;
        order: 4;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        box-shadow: 0 22px 44px rgba(15,23,42,0.12);
    }
    .nav-actions.open .btn { width: 100%; max-width: 280px; justify-content: center; }

    .footer-brand-row { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-policies { justify-content: center; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 2rem; }
    .btn { padding: 10px 22px; font-size: 0.82rem; }
    .card { padding: 24px; }
    .modal { padding: 24px; }
}

/* --- WOW EFFECTS --- */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.56s; }

/* Holographic divider */
.holo-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), rgba(96,165,250,0.2), transparent);
    background-size: 200% 100%;
    animation: holoDividerFlow 6s linear infinite;
    margin: 0 auto;
}
@keyframes holoDividerFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Glowing section accent */
.glow-section {
    position: relative;
}
.glow-section::before {
    content: '';
    position: absolute;
    top: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), rgba(96,165,250,0.15), transparent);
}

/* Hero enhancements */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    width: 1000px; height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(96,165,250,0.04) 30%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 35%; left: 50%;
    width: 500px; height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite 4s;
    filter: blur(80px);
}
@keyframes heroGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Hero Elements ── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding: 8px 20px 8px 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: rgba(37,99,235,0.06);
}
.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow-accent);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--glow-accent); }
    50% { opacity: 0.5; box-shadow: 0 0 20px var(--glow-accent); }
}
.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Hero Entrance ── */
.hero-entrance .hero-line {
    display: block;
    width: 80px;
    height: 2px;
    margin: 24px auto;
    background: var(--gradient-move);
    background-size: 300% 100%;
    animation: holoShift 4s ease infinite;
    border-radius: 2px;
}

/* Animated counter */
.count-up {
    display: inline-block;
}

/* Trust bar */
.trust-bar-wow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 48px 0;
}
.trust-item-wow {
    text-align: center;
    padding: 24px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.trust-item-wow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-move);
    background-size: 300% 100%;
    animation: holoShift 4s ease infinite;
}
.trust-item-wow:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37,99,235,0.12);
}
.trust-item-wow .data {
    font-size: 2.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.trust-item-wow .label {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 6px;
}

/* Card hover glow */
.card-glow:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 0 60px rgba(37,99,235,0.06), 0 20px 60px rgba(15,23,42,0.12);
}

/* Floating badge animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-badge {
    animation: float 3s ease-in-out infinite;
}

/* Pipeline */
.funnel {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.funnel-step {
    display: flex;
    gap: 28px;
    align-items: stretch;
}
.funnel-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
}
.funnel-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}
.funnel-step:hover .funnel-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37,99,235,0.2);
}
.funnel-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, rgba(37,99,235,0.3), rgba(37,99,235,0.05));
    margin: 8px 0;
    min-height: 24px;
}
.funnel-content {
    padding: 8px 0 40px;
}
.funnel-num {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.06em;
}
.funnel-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 4px 0 8px;
    color: var(--text);
}
.funnel-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 420px;
}

@media (max-width: 768px) {
    .hero-section { padding-top: 130px; padding-bottom: 60px; }
    .trust-bar-wow { gap: 12px; }
    .trust-item-wow { padding: 16px 20px; }
    .funnel-step { gap: 20px; }
    .funnel-content { padding-bottom: 28px; }
}

/* ================================================================
   VISUAL RICHNESS — light-theme depth + colour (anti-flat)
   ================================================================ */

/* Soft, blue-tinted elevation on cards instead of flat hairlines */
.tax-cat-card, .pricing-card, .trust-badge, .testimonial,
.compliance-badge, .cx-calc-card, .factbar-item,
.deadline-strip, .sars-dates, .feature-card, .app-stat, .app-card {
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 32px -18px rgba(37,99,235,0.22);
}
.tax-cat-card:hover, .pricing-card:hover, .trust-badge:hover,
.testimonial:hover, .compliance-badge:hover, .feature-card:hover {
    box-shadow: 0 6px 16px rgba(15,23,42,0.07), 0 28px 50px -20px rgba(37,99,235,0.34);
}
.pricing-card.popular {
    box-shadow: 0 26px 60px -22px rgba(37,99,235,0.48);
    border-color: var(--accent);
}

/* Gradient icon tiles — the biggest colour pop */
.feature-icon {
    background: var(--gradient) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 10px 22px -8px rgba(37,99,235,0.45);
}
.feature-icon svg { stroke: #FFFFFF; fill: #FFFFFF; }

/* Warmer, more visible hero wash for colour and atmosphere */
body::before {
    content: '';
    position: fixed;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 1400px; height: 1000px;
    background: radial-gradient(ellipse at center,
        rgba(56,189,248,0.10) 0%,
        rgba(37,99,235,0.08) 35%,
        rgba(37,99,235,0) 68%);
    pointer-events: none;
    z-index: 0;
}

/* Blue gradient underline accent on section eyebrow labels */
.label, .eyebrow, .brief-label { position: relative; }

/* Stat numbers get a subtle gradient */
.factbar-num, .stat-value, .trust-item-wow .data {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
