:root {
    --bg-dark: #050510;
    --bg-card: #0a0a16;
    --bg-card-hover: #101022;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-dark-primary: #1a1a1a;
    --text-dark-secondary: #4a4a4a;

    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-width: 1200px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* v3 Navbar + Footer (from qa-ui-design-lab-v3) */
.v3-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 80px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v3-navbar-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v3-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.v3-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.v3-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.v3-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v3-logo-svg {
    width: 100%;
    height: 100%;
}

.v3-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.v3-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.v3-brand-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 4px;
}

.v3-nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(148, 163, 184, 0.95);
    transition: color 0.2s ease;
}

.v3-nav-link:hover {
    color: #ffffff;
}

main {
    padding-top: 80px;
}

.v3-footer {
    background: #ffffff;
    color: #0f172a;
    padding: 0 32px 64px;
}

.v3-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.v3-footer-divider {
    width: 100%;
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 96px;
}

.v3-footer-top {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
}

.v3-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.v3-footer-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.v3-footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v3-footer-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin-top: 6px;
}

.v3-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.v3-footer-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.v3-footer-email {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    color: #0f172a;
}

.v3-footer-email:hover {
    color: #4f46e5;
}

.v3-footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    text-align: center;
}

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

.v3-footer-link {
    color: rgba(148, 163, 184, 0.95);
    text-decoration: none;
}

.v3-footer-link:hover {
    color: #4f46e5;
}

