/* LogDog.ai Landing Page Styles */
/* Uses same CSS variables as main app for consistency */

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

/* American Typewriter Font */
@font-face {
    font-family: 'American Typewriter';
    src: url('/public/fonts/AmericanTypewriter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Match app variables exactly */
    --primary-color: #e8e8e8;
    --primary-hover: #ffffff;
    --success-color: #00d4a0;
    --bg-color: #19192E;
    --card-bg: #252542;
    --border-color: #3a3a5c;
    --text-color: #e8e8e8;
    --text-muted: #808080;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - narrow, hidden by default, fades in on scroll */
.header {
    background-color: var(--card-bg);
    padding: 0.5rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.header.visible {
    pointer-events: auto;
}

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

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 32px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Nav links (text-only navigation) */
.nav-link {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 0.15s ease;
}

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

/* Buttons - match app exactly */
.btn {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #19192E;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline:hover {
    background: rgba(100, 100, 200, 0.15);
    border-color: var(--accent-color);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Hero Section - centered, full viewport, flat background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-tagline {
    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.hero-subtagline {
    font-family: inherit;
    font-size: 1.1rem;
    color: #a8b4d4;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Hero Flow Graphic */
.hero-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-flow-source {
    border: 1px solid #5a5a8a;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #22224a;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.hero-flow-source-title {
    padding: 8px 20px;
    font-size: 1.02rem;
    font-weight: 400;
    color: #e8e8e8;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #5a5a8a;
    text-align: center;
    white-space: nowrap;
}

.hero-flow-source-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 16px 28px;
    color: #b0b0d8;
}

.hero-flow-arrow {
    flex-shrink: 0;
    color: #7070a8;
}

/* LogDog AI engine (middle element) */
.hero-flow-engine {
    border: 1px solid #5a5a8a;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: #22224a;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.hero-flow-engine-title {
    padding: 8px 20px;
    font-size: 1.02rem;
    font-weight: 400;
    color: #e8e8e8;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #5a5a8a;
    text-align: center;
    white-space: nowrap;
}

.hero-flow-engine-steps {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    flex: 1;
    justify-content: center;
}

.engine-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 18px;
    font-size: 1.01rem;
    color: #a0a0c8;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.engine-step svg {
    flex-shrink: 0;
    color: #b0b0d8;
}

/* Structured output (DDH holes) */
.hero-flow-output {
    border: 1px solid #5a5a8a;
    border-radius: 7px;
    flex-shrink: 0;
    background: #22224a;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 306px;
}

.hero-flow-hole-tabs {
    display: flex;
    border-bottom: 1px solid #5a5a8a;
}

.hole-tab {
    padding: 8px 14px;
    font-size: 1.02rem;
    font-weight: 400;
    color: #6868a0;
    letter-spacing: 0.03em;
    border-right: 1px solid #5a5a8a;
    white-space: nowrap;
}

.hole-tab-ellipsis {
    padding: 8px 10px;
    font-size: 1.02rem;
}

.hole-tab:last-child {
    border-right: none;
}

.hole-tab.active {
    color: #e8e8e8;
    background: #2e2e56;
}

.hero-flow-categories {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 8px 14px;
}

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

.flow-category {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    font-size: 1.01rem;
    color: #a0a0c8;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.flow-category svg {
    flex-shrink: 0;
    color: #b0b0d8;
}

@media (max-width: 600px) {
    .hero-flow {
        display: none;
    }
}

/* Scroll Indicator - animated chevrons */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .chevron {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: 2px 0;
    animation: chevron-bounce 2s infinite;
}

.scroll-indicator .chevron:nth-child(1) {
    animation-delay: 0s;
}

.scroll-indicator .chevron:nth-child(2) {
    animation-delay: 0.15s;
}

.scroll-indicator .chevron:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chevron-bounce {
    0%, 40%, 100% {
        opacity: 0.3;
        transform: rotate(45deg) translateY(0);
    }
    20% {
        opacity: 1;
        transform: rotate(45deg) translateY(4px);
    }
}

/* What It Does Section */
.what-it-does {
    padding: 4rem 0 3rem;
    background-color: var(--card-bg);
}

.section-hero {
    font-size: 2.4rem;
    font-weight: 400;
    color: #e8e8e8;
    text-align: center;
    margin: 0 0 0.8rem;
    letter-spacing: 0.02em;
}

.section-intro {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    text-align: center;
    margin: 0 auto 2.5rem;
    max-width: 800px;
}

.section-intro-sub {
    font-family: inherit;
    font-size: 1.1rem;
    color: #a8b4d4;
}

/* How It Works Steps */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 3rem;
}

.how-it-works-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.4rem 1.3rem;
}

.how-it-works-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
    color: #e8e8e8;
}

.how-it-works-title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.how-it-works-desc {
    font-size: 0.85rem;
    color: #a8b4d4;
    line-height: 1.5;
    margin: 0 0 0.7rem;
}

.how-it-works-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-it-works-list li {
    font-size: 0.8rem;
    color: #8890b0;
    padding: 3px 0 3px 14px;
    position: relative;
}

.how-it-works-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5a5a8a;
    transform: translateY(-50%);
}

