:root {
    --bg-color: #f3f4f6;       /* Ash background */
    --text-color: #374151;     /* Dark grey text */
    --heading-color: #111827;  /* Near black */
    --accent-color: #1a5c20;   /* Velvet green */
    --secondary-color: #d97706; /* Muted orange/gold for tokens */
    --code-bg: #ffffff;        /* White */
    --border-color: #9ca3af;   /* Chrome/Silver lines */
    --success-color: #15803d;  /* Green */
    --cmd-color: #1f2937;      /* Dark command text */
    --terminal-header: #e5e7eb; /* Light grey for terminal header */
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

header {
    margin-bottom: 4rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
}

h1 {
    color: var(--heading-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    font-weight: 800;
}

h2 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.terminal-window {
    background: var(--code-bg);
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid var(--border-color);
    position: relative; /* Context for absolute positioning if needed */
}

.terminal-header {
    background: var(--terminal-header);
    padding: 0.5rem 1rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.terminal-body {
    padding: 1.5rem;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.terminal-content {
    position: relative;
    z-index: 2;
}

.matrix-rain {
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0.05; /* Even more subtle */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.matrix-col {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 14px;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 2px var(--accent-color);
    white-space: nowrap;
}

@keyframes matrix-fall {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

.matrix-col:nth-child(1) { animation-duration: 4s; animation-delay: 0.5s; }
.matrix-col:nth-child(2) { animation-duration: 7s; animation-delay: 2s; }
.matrix-col:nth-child(3) { animation-duration: 5s; animation-delay: 0s; }
.matrix-col:nth-child(4) { animation-duration: 6s; animation-delay: 3s; }
.matrix-col:nth-child(5) { animation-duration: 8s; animation-delay: 1.5s; }
.matrix-col:nth-child(6) { animation-duration: 4.5s; animation-delay: 2.5s; }
.matrix-col:nth-child(7) { animation-duration: 6.5s; animation-delay: 0.2s; }
.matrix-col:nth-child(8) { animation-duration: 5.5s; animation-delay: 1s; }
.matrix-col:nth-child(9) { animation-duration: 3.5s; animation-delay: 4s; }
.matrix-col:nth-child(10) { animation-duration: 7.5s; animation-delay: 1.2s; }
.matrix-col:nth-child(11) { animation-duration: 5.8s; animation-delay: 0.7s; }
.matrix-col:nth-child(12) { animation-duration: 6.2s; animation-delay: 3.5s; }

.command {
    color: var(--heading-color);
    font-weight: bold;
}

.command::before {
    content: "$ ";
    color: var(--accent-color);
}

/* Utility classes for terminal colors */
.text-success { color: var(--success-color); }
.text-primary { color: var(--accent-color); font-weight: bold; }
.text-secondary { color: var(--secondary-color); }

code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    color: var(--heading-color);
    border: 1px solid #e5e7eb;
    font-size: 0.9em;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 3px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--code-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.cmd-table th, .cmd-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cmd-table th {
    background: var(--bg-color);
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cmd-name {
    color: var(--cmd-color);
    font-weight: bold;
    font-family: monospace;
}

footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .terminal-window { margin: 1rem -1rem; width: auto; border-radius: 0; }
    body { padding: 1rem; }
}
