:root {
    --bg-deep: #0a0a0b;
    --bg-card: rgba(20, 20, 22, 0.8);
    --accent-emerald: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-dim: rgba(255, 255, 255, 0.1);
    --terminal-header: #1f2937;
    --font-main: 'Readex Pro', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(18, 18, 20, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 20, 0.8) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.gateway-container {
    max-width: 1000px;
    width: 100%;
    margin-top: 5vh;
}

/* Terminal Component */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(12px);
    margin-bottom: 3rem;
}

.terminal-header {
    background: var(--terminal-header);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-dim);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
    padding: 30px;
    font-family: 'monospace';
    font-size: 1.1rem;
}

.terminal-prompt {
    color: var(--accent-emerald);
    margin-right: 10px;
}

.typing-text {
    border-right: 2px solid var(--accent-emerald);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-emerald) }
}

/* Pedigree Cards */
.pedigree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.gate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.gate-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-emerald);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.gate-card:hover::before {
    opacity: 1;
}

.gate-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-emerald);
}

.gate-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.gate-action {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* Footer / Metadata */
.gateway-footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.unified-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.unified-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.unified-links a:hover {
    color: var(--accent-emerald);
}

@media (max-width: 768px) {
    body { padding: 1rem; }
    .terminal-body { font-size: 0.9rem; }
}
