/* goalgraph — night sky / constellation map
   ---------------------------------------------------------------- */

:root {
    --bg:         #070919;
    --bg-panel:   #0b0e24;
    --bg-card:    #0c1030;
    --ink:        #f5f7ff;
    --dim:        #7d85a5;
    --dimmer:     #4d5373;
    --accent:     #c9bfe8;   /* silver-lavender */
    --accent-2:   #a89ed0;
    --warm:       #ffd97d;   /* star-yellow, use sparingly */
    --done:       #5a6180;
    --border:     rgba(201, 191, 232, 0.10);
    --border-2:   rgba(201, 191, 232, 0.20);
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'general-sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    /* deep gradient pretending to be the upper atmosphere */
    background:
        radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(201, 191, 232, 0.08), transparent 60%),
        radial-gradient(ellipse 900px 500px at 90% 20%, rgba(125, 133, 165, 0.06), transparent 60%),
        radial-gradient(ellipse 800px 500px at 10% 60%, rgba(201, 191, 232, 0.04), transparent 60%),
        var(--bg);
    min-height: 100vh;
    position: relative;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: 'jetbrains-mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- starfield ------------------------------------------------- */
.starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.star {
    position: absolute;
    background: #f5f7ff;
    border-radius: 50%;
    display: block;
    will-change: opacity;
    animation: twinkle 6s ease-in-out infinite;
}
.star.lav { background: var(--accent); }
.star.glow {
    filter: blur(1px) drop-shadow(0 0 3px rgba(201, 191, 232, 0.6));
}
.star:nth-child(3n)   { animation-delay: -1.2s; animation-duration: 7s; }
.star:nth-child(5n)   { animation-delay: -2.4s; animation-duration: 9s; }
.star:nth-child(7n)   { animation-delay: -3.6s; animation-duration: 5.5s; }
.star:nth-child(11n)  { animation-delay: -4.8s; animation-duration: 8s; }

@keyframes twinkle {
    0%, 100% { opacity: var(--from, 1); transform: scale(1); }
    50%      { opacity: 0.35;           transform: scale(0.92); }
}

/* ---- layout primitives ---------------------------------------- */
.page {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

section { padding: 96px 0; }

/* ---- nav ------------------------------------------------------- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'clash-display', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--accent);
}
.nav-right { display: flex; gap: 22px; align-items: center; }
.nav-link {
    color: var(--dim);
    font-size: 14px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid var(--border-2);
    border-radius: 999px;
    color: var(--ink);
    transition: all 0.2s;
}
.nav-cta:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(201, 191, 232, 0.18);
}

/* ---- hero ------------------------------------------------------ */
.hero { padding-top: 0; position: relative; }
.hero-inner {
    padding-top: 90px;
    position: relative;
}
.constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
    z-index: 0;
    filter: drop-shadow(0 0 6px rgba(201, 191, 232, 0.25));
}
.hero-kicker {
    font-family: 'jetbrains-mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--accent);
    margin-bottom: 28px;
    position: relative;
}
.hero-title {
    font-family: 'clash-display', sans-serif;
    font-weight: 400;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 900px;
    position: relative;
}
.hero-title .grad {
    background: linear-gradient(100deg, var(--accent), var(--warm) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    font-style: italic;
}
.hero-sub {
    margin-top: 28px;
    font-size: 18px;
    color: var(--dim);
    max-width: 620px;
    position: relative;
}
.hero-cta-row {
    margin-top: 40px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s;
    border: 1px solid transparent;
    font-family: 'general-sans', sans-serif;
}
.btn-primary {
    background: var(--accent);
    color: #16132a;
    box-shadow: 0 0 0 rgba(201, 191, 232, 0.4);
}
.btn-primary:hover {
    background: #dcd4f2;
    box-shadow: 0 0 40px rgba(201, 191, 232, 0.35);
    transform: translateY(-1px);
}
.btn-ghost {
    border-color: var(--border-2);
    color: var(--ink);
}
.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(201, 191, 232, 0.04);
}

