/* ============================================================================
   Prometheus AI -- Marketing Website Design System
   Dark theme with orange accents | Production-quality landing site
   ============================================================================ */


/* ============================================================================
   1. CSS VARIABLES (:root)
   ============================================================================ */
:root {
    /* ---- Primary Orange Palette ---- */
    --orange:              #ff6b35;
    --orange-end:          #f7931e;
    --orange-gradient:     linear-gradient(135deg, #ff6b35, #f7931e);
    --orange-gradient-h:   linear-gradient(90deg, #ff6b35, #f7931e);
    --orange-glow:         rgba(255, 107, 53, 0.25);
    --orange-glow-strong:  rgba(255, 107, 53, 0.45);
    --orange-dim:          #e05a2b;
    --orange-border:       rgba(249, 115, 22, 0.35);

    /* ---- Backgrounds ---- */
    --bg-body:             #0a0e17;
    --bg-mid:              #1a1f2e;
    --bg-dark:             #0d1117;
    --bg-card:             rgba(26, 31, 46, 0.8);
    --bg-card-solid:       #1a1f2e;
    --bg-elevated:         #161b26;
    --bg-surface:          #1c2333;
    --bg-hover:            #252d3f;
    --bg-input:            #111827;

    /* ---- Text ---- */
    --text-primary:        #ffffff;
    --text-secondary:      #9ca3af;
    --text-tertiary:       #6b7280;
    --text-on-orange:      #ffffff;

    /* ---- Borders ---- */
    --border-card:         rgba(249, 115, 22, 0.35);
    --border-subtle:       rgba(255, 255, 255, 0.08);
    --border-hover:        rgba(255, 255, 255, 0.16);

    /* ---- Semantic Colors ---- */
    --success:             #10b981;
    --danger:              #ef4444;
    --warning:             #f59e0b;
    --info:                #3b82f6;

    /* ---- Typography ---- */
    --font-sans:           'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:           'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

    /* ---- Spacing ---- */
    --section-pad:         100px;
    --container-max:       1200px;
    --container-narrow:    800px;

    /* ---- Transitions ---- */
    --ease:                cubic-bezier(0.4, 0, 0.2, 1);
    --transition:          0.3s var(--ease);

    /* ---- Glass-morphism ---- */
    --glass-bg:            rgba(26, 31, 46, 0.6);
    --glass-bg-heavy:      rgba(26, 31, 46, 0.85);
    --glass-border:        rgba(255, 255, 255, 0.08);
    --glass-blur:          10px;

    /* ---- Shadows ---- */
    --shadow-sm:           0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md:           0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg:           0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-orange:       0 8px 32px rgba(255, 107, 53, 0.2);
    --shadow-orange-lg:    0 16px 48px rgba(255, 107, 53, 0.3);

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


/* ============================================================================
   2. 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;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 53, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 50%, rgba(247, 147, 30, 0.02) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a:hover {
    color: var(--orange-end);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: rgba(255, 107, 53, 0.35);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(255, 107, 53, 0.35);
    color: var(--text-primary);
}


/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.text-orange  { color: var(--orange); }
.text-muted   { color: var(--text-tertiary); }
.text-white   { color: var(--text-primary); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }


/* ============================================================================
   4. LAYOUT & CONTAINERS
   ============================================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

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

.section--gradient {
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-mid) 50%, var(--bg-body) 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 53, 0.2);
}


/* ============================================================================
   5. NAVBAR
   ============================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 23, 0.95);
    border-bottom-color: var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Logo ---- */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    color: var(--text-primary);
    opacity: 0.9;
}

.nav-logo svg,
.nav-logo img {
    width: 34px;
    height: 34px;
}

.nav-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--orange-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 900;
}

/* ---- Nav Links ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-gradient-h);
    border-radius: 1px;
    transition: width var(--transition);
}

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

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

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

/* ---- Nav Actions ---- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-login:hover {
    color: var(--orange);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 24px 40px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    padding: 16px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease);
}

.mobile-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.mobile-menu .btn {
    margin-top: 16px;
    width: 100%;
    max-width: 400px;
}


/* ============================================================================
   6. BUTTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

/* Primary: orange gradient */
.btn-primary {
    background: var(--orange-gradient);
    color: var(--text-on-orange);
    border-color: transparent;
    box-shadow: 0 4px 16px var(--orange-glow);
}

.btn-primary:hover {
    color: var(--text-on-orange);
    box-shadow: var(--shadow-orange-lg);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--orange-glow);
}

