/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg-primary: #050814;
    --bg-secondary: #060914;
    --bg-card: #0B1020;
    --bg-card-hover: #0f1528;
    /* Borders & Dividers */
    --border-color: #1F2937;
    --border-color-hover: #374151;
    /* Text Colors */
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    /* Accent Colors */
    --accent-cyan: #22D3EE;
    --accent-cyan-hover: #06B6D4;
    --accent-purple: #A855F7;
    --accent-glow: rgba(34, 211, 238, 0.3);
    --accent-glow-strong: rgba(34, 211, 238, 0.5);
    --gradient-accent: linear-gradient(135deg, #22D3EE, #06B6D4);
    --gradient-accent-alt: linear-gradient(135deg, #22D3EE, #A855F7);
    /* Status Colors */
    --status-success: #22C55E;
    --status-error: #EF4444;
    --status-warning: #F59E0B;
    --status-info: #3B82F6;
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Figtree', 'Inter', sans-serif;
    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== STRIPES (startup.io style) ===== */
.hero-stripes {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 120px;
    display: flex;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
    opacity: 0.15;
    z-index: 1;
}

.hero-stripes .stripe {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(34,211,238,0.5), transparent);
}

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

section {
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.logo-icon img {
    height: 100px;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

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

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

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gradient-accent);
    color: white !important;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

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

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.hero-solution-tag,
.hero-differentiator,
.hero-isolated {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-solution-tag {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-differentiator {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.6;
    text-shadow: 0 0 24px var(--accent-glow);
}

.hero-isolated {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.6;
    text-shadow: 0 0 24px var(--accent-glow);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 50px var(--accent-glow-strong), 0 8px 30px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color-hover);
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.2);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-social-proof strong {
    color: var(--text-primary);
}

/* ===== METRICS BAR ===== */
.metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 16px;
}

.metric-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(11, 16, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.metric-item:hover {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.04);
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.metric-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== SECTION STYLES ===== */
.content-section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-title--bold {
    font-weight: 900;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.research-link-wrap {
    margin-top: 24px;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(168,85,247,0.12));
    border: 1px solid rgba(34,211,238,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-cyan);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* ===== CONTENT BLOCKS (alternating image/text) ===== */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.content-block:first-of-type {
    border-top: none;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.content-block-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.content-block-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

.content-block-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
    max-width: 820px;
    margin: 0 auto;
}

.content-block-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* CTEM process flow (vertical linear) and explanations */
.ctem-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto 40px;
}
.ctem-flow-step {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.ctem-flow-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.15);
}
.ctem-flow-step:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}
.ctem-flow-step.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
}
.ctem-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    color: var(--accent-cyan);
    opacity: 0.7;
}
.ctem-loop-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 4px;
}
.ctem-loop-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    opacity: 0.85;
}
.ctem-explanation-prompt {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 24px;
}
.ctem-explanations {
    max-width: 560px;
    margin: 0 auto;
}
.ctem-explanation-block {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.ctem-explanation-block.ctem-explanation-visible {
    display: block;
}
.ctem-explanation-block h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.ctem-explanation-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .ctem-flow {
        max-width: 100%;
    }
    .ctem-flow-step {
        font-size: 0.85rem;
        padding: 14px 16px;
    }
    .ctem-explanation-block {
        padding: 20px;
    }
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.image-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.5;
}

