/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    :root {
    /* Logo-anchored ramp: logo azure (#1D5399) → logo teal (#50B7B6) */
    --brand: #1D5399;          /* exact logo blue — primary anchor */
    --primary: #1D5399;        /* buttons + links match the logo blue (AAA 7.6:1 on white) */
    --primary-dark: #164177;   /* link hover / icon accents */
    --primary-light: #E7F0FA;  /* tint derived from logo blue */
    --accent: #2E8FA8;         /* blue-teal — bridges logo blue toward the teal feather */
    --ink: #123A6B;            /* deep azure navy for hero statement + dark headings */
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --bg: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-muted: #F1F5F9;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --warning: #FBBF24;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--primary); }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}
.logo-icon { height: 50px; border-radius: 6px; object-fit: contain; }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(58, 77, 199, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(29, 79, 151, 0.06), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hero product logo */
.hero-product-logo {
    margin-bottom: 20px;
}
.product-logo {
    height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== HERO VISUAL (APP SCREENSHOT) ===== */
.hero-visual {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.app-screenshot-wrapper {
    position: relative;
}

.app-screenshot {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.screenshot-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.toolbar-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #EF4444; }
.dot.yellow { background: #FBBF24; }
.dot.green { background: #22C55E; }

.toolbar-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.toolbar-actions { display: flex; gap: 4px; }
.toolbar-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
}
.toolbar-btn.active {
    background: var(--primary);
    color: white;
}

.screenshot-content {
    display: grid;
    grid-template-columns: 140px 1fr 160px;
    min-height: 380px;
}

.screenshot-sidebar {
    padding: 12px;
    border-right: 1px solid var(--border);
    background: var(--bg-subtle);
}

.sidebar-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 6px;
    margin-bottom: 2px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.15s;
}
.widget-item:hover { background: var(--bg-muted); }
.widget-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}
.wi-icon { font-size: 13px; }

.screenshot-canvas {
    padding: 12px 16px;
    background: white;
}

.canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.canvas-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}
.canvas-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 4px;
    font-weight: 500;
}

.canvas-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.canvas-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.canvas-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 600;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}
.link-badge {
    font-size: 9px;
    color: var(--primary);
    font-weight: 500;
}

.canvas-section .section-body {
    padding: 8px 10px;
}

.canvas-section.s1 { border-color: #C7D2FE; }
.canvas-section.s1 .section-header { background: #EEF2FF; color: var(--primary-dark); }
.canvas-section.s2 { border-color: #BBF7D0; }
.canvas-section.s2 .section-header { background: #F0FDF4; color: #16A34A; }
.canvas-section.s3 { border-color: #FDE68A; }
.canvas-section.s3 .section-header { background: #FFFBEB; color: #D97706; }

/* Simulation placeholder */
.sim-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
}
.sim-beaker {
    width: 40px;
    height: 50px;
    border: 2px solid #818CF8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    position: relative;
    overflow: hidden;
}
.sim-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #818CF8, #A78BFA);
    opacity: 0.4;
    animation: liquidBubble 3s ease-in-out infinite;
}
@keyframes liquidBubble {
    0%, 100% { height: 60%; }
    50% { height: 65%; }
}

.sim-controls { flex: 1; }
.sim-slider {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sim-slider span {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
}
.sim-slider-track {
    flex: 1;
    height: 4px;
    background: var(--bg-muted);
    border-radius: 2px;
    overflow: hidden;
}
.sim-slider-fill {
    width: 65%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
}
.sim-slider-fill2 {
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

/* Mock questions */
.mock-question {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.mock-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mock-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-secondary);
    padding: 3px 0;
}
.mock-option .checkbox {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}
.mock-option.checked .checkbox {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.mock-textarea {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    padding: 6px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

/* Properties panel */
.screenshot-properties {
    padding: 12px;
    border-left: 1px solid var(--border);
    background: var(--bg-subtle);
}

.prop-group {
    margin-bottom: 12px;
}
.prop-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.prop-dep {
    font-size: 10px;
    color: var(--text-secondary);
    padding: 2px 0;
    font-family: 'JetBrains Mono', monospace;
}
.prop-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}
.prop-toggle {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.prop-toggle.on {
    background: #DCFCE7;
    color: #16A34A;
}

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}
.card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== TRUSTED BY ===== */
.trusted-by {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.trusted-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.2s;
}
.trusted-logo:hover { opacity: 1; }

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
    padding: 96px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: white;
}
.feature-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PLATFORM ===== */
.platform {
    padding: 96px 0;
    background: var(--bg-subtle);
}

.platform-tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 48px;
    background: var(--bg-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-family: inherit;
}
.tab-btn.active {
    background: white;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) { color: var(--text); }

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.platform-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.platform-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.platform-info > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.platform-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.platform-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Screenshot frames */
.screenshot-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-lg);
}

.screenshot-frame-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.screenshot-placeholder {
    min-height: 320px;
    background: white;
}

/* Builder screenshot */
.builder-ss {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.ss-sidebar {
    padding: 10px;
    border-right: 1px solid var(--border-light);
    background: var(--bg-subtle);
}

.ss-wi {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 4px;
    margin-bottom: 3px;
    cursor: default;
}
.ss-wi.dragging {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    border: 1px dashed var(--primary);
}

.ss-canvas {
    padding: 12px;
}

.ss-section-block {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}
.ss-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.ss-content-block {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ss-table-mock {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.ss-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 4px 8px;
    font-size: 10px;
    border-bottom: 1px solid var(--border-light);
}
.ss-table-row:last-child { border-bottom: none; }
.ss-table-row.header {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-secondary);
}

.ss-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}
.ss-drop-indicator {
    font-size: 11px;
    color: var(--text-muted);
}

/* Scoring screenshot */
.scoring-ss {
    padding: 16px;
}

.scoring-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 0;
}

.scoring-node {
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}
.scoring-node-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}
.scoring-node-detail {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.scoring-node-pts {
    font-size: 12px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.node-a { background: #EEF2FF; color: var(--primary-dark); border: 1px solid #C7D2FE; }
.node-a .scoring-node-pts { color: var(--primary); }
.node-b { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.node-b .scoring-node-pts { color: #16A34A; }
.node-c { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.node-c .scoring-node-pts { color: #D97706; }

.scoring-arrow {
    font-size: 18px;
    color: var(--text-muted);
}

.scoring-summary {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-light);
}
.scoring-sim-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.scoring-sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 11px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.score-val {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}
.score-val.correct { color: #16A34A; }
.score-val.partial { color: #D97706; }

.scoring-sim-total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

/* Preview screenshot */
.preview-ss {
    padding: 0;
}
.preview-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-light);
}
.preview-item-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}
.preview-device-btns {
    display: flex;
    gap: 4px;
}
.device-btn {
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    opacity: 0.5;
}
.device-btn.active {
    opacity: 1;
    background: white;
}

.preview-item-body {
    padding: 16px;
}
.preview-section {
    margin-bottom: 14px;
}
.preview-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}
.preview-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preview-sim-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px;
}
.mini-sim {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mini-beaker {
    width: 32px;
    height: 40px;
    border: 2px solid #818CF8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    position: relative;
    overflow: hidden;
}
.mini-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(129, 140, 248, 0.3);
}
.mini-bubbles {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 6px;
    color: #818CF8;
    line-height: 1;
    opacity: 0.6;
}
.mini-slider-area {
    flex: 1;
}
.mini-slider-area span {
    font-size: 9px;
    color: var(--text-muted);
}
.mini-range {
    width: 100%;
    height: 3px;
    margin-bottom: 2px;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Simulation screenshot */
.sim-ss {
    padding: 14px;
}
.sim-library-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.sim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.sim-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}
.sim-card:hover, .sim-card.active-card {
    border-color: var(--primary);
    background: var(--primary-light);
}
.sim-card-icon { font-size: 24px; margin-bottom: 4px; }
.sim-card-title { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.sim-card-desc { font-size: 9px; color: var(--text-muted); }

/* Generative workflow mock-up */
.gen-workflow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.gen-prompt-area {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}
.gen-prompt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.gen-prompt-input {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 10px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 44px;
    position: relative;
}
.gen-prompt-text {
    color: var(--text-secondary);
}
.gen-cursor {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--primary);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}
.gen-prompt-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.gen-subject-tag {
    font-size: 9px;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
}
.gen-subject-tag.sci { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.gen-subject-tag.math { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }
.gen-subject-tag.ela { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.gen-subject-tag.data { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.gen-btn {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--primary);
    color: white;
    margin-left: auto;
    cursor: pointer;
}
.gen-output-area {
    flex: 1;
}
.gen-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #16A34A;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 0 2px;
}
.gen-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.gen-recent {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
}
.gen-recent-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.gen-recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.gen-recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color 0.2s;
}
.gen-recent-item:hover {
    border-color: var(--primary);
}
.gen-recent-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.gen-recent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gen-recent-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gen-recent-subject {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.gen-recent-subject.sci { color: #1D4ED8; }
.gen-recent-subject.math { color: #6D28D9; }
.gen-recent-subject.ela { color: #C2410C; }
.gen-recent-subject.data { color: #15803D; }

/* ===== SAMPLES ===== */
.samples {
    padding: 96px 0;
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sample-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: all 0.3s;
}
.sample-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sample-preview {
    position: relative;
    height: 180px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sample-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}
.sample-tag.science { background: #DCFCE7; color: #166534; }
.sample-tag.math { background: #DBEAFE; color: #1E40AF; }
.sample-tag.ela { background: #FDE68A; color: #92400E; }

.sample-visual {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sample visual - beaker */
.sv-sim { text-align: center; }
.sv-beaker {
    width: 48px;
    height: 60px;
    border: 3px solid #818CF8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
}
.sv-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #818CF8, #A78BFA);
    opacity: 0.3;
}
.sv-arrows {
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: 4px;
}

/* Sample visual - graph */
.sv-graph {
    width: 80px;
    height: 80px;
    position: relative;
}
.sv-axis-y {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
}
.sv-axis-x {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-muted);
}
.sv-line {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 60px;
    height: 2px;
    background: var(--primary);
    transform: rotate(-35deg);
    transform-origin: left center;
}
.sv-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}
.sv-point.p1 { bottom: 20px; left: 20px; }
.sv-point.p2 { bottom: 50px; left: 55px; }

/* Sample visual - text */
.sv-text { width: 80px; }
.sv-text-line {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 6px;
}
.sv-text-line.short { width: 60%; }
.sv-highlight {
    height: 10px;
    background: rgba(251, 191, 36, 0.3);
    border-radius: 2px;
    margin-bottom: 6px;
    border-left: 3px solid #FBBF24;
}

/* Sample visual - circuit */
.sv-circuit {
    width: 80px;
    height: 60px;
    position: relative;
}
.sv-wire.h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-muted);
}
.sv-wire.v {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
}
.sv-component {
    position: absolute;
    font-size: 20px;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}
.sv-component.bulb {
    top: auto;
    bottom: 4px;
}

.sample-info {
    padding: 20px;
}
.sample-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sample-info > p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sample-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.meta-item {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-muted);
    border-radius: 4px;
}
.meta-item strong {
    color: var(--text-secondary);
}

/* ===== STANDARDS ===== */
.standards {
    padding: 96px 0;
    background: var(--bg-subtle);
}

.standards-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.standards-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.standards-text > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.standards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.standard-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.standard-icon {
    flex-shrink: 0;
}
.standard-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.standard-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Interop diagram */
.interop-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.interop-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}
.interop-logo-img {
	margin-top: 14px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.interop-center span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text);
}

.interop-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.interop-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.interop-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}
.interop-node-icon { font-size: 18px; }

.interop-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.interop-node.n2 { top: 20%; right: 0; }
.interop-node.n3 { bottom: 20%; right: 0; }
.interop-node.n4 { bottom: 20%; left: 0; }
.interop-node.n5 { top: 20%; left: 0; }

/* ===== ITEM TYPES TAB ===== */
.item-types-panel {
    max-width: 900px;
    margin: 0 auto;
}

.item-types-intro {
    text-align: center;
    margin-bottom: 32px;
}
.item-types-intro h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.item-types-intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.item-types-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.item-type-group {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.item-type-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}

.itg-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.itg-badge.standard {
    background: #EEF2FF;
    color: var(--primary);
}
.itg-badge.tei {
    background: #F5F3FF;
    color: var(--accent);
}

.itg-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.item-type-list {
    padding: 4px 0;
}

.item-type-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background 0.15s;
}
.item-type-entry:hover {
    background: var(--bg-subtle);
}

.ite-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.ite-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ite-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.ite-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.item-types-footer {
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
}
.item-types-footer p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .item-types-columns { grid-template-columns: 1fr; }
}

/* ===== CASE STUDY ===== */
.case-study {
    padding: 96px 0;
}

.case-study-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cs-header {
    padding: 32px 40px;
    background: linear-gradient(135deg, #123A6B, #1D5399);
    color: white;
}

.cs-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.cs-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.cs-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 700px;
}

.cs-details {
    padding: 32px 40px;
}

.cs-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.cs-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.cs-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.cs-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.cs-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.cs-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cs-feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== HOW IT WORKS (TIMELINE) ===== */
.how-it-works {
    padding: 96px 0;
    background: var(--bg-subtle);
}

.steps-timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.2;
}

.timeline-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    flex-shrink: 0;
    width: 56px;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.timeline-step .step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.timeline-content {
    flex: 1;
    padding: 4px 0 0;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== OPEN SOURCE ===== */
.open-source {
    padding: 96px 0;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.os-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    text-align: center;
    transition: all 0.3s ease;
}

.os-card:hover {
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.os-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
}

.os-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.os-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
    padding: 96px 0;
    background: var(--bg-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}
.price-currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: super;
}
.price-period {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    font-size: 12px;
}

/* ===== CTA ===== */
.cta {
    padding: 96px 0;
    background: linear-gradient(135deg, #123A6B, #1D5399, #2E8FA8);
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-content > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.cta-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-form input:focus,
.cta-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.cta-form select {
    appearance: none;
    cursor: pointer;
}
.cta-form select option {
    color: var(--text);
    background: white;
}

.cta-form .btn-primary {
    margin-top: 8px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 16px;
}
.cta-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .screenshot-content {
        grid-template-columns: 120px 1fr;
    }
    .screenshot-properties {
        display: none;
    }
    .hero h1 { font-size: 42px; }
    .platform-split { grid-template-columns: 1fr; }
    .standards-content { grid-template-columns: 1fr; }
    .interop-diagram { margin-top: 48px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero { padding: 100px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    
    .screenshot-content { grid-template-columns: 1fr; }
    .screenshot-sidebar { display: none; }
    
    .features-grid { grid-template-columns: 1fr; }
    .samples-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    
    .section-header h2 { font-size: 28px; }
    .standards-text h2 { font-size: 28px; }
    .cta-content h2 { font-size: 28px; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .platform-tabs { flex-wrap: wrap; }
    
    .floating-card { display: none; }
    
    .sim-grid { grid-template-columns: repeat(2, 1fr); }

    .cs-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-features { grid-template-columns: 1fr; }
    .cs-header, .cs-details { padding: 24px; }
    .cs-header h3 { font-size: 20px; }
    
    .os-grid { grid-template-columns: 1fr 1fr; }
    
    .steps-timeline::before { left: 20px; }
    .timeline-marker { width: 40px; }
    .timeline-step .step-number { width: 40px; height: 40px; font-size: 13px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .container { padding: 0 16px; }
    .features, .platform, .samples, .standards, .how-it-works, .pricing, .cta, .case-study, .open-source {
        padding: 64px 0;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .cs-stat-grid { grid-template-columns: 1fr 1fr; }
    .os-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE MENU (open state) ===== */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 12px;
}
.nav-links.open a {
    font-size: 16px;
    padding: 8px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: slideUp 0.6s ease-out; }
.hero-visual { animation: slideUp 0.8s ease-out 0.2s both; }

/* ===== ACCESSIBILITY (WCAG AAA) ===== */

/* Screen-reader-only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link — visible on focus (WCAG 2.4.1) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #FBBF24;
    outline-offset: 2px;
}

/* Visible focus indicator on all interactive elements (WCAG 2.4.7 / AAA 2.4.13) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab-btn:focus-visible,
.pillar-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== HERO: NEW MESSAGING ELEMENTS ===== */
.hero-lead {
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin: 0 auto 24px;
    max-width: 760px;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 28px 0 24px;
    padding: 0;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 50px;
}
.trust-badge svg { color: var(--primary-dark); }

.hero-positioning {
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    max-width: 640px;
}

/* ===== PILLARS: AUTHORING / BANKING / WORKFLOW ===== */
.pillars {
    padding: 96px 0;
}
/* In-hero placement: sits between hero copy and the app screenshot */
.hero-pillars {
    margin: 16px auto 56px;
    max-width: 1100px;
}
.hero-pillars .section-header {
    margin-bottom: 40px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #C7D2FE;
}
.pillar-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
}
.pillar-icon.authoring { background: #EEF2FF; color: var(--primary-dark); }
.pillar-icon.banking   { background: #ECFDF5; color: #047857; }
.pillar-icon.workflow  { background: #FFF7ED; color: #C2410C; }
.pillar-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.pillar-card > p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}
.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}
.pillar-card:hover .pillar-link svg {
    transform: translateX(3px);
}
.pillar-link svg { transition: transform 0.2s ease; }

/* ===== ACCESSIBLE FORM FIELDS ===== */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* Stronger placeholder contrast for AAA */
.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== EMBEDDED GOOGLE FORM ===== */
.form-embed {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.form-embed .google-form {
    display: block;
    width: 100%;
    height: 900px;          /* tall enough to avoid an inner scrollbar; tweak to fit your form */
    border: 0;
    border-radius: var(--radius);
    background: #ffffff;
}
@media (max-width: 768px) {
    .form-embed .google-form { height: 1100px; }
}


@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .hero-lead { font-size: 22px; }
}

/* ===== SUBPAGE (Authoring / Banking / Workflow) ===== */
.subpage-hero {
    padding: 140px 0 64px;
    position: relative;
    overflow: hidden;
}
.subpage-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(58, 77, 199, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(29, 79, 151, 0.06), transparent);
    pointer-events: none;
}
.subpage-hero .container { position: relative; z-index: 1; }

.breadcrumb {
    font-size: 13px;
    color: #4B5563;
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--primary-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: #4B5563; }

.subpage-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    max-width: 760px;
}
.subpage-hero .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4B5563;
    max-width: 680px;
}
.subpage-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Screenshot block on subpages */
.subpage-shot {
    padding: 32px 0 64px;
}
.shot-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-xl);
}
.shot-frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}
.shot-frame-bar .dots { display: flex; gap: 6px; }
.shot-frame-bar .shot-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 8px;
}
.shot-body {
    padding: 0;
    min-height: 360px;
    background: #fff;
}

/* Generic app mock layout */
.appmock {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 420px;
}
.appmock-side {
    border-right: 1px solid var(--border);
    background: var(--bg-subtle);
    padding: 16px 12px;
}
.appmock-side h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 14px 8px 8px;
}
.appmock-navitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 6px;
    margin-bottom: 2px;
}
.appmock-navitem.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}
.appmock-main { padding: 20px; }

