/* sim-ai.com - Dark-Mode Simulation AI Platform */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --void-black: #0A0A0F;
    --panel-dark: #141420;
    --sim-blue: #4A9EFF;
    --reality-green: #00FF88;
    --alert-amber: #FFAA00;
    --frame-cyan: rgba(74,158,255,0.3);
    --high-white: #F0F0F5;
    --dim-gray: #6A6A7A;
}
body {
    background: var(--void-black);
    color: var(--high-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Scan Lines */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.02) 2px,
        rgba(0,0,0,0.02) 4px
    );
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Simulation Viewport */
.sim-viewport {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.viewport-small {
    max-width: 600px;
}
.viewport-frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--frame-cyan);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(74,158,255,0.1), inset 0 0 30px rgba(74,158,255,0.05);
    animation: frameGlow 3s ease-in-out infinite alternate;
}
@keyframes frameGlow {
    0% { box-shadow: 0 0 20px rgba(74,158,255,0.08), inset 0 0 20px rgba(74,158,255,0.03); }
    100% { box-shadow: 0 0 40px rgba(74,158,255,0.15), inset 0 0 40px rgba(74,158,255,0.06); }
}
.viewport-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}
.status-indicator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--reality-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.5rem;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--reality-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--high-white);
}
.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--dim-gray);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* Full-Bleed Sections */
.full-bleed {
    width: 100%;
    padding: 120px 0;
}
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-body {
    font-size: 1.05rem;
    color: var(--dim-gray);
    max-width: 700px;
}

/* Zoom-Focus Reveal */
.zoom-reveal {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(4px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.section.visible .zoom-reveal {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Section animation */
.section {
    opacity: 0;
    transition: opacity 0.01s;
}
.section.visible {
    opacity: 1;
}

/* Fragment Grid */
.fragment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.fragment {
    background: var(--panel-dark);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(74,158,255,0.1);
}
.mini-viewport {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--frame-cyan), transparent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
.frag-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--sim-blue);
    display: block;
    margin-bottom: 0.5rem;
}
.frag-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.frag-body {
    font-size: 0.9rem;
    color: var(--dim-gray);
    line-height: 1.6;
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(74,158,255,0.1);
}
.footer-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--dim-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 700px) {
    .fragment-grid { grid-template-columns: 1fr; }
    .full-bleed { padding: 60px 0; }
}