@media (min-width: 768px) {
    .v3-footer-top {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .v3-footer-brand {
        text-align: left;
    }
    .v3-footer-contact {
        align-items: flex-end;
        text-align: right;
    }
    .v3-footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .v3-navbar-inner {
        padding: 0 18px;
    }
    .v3-left {
        gap: 18px;
    }
    .v3-right {
        gap: 18px;
    }
    .v3-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
    .v3-footer-email {
        font-size: 1.5rem;
    }
}

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

/* Header */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-mono);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .company {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text .division {
    font-size: 0.7em;
    color: var(--accent-blue);
    letter-spacing: 0.1em;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Typography Utils */
.highlight-purple {
    color: var(--accent-purple);
}

.highlight-blue {
    color: var(--accent-blue);
}

.highlight-dark {
    color: #d1d5db;
    background: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.code-inline {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0; /* Reduced from 80px for tighter layout */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.hero-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-blue);
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 400px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%);
}

.hero-image-container {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════════
   QUESTION LIFECYCLE SECTION (Replaces Question Generation Machine)
   ═══════════════════════════════════════════════════════════════ */

/* CSS Variables for SVG Animations */
:root {
    --ql-fg: #0f172a;      /* slate-900 */
    --ql-muted: #cbd5e1;   /* slate-300 */
    --ql-accent: #6366f1;  /* indigo-500 */
    --ql-bg: #ffffff;      /* white */
}

.lifecycle-section {
    background-color: #f8fafc;
    padding: 100px 0;
    border-top: 1px solid #e5e7eb;
}

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

.lifecycle-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.lifecycle-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.lifecycle-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.lifecycle-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.lifecycle-card-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f1f5f9;
    background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.lifecycle-card-visual svg {
    width: 100%;
    height: 100%;
    max-width: 320px;
    max-height: 180px;
    transition: transform 0.5s ease-out, opacity 0.3s;
    opacity: 0.95;
}

.lifecycle-card:hover .lifecycle-card-visual svg {
    transform: scale(1.05);
    opacity: 1;
}

.lifecycle-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lifecycle-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.lifecycle-card-content p {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* SVG Animation Classes */
.ql-stroke-fg { stroke: var(--ql-fg); }
.ql-fill-fg { fill: var(--ql-fg); }
.ql-stroke-muted { stroke: var(--ql-muted); }
.ql-stroke-accent { stroke: var(--ql-accent); }
.ql-fill-accent { fill: var(--ql-accent); }
.ql-fill-bg { fill: var(--ql-bg); }

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

    .lifecycle-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .lifecycle-section {
        padding: 80px 0;
    }

    .lifecycle-header h2 {
        font-size: 2rem;
    }

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

    .lifecycle-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lifecycle-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOW TO USE SECTION
   ═══════════════════════════════════════════════════════════════ */

.how-to-use-section {
    background-color: #f8fafc;
    padding: 100px 0;
}

.how-to-use-header {
    text-align: center;
    margin-bottom: 64px;
}

.how-to-use-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.how-to-use-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.how-to-use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-to-use-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.how-to-use-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.how-to-use-card-visual {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 2px solid #e2e8f0;
    overflow: hidden;
}

.how-to-use-card-visual svg {
    width: 100%;
    height: 100%;
}

.how-to-use-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.how-to-use-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.how-to-use-card-content p {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* How To Use Section Responsive */
@media (max-width: 968px) {
    .how-to-use-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-to-use-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .how-to-use-section {
        padding: 80px 0;
    }

    .how-to-use-header h2 {
        font-size: 2rem;
    }

    .how-to-use-header p {
        font-size: 1rem;
    }

    .how-to-use-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .how-to-use-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════ */

/* Question Generation Machine Section (Legacy - kept for backup page) */
.question-generation-section {
    background-color: #f8fafc;
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
}

.question-generation-section .section-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.workflow-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-step .step-title {
    font-size: 1.35rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    min-height: 50px;
}

.terminal-window {
    background: #1a1a1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 340px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.terminal-window .window-header {
    background: #2a2a2f;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1f;
    position: relative;
}

.terminal-window .window-controls {
    display: flex;
    gap: 8px;
}

.terminal-window .window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-window .window-controls .control.red {
    background: #ff5f57;
}

.terminal-window .window-controls .control.yellow {
    background: #ffbd2e;
}

.terminal-window .window-controls .control.green {
    background: #28ca42;
}

.terminal-window .window-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal-window .window-content {
    padding: 16px 16px 64px;
    min-height: 150px;
    background: #0d0d12;
    overflow: auto;
    flex: 1;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.terminal-window .window-content::-webkit-scrollbar {
    display: none;
}

.terminal-window .window-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to top, rgba(13, 13, 18, 1), rgba(13, 13, 18, 0));
    pointer-events: none;
}

.terminal-window .window-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-window .window-content code {
    color: #e0e0e0;
}

.terminal-window .window-content .comment {
    color: #6a9955;
}

.terminal-window .window-content .command {
    color: #4ec9b0;
    font-weight: 500;
}

.terminal-window .window-content .prompt {
    color: #9cdcfe;
}

.terminal-window .window-content .input {
    color: #ce9178;
}

.terminal-window .window-content .value {
    color: #dcdcaa;
    font-weight: 500;
}

.terminal-window .window-content .success {
    color: #4ec9b0;
    font-weight: bold;
}

.terminal-window .window-content .arrow {
    color: #569cd6;
}

.terminal-window .window-content .info {
    color: #9cdcfe;
    font-style: italic;
}

.terminal-window .window-content .step {
    color: #808080;
    font-weight: normal;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 968px) {
    .three-column-workflow {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-window {
        height: 320px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .question-generation-section .section-title {
        font-size: 2rem;
    }

    .three-column-workflow {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .workflow-step .step-title {
        min-height: auto;
    }

    .terminal-window {
        height: 300px;
    }
}


/* !!! Q&A SECTION (Light Theme) !!! */
.qa-section.light-bg {
    background-color: #f8fafc;
    color: var(--text-dark-primary);
    padding: 80px 0;
}

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.qa-item {
    display: flex;
    flex-direction: column;
}

.qa-item h3 {
    font-size: 1.75rem;
    /* ~28px */
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
    color: #000;
}

.qa-item h3 .highlight-dark {
    color: #4b5563;
    background: #f3f4f6;
}

.answer-badge {
    font-size: 0.7rem;
    color: #9ca3af;
    /* Light grey text */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 12px;
}

.qa-item p {
    color: var(--text-dark-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.qa-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 24px;
}

/* Q&A Buttons */
.btn-ghost {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: #d1d5db;
    color: #374151;
}

/* Narrative Design Q&A */
.narrative-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.narrative-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    border-bottom: none;
}

/* Question Side */
.narrative-question {
    width: 100%;
}

.narrative-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #4f46e5;
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.narrative-question-wrapper {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #4f46e5;
}

.narrative-quote-mark {
    position: absolute;
    top: -32px;
    left: -16px;
    font-size: 80px;
    line-height: 1;
    color: rgba(191, 219, 254, 0.6);
    font-family: Georgia, serif;
    user-select: none;
    pointer-events: none;
    font-weight: 700;
}

.narrative-question-text {
    font-size: 1.5rem;
    font-family: Georgia, serif;
    color: #0f172a;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    font-style: italic;
    margin: 0;
}

.narrative-divider {
    margin-top: 20px;
}

.narrative-divider-bar {
    width: 48px;
    height: 3px;
    background: #4f46e5;
}

/* Answer Side */
.narrative-answer {
    width: 100%;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.5s;
}

.narrative-answer:hover {
    box-shadow: 0 24px 40px -10px rgba(99, 102, 241, 0.15);
}

.narrative-answer-content {
    margin-bottom: 24px;
}

.narrative-answer-content p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.narrative-answer-content ul,
.narrative-answer-content ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: #475569;
    line-height: 1.6;
}

.narrative-answer-content li {
    margin-bottom: 8px;
}

.narrative-answer-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.narrative-answer-content p:last-child {
    margin-bottom: 0;
}

.narrative-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.narrative-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.narrative-tag {
    padding: 4px 10px;
    background: #f8fafc;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.narrative-tag:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
}

.narrative-button-wrapper {
    display: flex;
    justify-content: flex-end;
}

.narrative-button {
    width: 56px;
    height: 56px;
    background: #4f46e5;
    color: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.narrative-button:hover {
    background: #0f172a;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.narrative-arrow {
    width: 28px;
    height: 28px;
}

/* Single-item narrative (Product Vision) */
.narrative-container-single {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.narrative-container-single .narrative-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.narrative-container-single .narrative-question-text {
    font-size: 2rem;
}

/* Tablet: single column */
@media (max-width: 960px) {
    .narrative-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .narrative-container-single .narrative-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .narrative-question-text {
        font-size: 1.25rem;
    }

    .narrative-quote-mark {
        font-size: 60px;
        top: -24px;
        left: -12px;
    }

    .narrative-answer {
        padding: 24px;
    }

    .narrative-answer-content p {
        font-size: 0.875rem;
    }

    .narrative-button {
        width: 48px;
        height: 48px;
    }

    .narrative-arrow {
        width: 24px;
        height: 24px;
    }

    .narrative-tag {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}

/* Dark Theme Variants for Narrative Design */
.narrative-container-dark {
    grid-template-columns: 1fr;
}

.narrative-item-dark {
    flex-direction: row;
    align-items: flex-start;
    gap: 72px;
}

.narrative-item-dark .narrative-question {
    flex: 1;
    min-width: 0;
}

.narrative-item-dark .narrative-answer-dark {
    width: min(520px, 42%);
}

.narrative-item-dark .narrative-answer-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.narrative-item-dark .narrative-question-text-dark {
    font-size: 2.4rem;
    line-height: 1.08;
}

.narrative-item-dark .narrative-quote-mark-dark {
    font-size: 140px;
    top: -54px;
    left: -26px;
}

.narrative-category-badge-dark {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.narrative-quote-mark-dark {
    color: rgba(79, 70, 229, 0.15);
}

.narrative-question-text-dark {
    color: var(--text-primary);
}

.narrative-divider-bar-dark {
    background: #4f46e5;
}

.narrative-answer-dark {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
}

.narrative-answer-dark:hover {
    box-shadow: 0 24px 40px -10px rgba(99, 102, 241, 0.2);
}

.narrative-answer-dark .narrative-answer-content p {
    color: var(--text-secondary);
}

.narrative-answer-dark .narrative-answer-content ul,
.narrative-answer-dark .narrative-answer-content ol {
    color: var(--text-secondary);
}

.narrative-answer-dark .narrative-answer-content code {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.narrative-tag-dark {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

.narrative-tag-dark:hover {
    color: #818cf8;
    border-color: rgba(79, 70, 229, 0.3);
}

.narrative-button-dark {
    background: #4f46e5;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.narrative-button-dark:hover {
    background: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

@media (max-width: 960px) {
    .narrative-item-dark {
        flex-direction: column;
        gap: 24px;
    }

    .narrative-item-dark .narrative-answer-dark {
        width: 100%;
    }

    .narrative-item-dark .narrative-question-text-dark {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .narrative-item-dark .narrative-quote-mark-dark {
        font-size: 80px;
        top: -32px;
        left: -16px;
    }
}

/* Demo Section (Now visually separated) */
.demo-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #080814);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* Align vertically center */
}

/* Demo Visual (replacing code window) */
.demo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.demo-visual .demo-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.comment {
    color: #5c6370;
}

.demo-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.demo-text .subtitle {
    margin-bottom: 40px;
    color: #e5e7eb;
}

.demo-text .subtitle.italic {
    font-style: italic;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.description-large {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 40px;
    line-height: 1.5;
}

.demo-text h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
}

.description-small {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 24px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-primary.small {
    font-size: 0.75rem;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn.large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 32px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

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

/* CTA Section */
.cta-section {
    padding: 56px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05), transparent 70%);
}

.cta-container h2 {
    font-size: 2.75rem;
    margin: 0 0 12px 0;
}

.cta-container p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 22px auto;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}


/* ═══════════════════════════════════════════════════════════════
   USE CASES CAROUSEL SECTION
   ═══════════════════════════════════════════════════════════════ */

.use-cases-section {
    background: linear-gradient(180deg, #080814 0%, #0c0c1a 50%, #080814 100%);
    padding: 4rem 0 5rem; /* Reduced to match hero section proportions */
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture overlay */
.use-cases-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Glow effect */
.use-cases-section::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.use-cases-header {
    text-align: center;
    margin-bottom: 48px; /* Tighter spacing */
}

.use-cases-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 20px;
}

.use-cases-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.03em;
}

.use-cases-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carousel Container */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 4px;
}

/* Use Case Cards */
.use-case-card {
    background: linear-gradient(145deg, rgba(15, 15, 30, 0.9), rgba(10, 10, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.use-case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    -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;
    pointer-events: none;
}

/* Color-coded top accent line */
.use-case-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.use-case-card[data-color="blue"]::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.use-case-card[data-color="purple"]::after { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.use-case-card[data-color="cyan"]::after { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.use-case-card[data-color="emerald"]::after { background: linear-gradient(90deg, #10b981, #34d399); }
.use-case-card[data-color="amber"]::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.use-case-card[data-color="rose"]::after { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 60px -20px rgba(79, 70, 229, 0.3);
}

.use-case-card:hover::after {
    opacity: 1;
}

/* Anchor card styling */
a.use-case-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Icon */
.use-case-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.use-case-card[data-color="blue"] .use-case-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.use-case-card[data-color="purple"] .use-case-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}
.use-case-card[data-color="cyan"] .use-case-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}
.use-case-card[data-color="emerald"] .use-case-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.use-case-card[data-color="amber"] .use-case-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.use-case-card[data-color="rose"] .use-case-icon {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
}

.use-case-icon svg {
    width: 26px;
    height: 26px;
}

/* Card Content */
.use-case-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.use-case-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.use-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.use-case-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s;
}

.use-case-card:hover .use-case-tag {
    color: #818cf8;
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.1);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.1);
    color: #fff;
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
    background: #4f46e5;
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}

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

    .use-case-card:nth-child(3) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }

    .use-cases-title {
        font-size: 2.5rem;
    }
}

/* Responsive: Mobile - 1 column with horizontal scroll */
@media (max-width: 768px) {
    .use-cases-section {
        padding: 80px 0 100px;
    }

    .use-cases-title {
        font-size: 2rem;
    }

    .use-cases-subtitle {
        font-size: 1rem;
    }

    .carousel-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .use-case-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .use-case-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .carousel-nav {
        gap: 16px;
        margin-top: 36px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

/* ═══════════════════════════════════════════════════════════════ */

/* Responsive */
@media (max-width: 960px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-container,
    .demo-container,
    .qa-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .qa-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cta-container h2 {
        font-size: 2.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