/* Banking table */
.bank-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bank-search {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    background: white;
}
.bank-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.bank-chip.active { background: var(--primary-light); color: var(--primary-dark); border-color: #C7D2FE; }
.bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bank-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.bank-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.bank-id { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--primary-dark); }
.status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}
.status-pill.draft { background: #FEF3C7; color: #92400E; }
.status-pill.review { background: #DBEAFE; color: #1E40AF; }
.status-pill.published { background: #DCFCE7; color: #166534; }

/* Workflow kanban */
.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.kanban-col {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
}
.kanban-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.kanban-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
.kanban-card .kc-id { font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--primary-dark); }
.kanban-card .kc-title { font-size: 12px; font-weight: 600; color: var(--text); margin: 3px 0 6px; }
.kanban-card .kc-meta { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.kc-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 9px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Subpage feature list */
.subpage-section { padding: 64px 0; }
.subpage-section.alt { background: var(--bg-subtle); }
.subpage-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.subpage-feature {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}
.subpage-feature .sf-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    margin-bottom: 14px;
}
.subpage-feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.subpage-feature p { font-size: 14px; color: #4B5563; line-height: 1.6; }

.subpage-cta {
    padding: 72px 0;
    background: linear-gradient(135deg, #123A6B, #1D5399, #2E8FA8);
    color: white;
    text-align: center;
}
.subpage-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.subpage-cta p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.subpage-cta .btn-primary { background: white; color: var(--primary-dark); }

@media (max-width: 1024px) {
    .appmock { grid-template-columns: 1fr; }
    .appmock-side { display: none; }
    .kanban { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .subpage-hero h1 { font-size: 32px; }
    .subpage-feature-grid { grid-template-columns: 1fr; }
    .kanban { grid-template-columns: 1fr; }
    .bank-table { font-size: 12px; }
}

/* ===== ZIG-ZAG ALIGNMENT (experimental — remove this block to revert) ===== */

/* Hero: full-width column so left content stays left,
   while specific blocks (lead, logo) can center on the page */
.hero-content {
    text-align: left;
    max-width: 100%;
    margin: 0 0 60px;
}
.hero-content h1 { max-width: 760px; }
.hero-content .hero-subtitle { margin-left: 0; }
.hero-content .hero-positioning { margin-left: 0; }
.hero-content .hero-actions { justify-content: flex-start; }
.hero-content .hero-product-logo { text-align: center; }
.hero-content .product-logo { margin: 0 auto; }
/* hero-lead: a centered block on the page, with text reading left */
.hero-lead {
    width: fit-content;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Alternating section headers (zig-zag rhythm) */
.section-header.sh-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}
.section-header.sh-right {
    text-align: left;       /* text reads left for readability */
    margin-left: auto;      /* but the whole block sits on the right */
    margin-right: 0;
}

/* Body copy & card interiors always read left (key readability fix) */
.feature-card,
.os-card,
.pillar-card {
    text-align: left;
}
.os-card .os-icon { margin-left: 0; margin-right: auto; }

/* Item Types tab: left-align the intro and footer copy */
.item-types-intro,
.item-types-footer {
    text-align: left;
}
.item-types-intro p { margin-left: 0; margin-right: 0; }

/* On smaller screens, collapse the zig-zag back to left for consistency */
@media (max-width: 768px) {
    .section-header.sh-left,
    .section-header.sh-right {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }
    .section-header.sh-right .section-tag { margin-left: 0; }
}

/* ===== REDUCED MOTION (WCAG AAA 2.3.3) ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-content,
    .hero-visual,
    .floating-card,
    .badge-dot,
    .gen-status-dot,
    .gen-cursor {
        animation: none !important;
    }
}
