/* =============================================
   CORTEX AI — Premium Glassmorphism Design
   ============================================= */

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

:root {
    --bg-deep: #0a0a0f;
    --bg-surface: #111118;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --purple: #8b5cf6;
    --purple-dim: rgba(139, 92, 246, 0.15);
    --purple-glow: rgba(139, 92, 246, 0.4);
    --cyan: #06b6d4;
    --cyan-dim: rgba(6, 182, 212, 0.15);
    --cyan-glow: rgba(6, 182, 212, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --red: #ef4444;
    --green: #22c55e;
    --yellow: #eab308;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Background Effects --- */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation-delay: -14s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

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

    75% {
        transform: translate(15px, 30px) scale(1.02);
    }
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Glass Effect Base --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

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

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--purple-dim);
}

.nav-cta:hover {
    box-shadow: 0 0 30px var(--purple-glow);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

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

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 4px var(--green);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 12px var(--green);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: white;
    box-shadow: 0 0 24px var(--purple-dim), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px var(--purple-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* --- Stats --- */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* --- Terminal Demo --- */
.terminal-window {
    max-width: 680px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    min-height: 160px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: var(--green);
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.cursor {
    color: var(--purple);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-output {
    margin-top: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.82rem;
}

.terminal-output .success {
    color: var(--green);
}

.terminal-output .info {
    color: var(--cyan);
}

.terminal-output .purple-text {
    color: var(--purple);
}

/* --- Section Headers --- */
section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Problem / Solution --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-card {
    padding: 36px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.red-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
}

.green-icon {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
}

.comparison-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.comparison-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-card li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    padding-left: 28px;
    position: relative;
}

.without li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--red);
}

.with li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--green);
}

.with {
    border-color: rgba(34, 197, 94, 0.2);
}

/* --- Brain Timeline (Vertical Pipeline) --- */
.brain-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--purple) 5%,
            var(--cyan) 50%,
            var(--purple) 95%,
            transparent 100%);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-spine::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 8px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--purple-dim) 5%,
            var(--cyan-dim) 50%,
            var(--purple-dim) 95%,
            transparent 100%);
    filter: blur(4px);
}

/* Category Labels */
.timeline-category {
    display: flex;
    justify-content: center;
    margin: 32px 0 20px;
    position: relative;
    z-index: 2;
}

.timeline-category:first-of-type {
    margin-top: 0;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.category-label:hover {
    transform: none;
    box-shadow: 0 0 20px var(--purple-dim);
}

/* Timeline Items */
.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 16px;
    z-index: 1;
}

.timeline-item.left {
    padding-right: calc(50% + 32px);
    justify-content: flex-end;
}

.timeline-item.right {
    padding-left: calc(50% + 32px);
    justify-content: flex-start;
}

/* Timeline Node (central dot) */
.timeline-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 12px var(--purple-dim), inset 0 0 8px var(--purple-dim);
    transition: all 0.3s ease;
}

.timeline-node span {
    font-size: 0.72rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-node.hot {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3), inset 0 0 8px rgba(245, 158, 11, 0.15);
    animation: pulse-hot 2s ease-in-out infinite;
}

.timeline-node.final {
    width: 42px;
    height: 42px;
    border-width: 3px;
    border-image: linear-gradient(135deg, var(--purple), var(--cyan)) 1;
    border-image: none;
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-dim), inset 0 0 12px var(--cyan-dim);
}

@keyframes pulse-hot {

    0%,
    100% {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.3), inset 0 0 8px rgba(245, 158, 11, 0.15);
    }

    50% {
        box-shadow: 0 0 28px rgba(245, 158, 11, 0.5), inset 0 0 12px rgba(245, 158, 11, 0.25);
    }
}

/* Timeline Card */
.timeline-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    max-width: 100%;
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--purple-dim), transparent);
}

.timeline-item.left .timeline-card::before {
    right: -24px;
    background: linear-gradient(90deg, transparent, var(--purple-dim));
}

.timeline-item.right .timeline-card::before {
    left: -24px;
    background: linear-gradient(90deg, var(--purple-dim), transparent);
}

.timeline-card:hover {
    border-color: var(--purple);
    box-shadow: 0 0 24px var(--purple-dim);
    transform: translateY(-2px);
}

.tc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tc-icon.purple {
    background: var(--purple-dim);
    color: var(--purple);
}