/* Pipeline Detail Tabs */
.pipeline-detail {
    max-width: 960px;
    margin: 0 auto 3rem;
}

.pipeline-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pipeline-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #8890b0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.pipeline-tab:hover {
    border-color: #a8b4d4;
    color: #c0c8e0;
}

.pipeline-tab.active {
    color: #e8e8e8;
    border-color: #a8b4d4;
    background: #2e2e56;
}

.pipeline-tab svg {
    flex-shrink: 0;
}

.pipeline-panels-wrap {
    display: grid;
}

.pipeline-panel {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
    display: flex;
    flex-direction: column;
}

.pipeline-panel.active {
    visibility: visible;
    opacity: 1;
}

.pipeline-panel-content {
    display: flex;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    align-items: stretch;
    flex: 1;
}

.pipeline-panel-text {
    flex: 1;
    min-width: 0;
}

.pipeline-panel-illustration {
    flex: 0 0 384px;
    background: #1a1a3a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.2rem;
}

/* Classification preview - page type mockups */
.pipeline-classification-preview {
}

.page-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    flex: 1;
}

.page-type-card {
    background: rgba(90, 90, 138, 0.08);
    border: 1px solid #3a3a5c;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.page-type-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: #a0a0c8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    text-align: center;
}

.page-type-mock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(25, 25, 58, 0.6);
    border-radius: 3px;
    flex: 1;
    justify-content: center;
}

/* Cover page mock - title block + metadata lines */
.mock-title-block {
    height: 8px;
    width: 65%;
    background: #5a5a8a;
    border-radius: 2px;
    margin: 0 auto 4px;
}

.mock-line {
    height: 3px;
    width: 100%;
    background: #3a3a5c;
    border-radius: 1px;
}

.mock-line.w80 { width: 80%; }
.mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; }

.mock-spacer {
    height: 4px;
}

/* Collar mock - form field rows */
.page-mock-collar {
    gap: 3px;
}

.mock-field-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mock-field-key {
    height: 3px;
    width: 35%;
    background: #5a5a8a;
    border-radius: 1px;
    flex-shrink: 0;
}

.mock-field-val {
    height: 3px;
    width: 100%;
    background: #3a3a5c;
    border-radius: 1px;
}

.mock-field-val.w60 { width: 60%; }
.mock-field-val.w80 { width: 80%; }

/* Log & Assay mocks - table rows */
.mock-table-header {
    display: flex;
    gap: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #3a3a5c;
    margin-bottom: 1px;
}

.mock-table-header span {
    height: 3px;
    flex: 1;
    background: #5a5a8a;
    border-radius: 1px;
}

.mock-table-header span.wide {
    flex: 2;
}

.mock-table-row {
    display: flex;
    gap: 4px;
    padding: 2px 0;
}

.mock-table-row span {
    height: 3px;
    flex: 1;
    background: #3a3a5c;
    border-radius: 1px;
}

.mock-table-row span.wide {
    flex: 2;
}

.mock-table-row.alt {
    background: rgba(90, 90, 138, 0.1);
    border-radius: 1px;
}

/* Merging preview */
.pipeline-merging-preview {
}

.merge-illustration {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.merge-section-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: #a0a0c8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.merge-pages {
    display: flex;
    gap: 6px;
}