/* ===== SUBSECTION ===== */
.subsection {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.subsection h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.subsection p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.subsection .image-placeholder {
    margin-top: 24px;
}

/* ===== USE CASES ===== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
}

.use-case-card .role-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ===== INTEGRATIONS / PLATFORMS ===== */
.integrations-subheading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.integrations-subheading:first-of-type {
    margin-top: 0;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.integration-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.integration-logo {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.integration-logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.integration-card:hover .integration-logo img {
    filter: brightness(1.1);
}

.integration-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .integration-card {
        padding: 20px 12px;
    }

    .integration-logo {
        height: 40px;
    }

    .integration-logo img {
        max-height: 40px;
    }

    .integration-name {
        font-size: 0.8rem;
    }
}

/* ===== FRAMEWORKS & STANDARDS ===== */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.framework-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.framework-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.framework-card-logo {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.framework-card-logo img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.framework-card:hover .framework-card-logo img {
    filter: brightness(1.1);
}

.framework-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
}

.framework-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .frameworks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .framework-card {
        padding: 22px;
    }

    .framework-card-logo {
        height: 48px;
        margin-bottom: 12px;
    }

    .framework-card-logo img {
        max-height: 48px;
    }

    .framework-card-title {
        font-size: 1rem;
    }

    .framework-card-desc {
        font-size: 0.88rem;
    }
}

/* ===== THE TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.team-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-card:hover .team-card-image img {
    filter: grayscale(0%);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 16px 4px;
}

.team-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 16px 16px;
    line-height: 1.4;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.team-linkedin:hover {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== COMPARISON TABLE ===== */
.comparison-table-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table thead th {
    padding: 20px 24px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.comparison-table thead th:first-child {
    text-align: left;
    width: 30%;
}

.comparison-table thead th.highlight-col {
    background: rgba(34, 211, 238, 0.06);
    color: var(--accent-cyan);
    position: relative;
}

.comparison-table thead th.highlight-col::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.comparison-table tbody td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

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

.comparison-table tbody td.highlight-col {
    background: rgba(34, 211, 238, 0.03);
}

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

.comparison-table tbody tr:hover td.highlight-col {
    background: rgba(34, 211, 238, 0.06);
}

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

.table-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
}

.table-check svg {
    width: 14px;
    height: 14px;
    stroke: var(--status-success);
    fill: none;
    stroke-width: 2.5;
}

.table-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
}

.table-x svg {
    width: 14px;
    height: 14px;
    stroke: var(--status-error);
    fill: none;
    stroke-width: 2.5;
}

.table-partial {
    font-size: 0.8rem;
    color: var(--status-warning);
    font-weight: 600;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 48px;
    }

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

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .comparison-table thead th {
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
        min-width: 72px;
    }

    .comparison-table thead th:first-child {
        min-width: 0;
        width: 28%;
    }

    .comparison-table thead th.highlight-col {
        min-width: 80px;
    }

    .comparison-table tbody td:first-child {
        font-size: 0.75rem;
        line-height: 1.35;
        word-break: break-word;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-box .btn-primary {
    position: relative;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

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

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

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

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

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-bottom {
    padding-top: 28px;
    padding-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    text-align: center;
}

.footer-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-linkedin:hover {
    color: #0A66C2;
    border-color: #0A66C2;
}

.footer-linkedin svg {
    flex-shrink: 0;
}

.footer-divider {
    color: var(--text-muted);
    font-size: 0.75rem;
    user-select: none;
}

.footer-legal-btn {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    transition: color 0.2s ease;
}

.footer-legal-btn:hover {
    color: var(--accent-cyan);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.modal-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.modal-close:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.modal-box h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-box .modal-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-box h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.modal-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.modal-box ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.modal-box ul li::before {
    content: '\2022';
    color: var(--accent-cyan);
    position: absolute;
    left: 4px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 16px;
}

.footer-disclaimer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

.footer-email {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-email:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        gap: 8px 12px;
    }
}

/* ===== DIVIDER ===== */
.section-divider {
    height: 1px;
    background: var(--border-color);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== PROBLEM BANNER ===== */
.problem-banner {
    padding: 80px 0;
}

.problem-quote {
    text-align: center;
    max-width: 760px;
    margin: -20px auto 0;
}

.problem-punch {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
}

.problem-punch strong {
    color: var(--accent-cyan);
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-block.reverse {
        direction: ltr;
    }

    .content-block-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .hero {
        padding: 140px 0 80px;
    }

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

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

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

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

    .subsection {
        padding: 24px;
    }

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

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 12px 0;
        order: 3;
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}