/* Outline: border only */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 53, 0.08);
    transform: translateY(-2px);
}

/* Secondary: glass */
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-heavy);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Ghost: no border, no bg */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: none;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Sizes */
.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Button icon */
.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* ============================================================================
   7. HERO SECTION
   ============================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    overflow: hidden;
}

/* ---- Animated Grid Background ---- */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 53, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(247, 147, 30, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
}

/* Grid overlay for extra depth */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 107, 53, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 53, 0.015) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 0%, transparent 70%);
}

@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- Floating Particles ---- */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 6px var(--orange-glow);
}

.particle:nth-child(1)  { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   }
.particle:nth-child(2)  { left: 18%; animation-duration: 13s; animation-delay: 2s;   }
.particle:nth-child(3)  { left: 30%; animation-duration: 11s; animation-delay: 4s;   }
.particle:nth-child(4)  { left: 42%; animation-duration: 15s; animation-delay: 1s;   }
.particle:nth-child(5)  { left: 55%; animation-duration: 10s; animation-delay: 3s;   }
.particle:nth-child(6)  { left: 68%; animation-duration: 12s; animation-delay: 5s;   }
.particle:nth-child(7)  { left: 78%; animation-duration: 14s; animation-delay: 6s;   }
.particle:nth-child(8)  { left: 88%; animation-duration: 8s;  animation-delay: 2.5s; }
.particle:nth-child(9)  { left: 5%;  animation-duration: 16s; animation-delay: 7s;   }
.particle:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 1.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    8% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120px) scale(1);
        opacity: 0;
    }
}

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 50%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
    background-size: 200% 100%;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 620px;
    margin: 0 auto 44px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Hero Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 28px;
    animation: float 6s ease-in-out infinite;
}


/* ============================================================================
   8. STATS BAR (count-up animation support)
   ============================================================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--orange-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* Count-up animation target */
.stat-value[data-count] {
    transition: none;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 6px;
    font-weight: 500;
}


/* ============================================================================
   9. FEATURE CARDS
   ============================================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

/* Orange top border on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange-gradient-h);
    opacity: 0;
    transition: opacity var(--transition);
}

/* Subtle gradient glow in corner */
.feature-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--orange-border);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 53, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 14px;
    margin-bottom: 22px;
    font-size: 1.5rem;
    color: var(--orange);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--orange-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--orange-glow);
    transform: scale(1.05);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

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


/* ============================================================================
   10. GLASS CARDS
   ============================================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
}


/* ============================================================================
   11. STEPS (numbered with gradient numbers)
   ============================================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

/* Connecting line between steps */
.steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), var(--orange-end), var(--orange), transparent);
    opacity: 0.3;
}

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

.step-number {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--bg-dark);
    border: 2px solid transparent;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    background-clip: padding-box;
}

/* Gradient border effect using pseudo-element */
.step-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--orange-gradient);
    z-index: -1;
}

/* Gradient text for the number */
.step-number span,
.step-number {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Outer glow */
.step-number::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--orange-glow);
    z-index: -2;
    opacity: 0;
    transition: opacity var(--transition);
}

.step:hover .step-number::after {
    opacity: 1;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}


/* ============================================================================
   12. PRICING SECTION
   ============================================================================ */

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

.pricing-toggle span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

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

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-track {
    background: var(--orange);
    border-color: var(--orange);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform var(--transition);
    pointer-events: none;
}

.toggle-switch input:checked ~ .toggle-thumb {
    transform: translateX(24px);
    background: var(--bg-body);
}

.save-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange);
    background: rgba(255, 107, 53, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 53, 0.25);
}

