/* ============================================================
   QUINTARTH — Marketing Website Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Core Brand */
    --brand-primary: #4F46E5;
    --brand-primary-light: #6366F1;
    --brand-primary-dark: #3730A3;
    --brand-secondary: #7C3AED;
    --brand-accent: #06B6D4;
    --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
    --brand-gradient-soft: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #ECFEFF 100%);

    /* Surfaces */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-nav: rgba(255, 255, 255, 0.85);

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-focus: #4F46E5;

    /* Status Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #3B82F6;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --section-padding: 64px 0;
    --container-max: 1280px;
    --container-padding: 0 32px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --bg-primary: #0B0F1A;
    --bg-secondary: #111827;
    --bg-tertiary: #1E293B;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --bg-nav: rgba(11, 15, 26, 0.9);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --border-light: #1E293B;
    --border-medium: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(79, 70, 229, 0.2);
    --brand-gradient-soft: linear-gradient(135deg, #1E1B4B 0%, #1E1338 50%, #0C2D3E 100%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-base), color var(--transition-base);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Animated Background Dots ---------- */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle, var(--border-medium) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
    gap: 18px;
    flex-wrap: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand-badge {
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #F5B800 0%, #FFC947 100%);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;       /* keep "How It Works" on one line */
    line-height: 1;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    height: 36px;
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;       /* keep placeholder + kbd on one line */
    flex-shrink: 0;            /* don't let flex parent squish it below content */
    min-width: 240px;
    line-height: 1;
}

.nav-search > * { white-space: nowrap; flex-shrink: 0; }
.nav-search > span:nth-child(2) { flex: 1; min-width: 0; }

.nav-search:hover {
    border-color: var(--border-medium);
}

/* Tighter responsive: collapse search progressively so "Security" / "About" don't clip.
   Eight nav items + search pill + 2 buttons exceed 1500 px on most laptops, so we
   trim search content aggressively below 1600 px and reach icon-only by 1280 px.
   2026-04-25 audit fix: collapse the placeholder at 1600 (was 1440) so 1512-px
   laptops (the default MacBook Pro 14" / 13" Air viewport) don't clip the
   "Security" + "About" nav items. */
@media (max-width: 1600px) {
    .nav-search > span:nth-child(2) { display: none; }   /* hide "Search tickers, reports…" placeholder */
    .nav-search { min-width: 0; padding: 8px 12px; gap: 6px; }
}
@media (max-width: 1440px) {
    .nav-search > kbd { display: none; }                  /* drop the ⌘K hint too — icon only */
    .nav-links { gap: 0; }                                 /* tighten nav-link spacing */
    .nav-links a { padding: 8px 9px; }
}
@media (max-width: 1280px) {
    .nav-brand-badge { display: none; }                    /* drop the "Beta" pill */
}

/* Mega Menu Dropdown */
.nav-dropdown-parent {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-dropdown-parent:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 9999;            /* 2026-04-25: bumped from 1001 — must paint above
                                  any downstream stacking context (stats-bar, hero) */
}

.nav-dropdown-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-secondary); /* 2026-04-25: was --bg-card; now distinct from
                                         stat-card background so the dropdown reads
                                         as a panel, not a continuation of the page */
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.06);
    padding: 24px;
    min-width: 720px;
    backdrop-filter: blur(12px);     /* glass-panel feel; sits clearly above page */
    -webkit-backdrop-filter: blur(12px);
}

.mega-col {
    padding: 0 16px;
    border-right: 1px solid var(--border-light);
}

.mega-col:last-child {
    border-right: none;
}

.mega-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all var(--transition-fast);
}

.mega-link:hover {
    background: var(--bg-tertiary);
    color: var(--brand-primary) !important;
}

.mega-link span:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-search kbd {
    font-size: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Inter', sans-serif;
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--brand-primary);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease-out;
    box-shadow: var(--shadow-sm);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

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

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

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out 0.1s backwards;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeUp 0.6s ease-out 0.2s backwards;
}

/* AI Search Bar */
.hero-search {
    max-width: 680px;
    margin: 0 auto 48px;
    position: relative;
    animation: fadeUp 0.6s ease-out 0.3s backwards;
}

.hero-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 6px 6px 6px 24px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.hero-search-inner:focus-within {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
}

.hero-search-icon {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-right: 12px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 0;
}

.hero-search input::placeholder {
    color: var(--text-tertiary);
}

.hero-search .search-btn {
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.hero-search .search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeUp 0.6s ease-out 0.4s backwards;
}

/* Exchanges strip */
.hero-exchanges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: fadeUp 0.6s ease-out 0.5s backwards;
}

.exchange-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.exchange-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    position: relative;
    z-index: 1;
    padding: 0 0 80px;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-base);
    /* 2026-04-25: lock min-height so subtitle on card #1 doesn't push it
       taller than its siblings — keeps the four-card row visually balanced. */
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-light);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- Section Common ---------- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-icon.purple {
    background: #EEF2FF;
    color: #4F46E5;
}

.feature-icon.cyan {
    background: #ECFEFF;
    color: #06B6D4;
}

.feature-icon.amber {
    background: #FFFBEB;
    color: #F59E0B;
}

.feature-icon.emerald {
    background: #ECFDF5;
    color: #10B981;
}

.feature-icon.rose {
    background: #FFF1F2;
    color: #F43F5E;
}

.feature-icon.blue {
    background: #EFF6FF;
    color: #3B82F6;
}

[data-theme="dark"] .feature-icon.purple {
    background: #312E81;
}

[data-theme="dark"] .feature-icon.cyan {
    background: #164E63;
}

[data-theme="dark"] .feature-icon.amber {
    background: #78350F;
}

[data-theme="dark"] .feature-icon.emerald {
    background: #064E3B;
}