.tc-icon.cyan {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.tc-icon.orange {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.tc-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.tc-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Hover: highlight the node when hovering on card */
.timeline-item:hover .timeline-node {
    box-shadow: 0 0 24px var(--purple-glow), inset 0 0 12px var(--purple-dim);
    border-color: var(--cyan);
}

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.tool-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon.purple {
    background: var(--purple-dim);
    color: var(--purple);
}

.tool-icon.cyan {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.tool-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.tool-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: start;
}

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

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--purple-dim);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.code-block {
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
}

.copy-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.copy-btn.copied {
    color: var(--green);
}

.code-block code {
    display: block;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
}

/* --- Compatibility --- */
.compat-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.compat-item {
    padding: 20px 36px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.compat-name {
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pricing-card {
    padding: 40px;
    position: relative;
}

.pricing-card.pro {
    border-color: var(--purple);
    box-shadow: 0 0 40px var(--purple-dim);
    background: rgba(139, 92, 246, 0.04);
}

.pro-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 28px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
}

.pricing-features li.included::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--green);
}

.pricing-features li.excluded {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-features li.excluded::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.1);
    border: 2px solid var(--text-muted);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 12px;
    max-width: 260px;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.25s ease;
}

a.trust-badge:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.08);
}

/* --- Step Connectors --- */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

/* --- Compat Icons --- */
.compat-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    margin-left: auto;
    margin-right: auto;
}

.compat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
}

/* --- Pro Card Animated Glow --- */
@keyframes proGlow {

    0%,
    100% {
        box-shadow: 0 0 30px var(--purple-dim);
    }

    50% {
        box-shadow: 0 0 60px var(--purple-dim), 0 0 100px rgba(139, 92, 246, 0.1);
    }
}

.pricing-card.pro {
    animation: proGlow 3s ease-in-out infinite;
}

.pulse-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* --- Testimonials --- */
.testimonials {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

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

.testimonial-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 16px;
}

.faq-question h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 1.4rem;
    color: var(--purple);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Final CTA --- */
.final-cta {
    position: relative;
    z-index: 1;
    padding: 40px 0 80px;
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.04));
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.1);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.cta-box .hero-ctas {
    justify-content: center;
}

/* --- Footer Gradient Line --- */
.footer-gradient-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
    margin-bottom: 40px;
    border-radius: 2px;
}

/* --- Social Links --- */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}

/* --- Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.tools-grid .animate-in:nth-child(2) {
    transition-delay: 0.05s;
}

.tools-grid .animate-in:nth-child(3) {
    transition-delay: 0.1s;
}

.tools-grid .animate-in:nth-child(4) {
    transition-delay: 0.15s;
}

.tools-grid .animate-in:nth-child(5) {
    transition-delay: 0.2s;
}

.tools-grid .animate-in:nth-child(6) {
    transition-delay: 0.25s;
}

.tools-grid .animate-in:nth-child(7) {
    transition-delay: 0.3s;
}

.tools-grid .animate-in:nth-child(8) {
    transition-delay: 0.35s;
}

.brain-timeline .timeline-item:nth-child(3) {
    transition-delay: 0.05s;
}

.brain-timeline .timeline-item:nth-child(4) {
    transition-delay: 0.1s;
}

.brain-timeline .timeline-item:nth-child(5) {
    transition-delay: 0.15s;
}

.brain-timeline .timeline-item:nth-child(6) {
    transition-delay: 0.1s;
}

.brain-timeline .timeline-item:nth-child(7) {
    transition-delay: 0.05s;
}

.brain-timeline .timeline-item:nth-child(8) {
    transition-delay: 0.1s;
}

.brain-timeline .timeline-item:nth-child(9) {
    transition-delay: 0.15s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

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

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

    .step-connector {
        transform: rotate(90deg);
        padding: 4px 0;
    }

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

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    /* Timeline mobile: single column, left-aligned */
    .brain-timeline {
        padding-left: 28px;
    }

    .timeline-spine {
        left: 18px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 52px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-node {
        left: 18px;
        width: 30px;
        height: 30px;
    }

    .timeline-node.final {
        width: 34px;
        height: 34px;
    }

    .timeline-card::before {
        display: none;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .compat-logos {
        flex-direction: column;
        align-items: center;
    }

    .brain-timeline {
        padding-left: 20px;
    }

    .timeline-spine {
        left: 14px;
    }

    .timeline-item.left,
    .timeline-item.right {
        padding-left: 44px;
    }

    .timeline-node {
        left: 14px;
        width: 26px;
        height: 26px;
    }

    .timeline-node span {
        font-size: 0.6rem;
    }
}