.merge-page {
    flex: 1;
    background: rgba(25, 25, 58, 0.6);
    border: 1px solid #3a3a5c;
    border-radius: 3px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.merge-page-badge {
    font-size: 0.55rem;
    color: #7070a8;
    text-align: right;
    letter-spacing: 0.03em;
}

.merge-result {
    background: rgba(25, 25, 58, 0.6);
    border: 1px solid #3a3a5c;
    border-radius: 3px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.merge-provenance {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 4px;
}

.prov-tag {
    font-size: 0.52rem;
    color: #7070a8;
    background: rgba(90, 90, 138, 0.15);
    border: 1px solid #3a3a5c;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.03em;
}

.enrichment-example-divider {
    height: 1px;
    background: #3a3a5c;
    margin: 12px 0;
}

/* Shared preview card styles */
.preview-section-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #a0a0c8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 0;
}

.pipeline-db-section .preview-section-label {
    margin-top: 10px;
}

.pipeline-db-section:first-child .preview-section-label {
    margin-top: 0;
}

.preview-arrow {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.pipeline-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.pipeline-preview-table td,
.pipeline-preview-table th {
    padding: 4px 8px;
}

.pipeline-preview-table th {
    text-align: left;
    color: #8890b0;
    font-weight: 500;
    border-bottom: 1px solid #3a3a5c;
    font-size: 0.68rem;
}

.pipeline-preview-table .preview-table-label {
    color: #8890b0;
    white-space: nowrap;
    width: 40%;
}

.pipeline-preview-table .preview-table-value {
    color: #d0d0e8;
}

.pipeline-preview-table tbody tr:nth-child(odd) {
    background: rgba(90, 90, 138, 0.1);
}

.pipeline-preview-table tbody tr:nth-child(even) {
    background: rgba(90, 90, 138, 0.04);
}

.pipeline-preview-table-cols td {
    color: #a0a8c8;
}

.pipeline-panel-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: #e8e8e8;
    margin: 0 0 0.7rem;
    letter-spacing: 0.02em;
}

.pipeline-panel-desc {
    font-size: 0.9rem;
    color: #a8b4d4;
    line-height: 1.6;
    margin: 0 0 1.2rem;
}

.pipeline-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pipeline-panel-list li {
    display: flex;
    flex-direction: column;
    padding: 5px 0 5px 14px;
    position: relative;
}

.pipeline-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5a5a8a;
}

.pipeline-panel-list li strong {
    font-size: 0.88rem;
    font-weight: 500;
    color: #d0d0e8;
}

.pipeline-panel-list li span {
    font-size: 0.8rem;
    color: #8890b0;
    margin-top: 1px;
}

/* Enrichment panel */
.pipeline-enrichment-section {
    margin-bottom: 1rem;
}

.pipeline-sub-heading {
    font-size: 0.85rem;
    font-weight: 500;
    color: #a0a0c8;
    margin: 0 0 0.5rem;
    letter-spacing: 0.03em;
}

.pipeline-example-input {
    font-size: 0.75rem;
    color: #a0a8c8;
    font-style: italic;
    padding: 10px 12px;
    background: rgba(90, 90, 138, 0.12);
    border: 1px solid #3a3a5c;
    border-radius: 5px;
    margin-bottom: 0;
    line-height: 1.5;
}

.pipeline-example-output {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pipeline-example-field {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    padding: 3px 0;
}

.pipeline-field-label {
    color: #8890b0;
    min-width: 100px;
}

.pipeline-field-value {
    color: #d0d0e8;
    font-weight: 500;
}

/* Structuring panel - DB preview */
.pipeline-db-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.5rem;
}

.pipeline-db-section {
    padding: 0;
}

.pipeline-db-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #a0a0c8;
    letter-spacing: 0.05em;
    font-style: italic;
    margin-bottom: 4px;
}

.pipeline-db-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.78rem;
    color: #8890b0;
}

