@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;
}

/* 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 .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;
}

.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;
}