/* ---- Pricing Grid (4-tier) ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

/* Fallback for 3-tier */
.pricing-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

/* Featured / Popular card */
.pricing-card.featured,
.pricing-card.popular {
    border-color: var(--orange);
    box-shadow: 0 0 50px var(--orange-glow);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card.featured:hover,
.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: var(--shadow-orange-lg);
}

/* Popular badge */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--orange-glow);
}

.pricing-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 20px 0 4px;
    letter-spacing: -0.03em;
}

.pricing-card .price-unit {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.pricing-card .price-sub {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Feature list with checkmarks */
.pricing-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-features li.disabled {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.pricing-features li.disabled::before {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 8px;
}


/* ============================================================================
   13. CTA BANNER
   ============================================================================ */
.cta-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.05) 100%);
    border: 1px solid var(--orange-border);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 100%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 0%, rgba(247, 147, 30, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner h2 {
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    margin-bottom: 32px;
    font-size: 1.1rem;
    position: relative;
}

.cta-banner .btn {
    position: relative;
}


/* ============================================================================
   14. CONTACT FORM
   ============================================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.2s var(--ease);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Orange submit button */
.form-submit {
    background: var(--orange-gradient);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--orange-glow);
}

.form-submit:hover {
    box-shadow: var(--shadow-orange-lg);
    transform: translateY(-2px);
}

/* Contact info card */
.contact-info {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    color: var(--orange);
}

.contact-detail h4 {
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.9rem;
}


/* ============================================================================
   15. BLOG
   ============================================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--orange-border);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 20px;
    background: var(--bg-elevated);
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card h3 a:hover {
    color: var(--orange);
}

.blog-card p {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* Author meta */
.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Blog Post Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-content { min-width: 0; }

.blog-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.blog-meta {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-body {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.blog-body h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.blog-body p { margin-bottom: 16px; }
.blog-body a { color: var(--orange); }
.blog-body strong { color: var(--text-primary); }

.blog-body ul, .blog-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-body li { margin-bottom: 8px; }

.blog-body code {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--orange);
}

.blog-body pre {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.blog-body blockquote {
    border-left: 3px solid var(--orange);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Blog Sidebar / TOC */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.toc h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.toc-list { list-style: none; }

.toc-list li { padding: 6px 0; }

.toc-list a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: all 0.2s var(--ease);
    display: block;
    padding-left: 12px;
    border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--orange);
    border-left-color: var(--orange);
}


/* ============================================================================
   16. DOCS (sidebar navigation, code blocks, syntax)
   ============================================================================ */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    min-height: 60vh;
}

/* Docs Sidebar */
.docs-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 16px;
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.docs-nav-group {
    margin-bottom: 28px;
}

.docs-nav-group h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    padding-left: 12px;
}

.docs-nav-group ul {
    list-style: none;
}

.docs-nav-group li {
    margin-bottom: 2px;
}

.docs-nav-group a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
    border-left: 2px solid transparent;
}

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

.docs-nav-group a.active {
    color: var(--orange);
    background: rgba(255, 107, 53, 0.08);
    border-left-color: var(--orange);
}

/* Docs Content */
.docs-content {
    min-width: 0;
    max-width: 800px;
}