[data-theme="dark"] .feature-icon.rose {
    background: #881337;
}

[data-theme="dark"] .feature-icon.blue {
    background: #1E3A5F;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--brand-primary);
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--border-light);
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ---------- Toolkit Section ---------- */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.toolkit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.toolkit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-light);
}

.toolkit-card .tk-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.toolkit-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.toolkit-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toolkit-card .tk-badge {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
}

/* ---------- Pricing ---------- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-toggle span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    border: none;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-fast);
}

.toggle-switch.yearly::after {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 2px solid var(--brand-primary);
    box-shadow: var(--shadow-glow);
    padding-top: 40px;
    margin-top: 16px;
}

.pricing-card.featured .popular-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-tier-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.pricing-tier {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 8px;
}

.pricing-price .currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: super;
}

.pricing-price .amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.pricing-price .original {
    font-size: 20px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-right: 8px;
}

.pricing-period {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

.pricing-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    justify-content: center;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li .check {
    color: var(--color-success);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}


/* ---------- 4-Column Pricing Grid ---------- */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ---------- Apex Card — Gold Highlight ---------- */
.pricing-apex {
    border: 1px solid #D4AF37 !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
    position: relative;
    z-index: 2;
}

.pricing-apex:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25), 0 12px 48px rgba(0, 0, 0, 0.4);
}

.pricing-apex .popular-badge {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #1a1a2e;
}

.pricing-apex .pricing-tier {
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Lucide Check Icon Styling ---------- */
.check-icon {
    color: var(--color-success, #22c55e);
    flex-shrink: 0;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    margin-top: -2px;
}

.check-icon.star {
    color: var(--brand-primary, #7C3AED);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.pricing-features li .check-icon {
    margin-top: 3px;
    min-width: 16px;
}

/* ---------- 4-col Responsive ---------- */
@media (max-width: 1200px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .pricing-apex {
        transform: scale(1.0);
    }
    .pricing-apex:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 640px) {
    .pricing-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 48px 0 64px;
}

.cta-card {
    background: var(--brand-gradient);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: float-glow 8s ease-in-out infinite;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(180deg);
    }
}

.cta-card h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-card .cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.cta-card .btn-white {
    background: white;
    color: var(--brand-primary-dark);
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
}

.cta-card .btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-ghost-white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
}

.cta-card .btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 80px 0 32px;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 16px 0 24px;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-column ul a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
    color: var(--brand-primary);
}

/* ---------- App Download Banner ---------- */
.app-badges {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: var(--text-inverse);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .app-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
}

.app-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-badge .store-icon {
    font-size: 20px;
}

.app-badge small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.7;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
        --container-padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-exchanges {
        flex-wrap: wrap;
    }

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

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

    .steps-grid::before {
        display: none;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-card .cta-btns {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PHASE A: Micro-Animations & Visual Polish
   ═══════════════════════════════════════════════════════════════════════ */

/* ---------- Scroll-Reveal System ---------- */
.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);
}

/* Staggered children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Animated Gradient Text ---------- */
.gradient-text-animated {
    background: linear-gradient(270deg,
            #4F46E5 0%,
            #7C3AED 25%,
            #06B6D4 50%,
            #7C3AED 75%,
            #4F46E5 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------- Floating Hero Orbs ---------- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.12);
    top: -100px;
    right: -100px;
    animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.1);
    bottom: -50px;
    left: -80px;
    animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(6, 182, 212, 0.08);
    top: 50%;
    left: 50%;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {

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

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

@keyframes orbFloat2 {

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

    50% {
        transform: translate(25px, -25px) scale(1.08);
    }
}

@keyframes orbFloat3 {

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

    50% {
        transform: translate(-45%, -55%) scale(1.1);
    }
}

/* ---------- Enhanced Feature Card Hover ---------- */
.feature-card {
    will-change: transform, box-shadow;
}

.feature-card:hover {
    box-shadow:
        var(--shadow-xl),
        0 0 0 1px rgba(79, 70, 229, 0.1),
        0 20px 60px -15px rgba(79, 70, 229, 0.15);
}

.feature-card .feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-3deg);
}

/* ---------- Stat Card Enhancements ---------- */
.stat-card {
    will-change: transform;
}

.stat-number {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.08);
}

/* ---------- Pricing Card Shine ---------- */
.pricing-card {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%);
    transform: rotate(45deg) translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pricing-card:hover::after {
    transform: rotate(45deg) translateY(-100%);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* ---------- CTA Button Shimmer ---------- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* ---------- Toolkit Card Pulse Border ---------- */
.toolkit-card {
    position: relative;
    transition: all var(--transition-base);
}

.toolkit-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        var(--shadow-xl),
        0 0 30px rgba(79, 70, 229, 0.1);
}

/* ---------- Step Number Bounce ---------- */
.step-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-number {
    transform: scale(1.2);
}

/* ---------- Exchange Chip Float ---------- */
.exchange-chip {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exchange-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---------- Smooth Link Underline ---------- */
.footer-links a {
    position: relative;
}

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

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

/* ---------- Hero Search Breathing Glow ---------- */
.hero-search-inner {
    animation: searchGlow 4s ease-in-out infinite;
}

@keyframes searchGlow {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 70, 229, 0.08);
    }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary-light);
}

/* ---------- 5-Column Pricing Grid (M-M1 mobile-responsive) ---------- */
.pricing-grid-5 {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
}

@media (max-width: 1200px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .pricing-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .pricing-grid-5 {
        grid-template-columns: 1fr !important;
    }
}

/* 2026-04-25: a11y helper for screen-reader-only labels (used by hero search,
   playbook capture, and any other input that has a placeholder but no visible
   <label>). Kept off-screen but readable to assistive tech. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
