@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(22, 28, 38, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(16, 185, 129, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.4);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
}

/* Background glows */
.radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.glow-top-right {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
}

.glow-bottom-left {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-green), transparent);
}

.glow-mid {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    width: 800px;
    height: 800px;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 2.5;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #041e15;
    padding: 0.6rem 1.2rem;
}

.nav-links .btn-oauth {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .btn-oauth:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 4rem 0;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-content h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-green);
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

@media (max-width: 968px) {
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
}

@media (max-width: 968px) {
    .hero-cta {
        margin: 0 auto;
    }
}

.waitlist-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.waitlist-form input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.btn-primary {
    background: var(--accent-green);
    color: #041e15;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #14d495;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--accent-green-glow);
}

.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.5rem 0;
}

.oauth-divider::before, .oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.oauth-divider:not(:empty)::before {
    margin-right: .5em;
}

.oauth-divider:not(:empty)::after {
    margin-left: .5em;
}

.btn-oauth-large {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-oauth-large:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Glass Dashboard Visual */
.hero-visual {
    position: relative;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.glass-card.active-green {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.dashboard-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-pill {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.tab-pill.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

/* Simulator Board Layout */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.matter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.matter-code {
    font-family: monospace;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-priv {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.board-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
}

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

.column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.column-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.sim-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.sim-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.sim-item.selected {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.02);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.item-source {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.item-source.statute {
    color: var(--accent-green);
}

.item-source.contract {
    color: var(--accent-cyan);
}

.item-clock {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.item-clock.warning {
    color: #f59e0b;
}

.item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.deliberation-pane {
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 180px;
}

.pane-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.delib-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.delib-node {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.75rem;
    animation: fadeIn 0.4s ease forwards;
}

.node-icon-wrapper {
    margin-top: 2px;
}

.node-text {
    flex: 1;
}

.node-author {
    font-weight: 600;
    color: var(--text-primary);
}

.node-action {
    color: var(--text-secondary);
}

.node-evidence {
    display: inline-block;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    margin-top: 0.15rem;
}

.proposal-banner {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proposal-tag {
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-approve {
    background: var(--accent-green);
    color: #041e15;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-approve:hover {
    background: #14d495;
}

/* Simulator Controls */
.sim-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.sim-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-control.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-control:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* Interactive Deliberation Section */
.interactive-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.stepper-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .stepper-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card.active {
    background: rgba(22, 28, 38, 0.4);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.03);
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.step-card.active .step-num {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #01242c;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
}

.step-card.active .step-title {
    color: var(--text-primary);
}

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

.stepper-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Visualization Styles for Stepper */
.viz-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.viz-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s ease forwards;
}

.viz-box.glow-green {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

.viz-box.glow-cyan {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.08);
}

.viz-arrow {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-green));
    position: relative;
}

.viz-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 2px) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 2px solid var(--accent-green);
    border-right: 2px solid var(--accent-green);
}

/* Features Grid */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Footer area */
.cta-footer-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.cta-box {
    max-width: 650px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.waitlist-form-footer {
    display: flex;
    gap: 0.5rem;
    max-width: 450px;
    margin: 0 auto 3rem auto;
}

@media (max-width: 480px) {
    .waitlist-form-footer {
        flex-direction: column;
    }
}

.domain-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.domain-tag {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s ease;
}

.domain-tag:hover {
    color: var(--accent-green);
}

/* Footer elements */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Keyframe animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.google-icon {
    width: 18px;
    height: 18px;
}

.success-message {
    font-size: 0.95rem;
    color: var(--accent-green);
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.error-message {
    font-size: 0.95rem;
    color: #ef4444;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-links .separator {
    color: var(--text-muted);
    font-size: 0.6rem;
}

/* Cookie Consent Overlay & Modal */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.cookie-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.cookie-overlay.cookie-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cookie-overlay.cookie-non-blocking {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.cookie-overlay.cookie-non-blocking::before {
    display: none;
}

.cookie-overlay.cookie-non-blocking .cookie-banner {
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.cookie-banner {
    max-width: 480px;
    width: calc(100% - 3rem);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(22, 28, 38, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.cookie-overlay.cookie-hidden .cookie-banner {
    transform: scale(0.95);
}

.cookie-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-icon {
    font-size: 2rem;
    line-height: 1;
}

.cookie-text h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.cookie-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-actions button {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#btn-cookie-decline {
    background: #ef4444;
    border: none;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btn-cookie-decline:hover {
    background: #f87171;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.modal-hidden) .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem;
    text-align: left;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-body h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem 0;
    font-weight: 600;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}



/* Document Page Styles */
.doc-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.doc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.doc-last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.doc-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.doc-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.doc-content h2:first-of-type {
    margin-top: 0;
}

.doc-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .doc-content {
        padding: 2rem 1.5rem;
    }
    .doc-title {
        font-size: 2rem;
    }
}

.doc-content ul, .doc-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.doc-content li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.doc-content li strong {
    color: var(--text-primary);
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.doc-content th, .doc-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.doc-content th {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.doc-content td {
    color: var(--text-secondary);
}

.alert-box {
    background: rgba(6, 182, 212, 0.03);
    border-left: 4px solid var(--accent-cyan);
    padding: 1.25rem 1.5rem;
    border-radius: 4px 12px 12px 4px;
    margin-bottom: 2rem;
}

.alert-box p {
    margin-bottom: 0 !important;
    font-size: 0.95rem !important;
    color: var(--text-primary) !important;
    line-height: 1.5 !important;
}

.alert-box.warning {
    background: rgba(239, 68, 68, 0.03);
    border-left: 4px solid #ef4444;
}


/* ===== Phone-width fixes (2026-07-24): the ≤968px queries stack the page's grids, but
   nothing below that shrank the display type or released the grid/flex min-content floors,
   so phones clipped the headline and the widget off the right edge. ===== */

/* Grid/flex children default to min-width:auto — release the floors so cards can shrink. */
.hero-content, .hero-visual, .steps-list, .stepper-visual, .column, .deliberation-pane {
    min-width: 0;
}

@media (max-width: 640px) {
    .hero-content h1 { font-size: 2.3rem; }
    .section-title { font-size: 1.75rem; }
    .cta-box h2 { font-size: 1.75rem; }

    /* Hero email capture stacks (the footer form already did this at 480px). */
    .waitlist-form { flex-direction: column; }

    /* Nav collapses to logo + CTA; the section anchors return on wider screens. */
    .nav-links { gap: 1rem; }
    .nav-links a:not(.btn-primary) { display: none; }

    /* Dashboard widget: wrap its header/controls rows instead of letting them set a floor. */
    .glass-card { padding: 1rem; }
    .dashboard-header, .matter-header, .sim-controls { flex-wrap: wrap; gap: 0.5rem; }
    .sim-controls .btn-control { flex: 1 1 auto; }

    /* Decorative glows scaled down so they stop defining the scrollable area. */
    .radial-glow { width: 300px; height: 300px; filter: blur(90px); }
    .glow-mid { width: 380px; height: 380px; }

    .cookie-banner { padding: 1.5rem; gap: 1rem; }
}
