/* ===== CSS Variables ===== */
:root {
    --navy: #0a1628;
    --navy-light: #111d33;
    --navy-mid: #162240;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --blue-glow: rgba(37, 99, 235, 0.15);
    --cyan: #06b6d4;
    --pink: #c084fc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --orange: #f97316;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --section-padding: 120px 0;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 36px;
    width: auto;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar.scrolled .logo-icon {
    height: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-ai {
    background: linear-gradient(135deg, var(--pink), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-bi {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-light);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    animation: heroGradient 12s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-20px);
    }
}

/* Subtle grid lines in hero background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Logo */
.hero-logo {
    position: relative;
    margin-bottom: 32px;
}

.hero-logo-img {
    width: 160px;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(192, 132, 252, 0.1) 40%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    color: var(--blue-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--blue-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-dark {
    color: var(--blue);
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-400);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--blue-light);
    color: var(--white);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-400);
    max-width: 180px;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-glow);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Problem Section ===== */
.problem {
    padding: var(--section-padding);
    background: var(--gray-50);
    position: relative;
}

/* Dot grid background pattern */
.problem::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
}

.problem .container {
    position: relative;
    z-index: 1;
}

.problem-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.problem-card {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--blue-light) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.08);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-glow), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

/* Pain Tier Escalation */
.pain-tier-label {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.pain-tier-1 { border-left: 4px solid var(--yellow); }
.pain-tier-1 .pain-tier-label {
    background: rgba(245, 158, 11, 0.1);
    color: var(--yellow);
}

.pain-tier-2 { border-left: 4px solid var(--orange); }
.pain-tier-2 .pain-tier-label {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
}

.pain-tier-3 { border-left: 4px solid var(--red); }
.pain-tier-3 .pain-tier-label {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

/* ===== Pivot Section ===== */
.pivot {
    padding: 100px 0 80px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pivot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.pivot-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.pivot-lead {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--gray-400);
    margin-bottom: 24px;
    font-weight: 400;
}

.pivot-question {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 24px;
    font-style: italic;
    line-height: 1.2;
}

.pivot-answer {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 48px;
}

.pivot-arrow {
    color: var(--blue-light);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Demo Section ===== */
.demo-section {
    padding: 0 0 100px;
    background: var(--navy);
    position: relative;
}

.demo-section .demo-window {
    max-width: 840px;
}

.demo-caption {
    text-align: center;
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-caption p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
}

.demo-caption strong {
    color: var(--blue-light);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: var(--section-padding);
    background: var(--white);
}

/* ===== Trust Section ===== */
.trust-security {
    padding: var(--section-padding);
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.trust-security::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.trust-security .container {
    position: relative;
    z-index: 1;
}

.trust-integrations {
    padding: var(--section-padding);
    background: var(--white);
}

/* ===== Platform / Demo Styles ===== */
.demo-window {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(10, 22, 40, 0.2),
        0 0 80px rgba(37, 99, 235, 0.05);
    transition: box-shadow 0.4s;
}

.demo-window:hover {
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.15),
        0 25px 70px rgba(10, 22, 40, 0.25),
        0 0 100px rgba(37, 99, 235, 0.08);
}

.demo-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--navy);
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.demo-dots span:first-child { background: var(--red); }
.demo-dots span:nth-child(2) { background: var(--yellow); }
.demo-dots span:last-child { background: var(--green); }

.demo-title {
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
}

.demo-content {
    padding: 32px;
    background: var(--navy-light);
}

.demo-query,
.demo-response {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.demo-response {
    margin-bottom: 0;
}

.demo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-avatar {
    background: var(--gray-600);
    color: var(--gray-300);
}

.ai-avatar {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: var(--white);
}

.demo-bubble {
    flex: 1;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
}

.user-bubble {
    background: var(--navy-mid);
    color: var(--gray-300);
    font-style: italic;
}

/* Typing animation */
.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--blue-light);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.ai-bubble {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: var(--gray-300);
}

.ai-bubble p {
    margin-bottom: 8px;
}

.ai-bubble ul {
    padding-left: 16px;
    margin-bottom: 12px;
}

.ai-bubble li {
    list-style: disc;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--gray-400);
}

.ai-bubble li strong {
    color: var(--gray-300);
}

.demo-sources {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.source-tag {
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Pillars */
.platform-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.pillar {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    transition: all 0.3s;
}

.pillar:hover {
    background: var(--gray-50);
}

.pillar-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    opacity: 0.3;
}

.pillar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pillar p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Features Section ===== */
.features {
    padding: var(--section-padding);
    background: var(--gray-50);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
}

.features .container {
    position: relative;
    z-index: 1;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-glow);
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.feature-text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-text > p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--gray-600);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 3px;
    transform: rotate(45deg);
}

/* Feature Visuals */
.feature-visual {
    position: relative;
}

/* Data Quality Dashboard */
.quality-dashboard {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
}

.quality-dashboard:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quality-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.quality-scores {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-bar-container {
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}

.quality-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.05));
    border-left: 3px solid var(--green);
    width: 0;
    font-size: 13px;
    font-weight: 500;
    min-width: 200px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quality-bar.animated {
    width: var(--width);
}

.quality-bar.good {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.03));
    border-left-color: var(--green);
}

.quality-bar.warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.03));
    border-left-color: var(--yellow);
}

.quality-bar.danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.03));
    border-left-color: var(--red);
}