/* ---- demo blocks ---------------------------------------------- */
.hero-demo {
    margin-top: 72px;
    position: relative;
}
.demo {
    font-family: 'jetbrains-mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(11, 14, 36, 0.85), rgba(7, 9, 25, 0.9));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 26px;
    overflow-x: auto;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(201, 191, 232, 0.08);
    position: relative;
}
.demo::before {
    content: "";
    position: absolute;
    top: 0; left: 18%; right: 18%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.45;
}
.demo-tree {
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    padding: 44px 26px;
    white-space: pre;
}
.demo-wide { max-width: 100%; }

.c-dim    { color: var(--dimmer); }
.c-soft   { color: var(--dim); }
.c-accent { color: var(--accent); }
.c-str    { color: #b8a4d4; }
.c-warm   { color: var(--warm); }
.c-done   { color: var(--done); }
.bold     { font-weight: 500; }

.pending  { color: var(--accent); }
.done     { color: var(--done); }
.progress { color: var(--warm); text-shadow: 0 0 10px rgba(255, 217, 125, 0.55); }
.glint    { color: var(--dimmer); opacity: 0.7; }

/* ---- session section ------------------------------------------ */
.session .session-head {
    margin-bottom: 36px;
    max-width: 640px;
}
.session h2 {
    font-family: 'clash-display', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.session p { color: var(--dim); font-size: 17px; }

/* ---- features -------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    position: relative;
    padding: 28px 24px 26px;
    background: linear-gradient(180deg, rgba(12, 16, 48, 0.5), rgba(7, 9, 25, 0.4));
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.feature::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}
.feature::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 0%, rgba(201, 191, 232, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}
.feature:hover {
    border-color: var(--border-2);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 24px rgba(201, 191, 232, 0.22));
}
.feature:hover::after { opacity: 1; }

.feature-icon {
    width: 34px;
    height: 34px;
    color: var(--accent);
    margin-bottom: 18px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 {
    font-family: 'clash-display', sans-serif;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--ink);
}
.feature p {
    font-size: 14.5px;
    color: var(--dim);
    line-height: 1.6;
}
.feature code {
    font-size: 12.5px;
    color: var(--accent);
    background: rgba(201, 191, 232, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}
.feature em { color: var(--ink); font-style: italic; }

/* ---- essay ----------------------------------------------------- */
.essay { max-width: 820px; margin: 0 auto; }
.essay h2 {
    font-family: 'clash-display', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.essay-body p {
    font-size: 17px;
    color: var(--dim);
    margin-bottom: 20px;
    max-width: 680px;
}
.essay-body p:first-of-type { color: var(--ink); font-size: 19px; }
.essay-tag {
    font-family: 'clash-display', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 22px !important;
    color: var(--accent) !important;
    margin-top: 36px !important;
}

.compare {
    font-family: 'jetbrains-mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--ink);
    background: rgba(11, 14, 36, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 26px;
    margin: 28px 0;
    white-space: pre;
    overflow-x: auto;
}

/* ---- install --------------------------------------------------- */
.install h2 {
    font-family: 'clash-display', sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 36px;
}
.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.install-card {
    padding: 26px 24px;
    background: linear-gradient(180deg, rgba(12, 16, 48, 0.5), rgba(7, 9, 25, 0.4));
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
}
.install-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}
.install-card h3 {
    font-family: 'clash-display', sans-serif;
    font-weight: 500;
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.install-card pre {
    background: rgba(7, 9, 25, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--accent);
    overflow-x: auto;
    margin-bottom: 14px;
}
.install-card .note {
    font-size: 13px;
    color: var(--dim);
}
.install-card code { font-family: 'jetbrains-mono', monospace; }

.soon {
    font-family: 'jetbrains-mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 217, 125, 0.10);
    color: var(--warm);
    border: 1px solid rgba(255, 217, 125, 0.25);
    text-transform: lowercase;
    font-weight: 400;
}

/* ---- footer ---------------------------------------------------- */
.footer {
    padding: 40px 0 56px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--dim);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ---- responsive ------------------------------------------------ */
@media (max-width: 860px) {
    .features, .install-grid { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .hero-inner { padding-top: 50px; }
    .demo, .demo-tree { font-size: 11.5px; padding: 22px 16px; }
    .compare { font-size: 11.5px; }
}