.docs-content h1 { margin-bottom: 16px; }
.docs-content h2 {
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.docs-content h3 { margin: 32px 0 12px; }

.docs-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Code blocks with syntax highlighting */
.code-block {
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.code-copy {
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s var(--ease);
}

.code-copy:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.code-copy.copied {
    border-color: var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.code-block pre {
    margin: 0;
    padding: 16px 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Syntax highlighting tokens */
.code-block .token-keyword    { color: #c678dd; }
.code-block .token-string     { color: #98c379; }
.code-block .token-comment    { color: #5c6370; font-style: italic; }
.code-block .token-function   { color: #61afef; }
.code-block .token-number     { color: #d19a66; }
.code-block .token-operator   { color: #56b6c2; }
.code-block .token-class      { color: #e5c07b; }
.code-block .token-variable   { color: #e06c75; }
.code-block .token-punctuation { color: #abb2bf; }

/* Inline code */
.docs-content code:not([class]) {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--orange);
}

/* Config/API tables */
.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
}

.config-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-subtle);
}

.config-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.config-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.config-table code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--orange);
}


/* ============================================================================
   17. ABOUT (team grid, mission statement)
   ============================================================================ */
.about-mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.about-mission h2 {
    margin-bottom: 24px;
}

.about-mission p {
    font-size: 1.15rem;
    line-height: 1.8;
}

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

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    border-color: var(--orange-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    border: 3px solid rgba(255, 107, 53, 0.3);
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 500;
}

.team-card p {
    font-size: 0.875rem;
    margin-top: 12px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.team-social a {
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.team-social a:hover {
    color: var(--orange);
}


/* ============================================================================
   18. FOOTER
   ============================================================================ */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
    margin-top: var(--section-pad);
}

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

.footer-brand {
    max-width: 320px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 18px;
    font-weight: 700;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--orange);
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-tertiary);
    transition: all var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.footer-social a:hover {
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
}


/* ============================================================================
   19. COMPARISON TABLE
   ============================================================================ */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table thead th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
    position: sticky;
    top: 70px;
}

.comparison-table thead th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table thead th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table thead th.highlight {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.comparison-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover td {
    background: var(--bg-hover);
}

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

.comparison-table .check { color: var(--orange); font-weight: 700; }
.comparison-table .cross { color: var(--text-tertiary); }

.comparison-table .highlight-col {
    background: rgba(255, 107, 53, 0.03);
}


/* ============================================================================
   20. FAQ
   ============================================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: var(--orange-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--orange);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}


/* ============================================================================
   21. EXPANDABLE SECTIONS
   ============================================================================ */
.expand-section {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.expand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-align: left;
    transition: all 0.2s var(--ease);
}

.expand-header:hover {
    background: var(--bg-hover);
}

.expand-icon {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--text-tertiary);
    transition: transform var(--transition);
}

.expand-section.open .expand-icon {
    transform: rotate(180deg);
    color: var(--orange);
}

.expand-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.expand-body-inner {
    padding: 0 28px 28px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.expand-section.open .expand-body {
    max-height: 2000px;
}


/* ============================================================================
   22. PORTAL / ADMIN LOGIN CARDS
   ============================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-body);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--orange-gradient-h);
    border-radius: 0 0 4px 4px;
}

.login-card .nav-logo {
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.login-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-card .login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

.login-card .login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-card .login-footer a {
    color: var(--orange);
    font-weight: 500;
}

/* Login error message */
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Login success */
.login-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}


/* ============================================================================
   23. ERROR PAGES
   ============================================================================ */
.error-page {
    text-align: center;
    padding: 120px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}


/* ============================================================================
   24. KEYFRAME ANIMATIONS
   ============================================================================ */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* Shimmer (gradient sweep) */
@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Glow Pulse for featured cards */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px var(--orange-glow); }
    50%      { box-shadow: 0 0 60px var(--orange-glow-strong); }
}

/* Count-up number animation helper */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Rotate (for spinners) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient border rotation */
@keyframes borderRotate {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Featured pricing card animation */
.pricing-card.featured,
.pricing-card.popular {
    animation: glowPulse 4s ease-in-out infinite;
}


/* ============================================================================
   25. SCROLL-TRIGGERED ANIMATIONS (.fade-up)
   ============================================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* Staggered delays for grid children */
.feature-grid .fade-up:nth-child(2),
.pricing-grid .fade-up:nth-child(2),
.steps .fade-up:nth-child(2) { transition-delay: 0.1s; }

.feature-grid .fade-up:nth-child(3),
.pricing-grid .fade-up:nth-child(3),
.steps .fade-up:nth-child(3) { transition-delay: 0.2s; }

.feature-grid .fade-up:nth-child(4),
.pricing-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }

.feature-grid .fade-up:nth-child(5) { transition-delay: 0.4s; }
.feature-grid .fade-up:nth-child(6) { transition-delay: 0.5s; }

.stats-bar .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stats-bar .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stats-bar .fade-up:nth-child(4) { transition-delay: 0.3s; }

.blog-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.blog-grid .fade-up:nth-child(3) { transition-delay: 0.15s; }

.team-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.team-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }
.team-grid .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* Fade variants */
.fade-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


/* ============================================================================
   26. UTILITIES
   ============================================================================ */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Display */
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.d-block    { display: block; }
.d-none     { display: none; }
.d-inline   { display: inline; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap  { flex-wrap: wrap; }
.gap-1      { gap: 8px; }
.gap-2      { gap: 16px; }
.gap-3      { gap: 24px; }
.gap-4      { gap: 32px; }

/* Width helpers */
.w-full  { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge utility */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-orange {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border-subtle);
    margin: 32px 0;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* ============================================================================
   27. ACCESSIBILITY — FOCUS RINGS
   ============================================================================ */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.form-submit:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

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

.hamburger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-question:focus-visible,
.expand-header:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 16px;
}


/* ============================================================================
   28. RESPONSIVE — MOBILE FIRST
   ============================================================================ */

/* ---- Tablet: max-width 900px ---- */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pricing-card.featured,
    .pricing-card.popular {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
    }

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

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

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

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
        padding-right: 0;
        margin-bottom: 32px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs-nav-group {
        margin-bottom: 0;
    }
}

/* ---- Mobile: max-width 768px ---- */
@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }

    /* Hide desktop nav, show hamburger */
    .nav-links,
    .nav-actions .nav-login {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding: 120px 24px 64px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 48px;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 28px 24px;
    }

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

    .steps::before {
        display: none;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-card.featured,
    .pricing-card.popular {
        max-width: none;
    }

    /* CTA */
    .cta-banner {
        padding: 40px 24px;
    }

    /* Comparison table */
    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    /* Login */
    .login-card {
        padding: 36px 24px;
    }
}

/* ---- Small mobile: max-width 500px ---- */
@media (max-width: 500px) {
    :root {
        --section-pad: 48px;
    }

    .container {
        padding: 0 16px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 16px;
    }

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

    .section-header p {
        font-size: 1rem;
    }

    h1 { font-size: clamp(1.75rem, 7vw, 2rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 1.75rem); }

    .cta-banner {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .pricing-card {
        padding: 32px 20px;
    }

    .error-code {
        font-size: 5rem;
    }
}


/* ============================================================================
   29. PREFERS-REDUCED-MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-up,
    .fade-left,
    .fade-right,
    .scale-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    .hero h1 {
        animation: none;
        background-size: 100% 100%;
    }

    .particle {
        display: none;
    }

    .hero-bg::before {
        animation: none;
    }
}


/* ============================================================================
   30. PREFERS-COLOR-SCHEME (high contrast)
   ============================================================================ */
@media (prefers-contrast: high) {
    :root {
        --border-subtle:   rgba(255, 255, 255, 0.2);
        --border-hover:    rgba(255, 255, 255, 0.4);
        --text-secondary:  #c0c0c0;
        --text-tertiary:   #999999;
    }

    .feature-card,
    .pricing-card,
    .glass-card,
    .blog-card {
        border-width: 2px;
    }
}


/* ============================================================================
   31. PRINT STYLES
   ============================================================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .navbar,
    .hamburger,
    .mobile-menu,
    .hero-bg,
    .hero-particles,
    .hero-grid-overlay,
    .footer-social,
    .btn,
    .cta-banner,
    .pricing-toggle {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .hero h1 {
        -webkit-text-fill-color: #000;
        background: none;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .feature-grid,
    .pricing-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card,
    .pricing-card,
    .blog-card,
    .glass-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .footer {
        border-top: 1px solid #ccc;
        padding: 12px 0;
    }

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

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .nav-logo a::after,
    .footer a::after {
        content: none;
    }
}


/* ============================================================================
   END OF STYLES — Prometheus AI Marketing Website
   Total: ~1700 lines | Dark theme, orange accents, glass-morphism
   ============================================================================ */
