/* undo.sh - Premium Terminal */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --sage: #B0C8B8;
    --terminal-bg: #0C1214;
    --dark-surface: #1A2228;
    --neon-green: #40E878;
    --void: #0A0E10;
    --alert-red: #E84040;
    --text-light: #E0F0E8;
    --darker-surface: #141A1C;
}

body {
    background: var(--void);
    color: var(--text-light);
    font-family: 'Commissioner', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Circuit Background */
.circuit-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.circuit-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCircuit 1.5s ease forwards;
}
.circuit-path:nth-child(2) { animation-delay: 0.3s; }
.circuit-path:nth-child(3) { animation-delay: 0.6s; }
@keyframes drawCircuit {
    to { stroke-dashoffset: 0; }
}

/* Flow Container */
.flow-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Flow Sections with organic curves */
.flow-section {
    padding: 4rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.flow-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.flow-section::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 3rem;
    background: linear-gradient(90deg, transparent, rgba(64, 232, 120, 0.1), transparent);
    clip-path: ellipse(50% 50%);
}

/* Hero */
.section-hero {
    text-align: center;
    padding-top: 6rem;
}
.hero-title {
    font-family: 'Commissioner', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.hero-sub {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    color: var(--sage);
    font-size: 1rem;
}

/* Section Titles */
.section-title {
    font-family: 'Commissioner', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.section-body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--sage);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* Terminal Blocks */
.terminal-block {
    background: var(--terminal-bg);
    border: 1px solid var(--dark-surface);
    border-radius: 8px;
    overflow: hidden;
}
.terminal-block.danger {
    border-color: rgba(232, 64, 64, 0.3);
}
.terminal-block.hero-terminal {
    max-width: 400px;
    margin: 0 auto;
}
.terminal-header {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--darker-surface);
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: var(--alert-red); }
.terminal-dot.yellow { background: #E8C840; }
.terminal-dot.green { background: var(--neon-green); }

.terminal-body {
    padding: 1rem 1.25rem;
}
.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--neon-green);
}
.prompt { color: var(--sage); }
.output { color: var(--sage); opacity: 0.7; }
.error-text { color: var(--alert-red); }
.success-text { color: var(--neon-green); }

.cursor {
    animation: blink 0.8s step-end infinite;
    color: var(--neon-green);
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--sage);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
    .flow-container { padding: 1rem; }
    .flow-section { padding: 2rem 0; }
}