.quality-issues {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}

.issue-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.warning-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--yellow);
}

.danger-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

/* Interview Demo */
.interview-demo {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: all 0.4s;
}

.interview-demo:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.interview-msg {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.interview-msg strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ai-msg {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}

.ai-msg strong {
    color: var(--blue);
}

.user-msg {
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.user-msg strong {
    color: var(--gray-500);
}

.interview-badge {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.badge-verified {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.badge-quality {
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* Analytics Demo */
.analytics-demo {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
}

.analytics-demo:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.analytics-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
}

.tab {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    border-bottom: 2px solid transparent;
    cursor: default;
}

.tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.analytics-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analytics-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-600);
    transition: all 0.3s;
}

.analytics-step:hover {
    background: var(--gray-100);
    padding-left: 20px;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--white);
}

.step-icon.observe { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.step-icon.plan { background: linear-gradient(135deg, var(--cyan), #22d3ee); }
.step-icon.act { background: linear-gradient(135deg, var(--green), #34d399); }
.step-icon.reflect { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* ===== Data Sources / Integrations ===== */
.source-category {
    margin-bottom: 48px;
}

.source-category:last-child {
    margin-bottom: 0;
}

.source-category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.source-item {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.source-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.source-item:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

.source-item:hover::before {
    transform: scaleX(1);
}

.source-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.source-desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Security Section ===== */
.security-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-text .section-tag {
    background: rgba(37, 99, 235, 0.15);
}

.security-text h2 {
    color: var(--white);
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 16px;
}

.security-text > p {
    color: var(--gray-400);
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.security-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    transition: background 0.3s;
}

.security-item:hover {
    background: rgba(37, 99, 235, 0.06);
}

.security-icon {
    width: 24px;
    height: 24px;
    color: var(--blue-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.security-item strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 4px;
}

.security-item p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

/* Security Layers Visual */
.security-layers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.layer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.layer:hover {
    transform: scale(1.03);
}

.layer span {
    position: relative;
    z-index: 1;
}

.layer-1 {
    width: 100%;
    padding: 16px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.1);
    color: var(--gray-400);
}

.layer-2 {
    width: 88%;
    padding: 16px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--gray-400);
}

.layer-3 {
    width: 76%;
    padding: 16px;
    background: rgba(37, 99, 235, 0.11);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--gray-300);
}

.layer-4 {
    width: 64%;
    padding: 16px;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--gray-300);
}

.layer-5 {
    width: 52%;
    padding: 16px;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(37, 99, 235, 0.32);
    color: var(--white);
}

.layer-6 {
    width: 40%;
    padding: 18px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border: 1px solid var(--blue-light);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
    animation: layerPulse 3s ease-in-out infinite;
}

@keyframes layerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 50px rgba(37, 99, 235, 0.35); }
}

/* ===== CTA Section ===== */
.cta {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    margin-bottom: 48px;
}

.cta-details {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.cta-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cta-detail strong {
    font-size: 15px;
    color: var(--navy);
}

.cta-detail span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand .logo-icon {
    height: 28px;
}

.footer-brand .logo-text {
    font-size: 20px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-legal p {
    color: var(--gray-500);
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 20px;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hero adjustments — prevent overflow on shorter screens */
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-logo-img {
        width: 120px;
    }

    .hero-logo-glow {
        width: 150px;
        height: 150px;
    }

    .hero-actions {
        margin-bottom: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .platform-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Demo window — reduce padding so content isn't cramped */
    .demo-content {
        padding: 20px;
    }

    .demo-sources {
        flex-wrap: wrap;
    }

    .interview-badge {
        flex-wrap: wrap;
    }

    .cta-details {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .cta-detail {
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 90px 16px 48px;
    }

    .hero-logo {
        margin-bottom: 20px;
    }

    .hero-logo-img {
        width: 100px;
    }

    .hero-logo-glow {
        width: 120px;
        height: 120px;
    }

    .hero-badge {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero h1 br {
        content: ' ';
        display: inline;
    }

    .hero h1 br::after {
        content: ' ';
    }

    .section-header h2 br {
        content: ' ';
        display: inline;
    }

    .section-header h2 br::after {
        content: ' ';
    }

    .hero-subtitle {
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 36px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
        padding-top: 28px;
    }

    .stat-number {
        font-size: 28px;
    }

    .platform-pillars {
        grid-template-columns: 1fr;
    }

    .source-grid {
        grid-template-columns: 1fr;
    }

    /* Demo window — tighter spacing */
    .demo-content {
        padding: 16px;
    }

    .demo-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .demo-bubble {
        padding: 12px 14px;
        font-size: 14px;
    }

    .ai-bubble li {
        font-size: 13px;
    }

    /* Quality bars — prevent horizontal overflow */
    .quality-bar {
        min-width: 0;
    }

    .quality-scores {
        padding: 16px;
    }

    .quality-issues {
        padding: 12px 16px;
    }

    /* Interview demo — reduce padding */
    .interview-demo {
        padding: 16px;
    }

    .interview-msg {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* CTA — size button for mobile */
    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }

    /* Feature text — tighter on mobile */
    .feature-text h3 {
        font-size: 22px;
    }

    .feature-row {
        margin-bottom: 64px;
    }

    .pivot {
        padding: 64px 0 48px;
    }

    .demo-section {
        padding: 0 0 64px;
    }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