.pipeline-db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.pipeline-db-table th {
    text-align: left;
    color: #a0a0c8;
    font-weight: 500;
    padding: 4px 10px 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.pipeline-db-table td {
    color: #8890b0;
    padding: 3px 10px 3px 0;
}

/* Brand name styling with American Typewriter font */
.brand-name {
    font-family: 'American Typewriter', 'Courier New', monospace;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Demo Overlay Container - Full width with layered content */
.demo-overlay-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 500px;
}

/* View Toggle Button - now in tab bar */
.demo-view-toggle {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    font-family: inherit;
}

.demo-view-toggle .toggle-label {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.demo-view-toggle .toggle-label:first-child {
    border-right: 1px solid var(--border-color);
}

/* Source view active (default) */
.demo-view-toggle[data-view="source"] .toggle-label:first-child {
    background: rgba(168, 180, 212, 0.2);
    color: #a8b4d4;
}

/* Data view active */
.demo-view-toggle[data-view="data"] .toggle-label:last-child {
    background: rgba(168, 180, 212, 0.2);
    color: #a8b4d4;
}

.demo-view-toggle:hover {
    border-color: #a8b4d4;
}

/* Scroll-zoom image layer */
.demo-image-layer {
    position: relative;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.demo-scroll-view {
    overflow: auto;
    cursor: grab;
}

.demo-scroll-view:active {
    cursor: grabbing;
}

/* Custom scrollbar styling */
.demo-scroll-view::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.demo-scroll-view::-webkit-scrollbar-track {
    background: rgba(25, 25, 46, 0.5);
    border-radius: 4px;
}

.demo-scroll-view::-webkit-scrollbar-thumb {
    background: rgba(168, 180, 212, 0.4);
    border-radius: 4px;
}

.demo-scroll-view::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 180, 212, 0.6);
}

.demo-scroll-view::-webkit-scrollbar-corner {
    background: rgba(25, 25, 46, 0.5);
}

.demo-image-layer .demo-image {
    display: block;
    transform-origin: 0 0;
}

.demo-scroll-view .demo-image {
    max-width: none;
    max-height: none;
    object-fit: initial;
}

/* Data Overlay Layer */
.demo-data-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 25, 46, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

/* When showing data view */
.demo-overlay-container[data-view="data"] .demo-data-layer {
    opacity: 1;
    pointer-events: auto;
}

.demo-overlay-container[data-view="data"] > .demo-image-layer {
    pointer-events: none;
}

/* Legacy styles - kept for reference but not actively used */
.transform-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.demo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.demo-label {
    font-family: inherit;
    font-size: 1.65rem;
    font-weight: 500;
    color: #a8b4d4;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.demo-image-placeholder {
    width: 280px;
    height: 200px;
    background-color: var(--bg-color);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.demo-image-box {
    width: 480px;
    height: 345px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.demo-image-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.demo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Zoom level indicator */
.demo-zoom-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(25, 25, 46, 0.8);
    color: #a8b4d4;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-scroll-view:hover .demo-zoom-indicator {
    opacity: 1;
}


/* Example Tabs */
.example-tabs-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 1rem;
}

.example-tabs-header {
    font-size: 1.3rem;
    font-weight: 400;
    color: #a0a0c8;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.example-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.example-tabs {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0;
}

.example-tabs-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.btn-explore-results {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    white-space: nowrap;
}

.example-tab {
    font-family: inherit;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 6px 6px 0 0;
}

.example-tab:hover {
    color: var(--text-color);
    background: rgba(168, 180, 212, 0.1);
}

.example-tab.active {
    color: #a8b4d4;
    background: var(--bg-color);
}

.example-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #a8b4d4;
}

.example-panel {
    display: none;
}

.example-panel.active {
    display: block;
}

.demo-arrow {
    font-size: 2rem;
    color: #a8b4d4;
}

/* Second demo: Table example */
.table-demo {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.demo-item-table {
    flex: 1;
    max-width: 520px;
}

.demo-table-box {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    min-width: 480px;
    height: 345px;
}

.demo-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
}

