:root {
    /* Surface */
    --base: #000000;
    --sidebar: #141414;
    --selection: #2d2d2d;
    --border: #636363;

    /* Phosphor */
    --text: #ffffff;
    --variable: #e8e8e8;
    --comment: #b3b3b3;
    --ignored: #757575;

    /* Glow */
    --wheat: #fae2c8;
    --tan: #d9b98c;
    --gold: #ffb86c;
    --amber: #ff9e3b;
    --clay: #f08d49;

    /* Accents */
    --red: #ff6b6b;
    --green: #b9d665;
    --cyan: #aee6d6;
    --blue: #9cd9e6;
    --purple: #eba4be;
}

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

body {
    background-color: var(--base);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Hero */
.hero {
    text-align: center;
    padding: 100px 0 60px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
}

.glow-img {
    filter: drop-shadow(0 0 15px rgba(255, 158, 59, 0.3));
}

.title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--wheat), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--comment);
    margin-bottom: 40px;
}

.subtitle .accent {
    color: var(--gold);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn.primary {
    background-color: var(--amber);
    color: var(--base);
    box-shadow: 0 0 15px rgba(255, 158, 59, 0.4);
}

.btn.primary:hover {
    background-color: var(--gold);
    box-shadow: 0 0 25px rgba(255, 158, 59, 0.6);
}

.btn.secondary {
    background-color: var(--selection);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background-color: var(--border);
}

/* Code Preview */
.preview {
    margin: 60px 0;
}

.code-window {
    background-color: var(--sidebar);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.glow-border {
    border-color: var(--border);
    box-shadow: 0 0 20px rgba(99, 99, 99, 0.1);
}

.window-header {
    background-color: #0a0a0a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--selection);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red { background-color: var(--red); }
.dot.yellow { background-color: var(--gold); }
.dot.green { background-color: var(--green); }

.window-header .title {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--comment);
    background: none;
    -webkit-text-fill-color: var(--comment);
}

pre {
    padding: 20px;
    overflow-x: auto;
    background-color: var(--base);
    color: var(--text);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

/* Syntax Highlighting Manual Classes */
.k { color: var(--gold); }    /* keyword */
.f { color: var(--amber); }   /* function */
.a { color: var(--variable); }/* argument/variable */
.v { color: var(--wheat); }   /* variable/type */
.s { color: var(--green); }   /* string */
.c { color: var(--comment); } /* comment */
.n { color: var(--purple); }  /* number */
.t { color: var(--wheat); }   /* type/class */

/* Color Palette */
.palette {
    padding: 40px 0;
}

.palette-group {
    margin-bottom: 30px;
}

.palette-group h3 {
    margin-bottom: 15px;
    color: var(--wheat);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--selection);
    display: inline-block;
    padding-bottom: 5px;
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.swatch {
    background-color: var(--sidebar);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.swatch:hover {
    transform: translateY(-2px);
    border-color: var(--color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.swatch::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color);
    margin-bottom: 5px;
}

.swatch .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--comment);
}

.swatch .name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}


/* Ecosystem Grid */
.ecosystem {
    padding: 60px 0 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--wheat);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--sidebar);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--amber);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 2rem;
    color: var(--amber);
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--wheat);
}

.card p {
    color: var(--comment);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--selection);
    color: var(--comment);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .title { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; }
}