.demo-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.demo-table th,
.demo-table td {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.demo-table th {
    background: var(--card-bg);
    font-weight: 600;
    color: #a8b4d4;
    position: sticky;
    top: 0;
    z-index: 1;
}

.demo-table td {
    color: var(--text-color);
}

.demo-table td .blank-cell {
    color: var(--text-muted);
    font-style: italic;
}

.demo-table tbody tr:hover {
    background: rgba(168, 180, 212, 0.1);
}

.demo-table td:nth-child(4) {
    white-space: normal;
    min-width: 200px;
    max-width: 400px;
}

.demo-table-meta {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.value-prop {
    font-family: inherit;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.value-prop-sub {
    font-family: inherit;
    text-align: center;
    font-size: 0.95rem;
    color: #a8b4d4;
    max-width: 100%;
    margin: 0.75rem auto 0;
    line-height: 1.6;
    white-space: nowrap;
}

/* Solutions Section */
.solutions-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.section-title {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-family: inherit;
    font-size: 1.1rem;
    color: #a8b4d4;
    text-align: center;
    margin: 0 0 3rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
    border-color: #a8b4d4;
    transform: translateY(-2px);
}

.solution-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 180, 212, 0.1);
    border-radius: 12px;
    color: #a8b4d4;
}

.solution-title {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem;
}

.solution-desc {
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.pricing-card:hover {
    border-color: #a8b4d4;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card:active {
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--success-color);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: #19192E;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.enterprise {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(168, 180, 212, 0.1) 100%);
}

.pricing-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-tier {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem;
}

.pricing-pages {
    font-family: inherit;
    font-size: 0.85rem;
    color: #a8b4d4;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    display: block;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.price-per-page {
    display: block;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 0.75rem;
}

.pricing-note {
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 2rem auto 0;
    max-width: 600px;
}

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

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

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

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

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: var(--success-color);
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    font-family: inherit;
    font-size: 0.9rem;
    color: #a8b4d4;
    line-height: 1.6;
    margin: 0;
    padding: 0 0 1rem 0;
}

.faq-answer a {
    color: var(--success-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    text-align: center;
}

.contact-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.contact-title {
    font-family: inherit;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem;
}

.contact-intro {
    font-family: inherit;
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0 auto 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.contact-intro-sub {
    font-size: 1rem;
    color: #a8b4d4;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-form label .required {
    color: #ff6b6b;
}

.contact-form label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #a8b4d4;
    box-shadow: 0 0 0 3px rgba(168, 180, 212, 0.15);
}

.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

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

/* Demo request checkbox */
.demo-request-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--success-color);
}

.checkbox-text {
    color: var(--text-color);
    font-weight: 500;
}

.demo-hint {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 26px;
    margin-top: 0.25rem;
}

.captcha-group {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    background: rgba(0, 212, 160, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-status.error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.contact-direct {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-direct p {
    font-size: 1rem;
    color: var(--text-muted);
}

.contact-email-link {
    color: #a8b4d4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.contact-email-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.8;
}

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

/* Responsive */
@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .section-hero {
        font-size: 1.8rem;
    }

    .pipeline-tabs {
        gap: 6px;
    }

    .pipeline-tab {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .pipeline-panel-content {
        flex-direction: column;
        padding: 1.2rem;
    }

    .pipeline-panel-illustration {
        flex: 0 0 auto;
        min-height: 160px;
    }

    .hero-logo {
        max-width: 220px;
    }

    .hero-tagline {
        font-size: 1.4rem;
    }

    .hero-subtagline {
        font-size: 1rem;
    }

    .transform-demo {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

    .demo-image-placeholder {
        width: 240px;
        height: 160px;
    }

    .demo-image-box {
        width: 380px;
        height: 272px;
        flex-shrink: 1;
    }

    .demo-label {
        font-size: 1.3rem;
    }

    .value-prop {
        font-size: 1rem;
    }

    .demo-table-box {
        min-width: 100%;
        max-width: 380px;
    }

    .demo-item-table {
        max-width: 100%;
    }

    .contact-title {
        font-size: 1.6rem;
    }

    .contact-intro {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 0 1rem;
    }

    /* Overlay container responsive */
    .demo-overlay-container {
        max-width: 100%;
        height: 350px;
    }

    .example-tabs-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .example-tabs-controls {
        align-self: flex-end;
    }

    .demo-view-toggle .toggle-label {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .btn-large {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .demo-image-placeholder {
        width: 200px;
        height: 140px;
    }

    .demo-image-box {
        width: 300px;
        height: 215px;
    }

    .demo-label {
        font-size: 1.1rem;
    }

    .demo-overlay-container {
        height: 280px;
    }
}
