/* raytrace1k — warm photon glow in a dark room */

:root {
    --bg: #0a0908;
    --bg-lift: #14110e;
    --card: #1a1612;
    --card-hi: #221c16;
    --border: #2a2219;
    --border-hi: #3a2e20;
    --text: #f3e8d8;
    --muted: #a89a85;
    --dim: #6b5f4e;
    --accent: #ff8f4e;
    --accent-hi: #ffb26b;
    --accent-soft: #ffd9b0;
    --hot: #ffaf6b;
    --kw: #ff9e74;
    --f-sans: "Space Grotesk", "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 1100px 700px at 12% -5%, rgba(255, 143, 78, 0.16), transparent 60%),
        radial-gradient(ellipse 900px 600px at 85% 10%, rgba(255, 178, 107, 0.06), transparent 55%),
        radial-gradient(ellipse 1200px 800px at 50% 110%, rgba(255, 120, 50, 0.05), transparent 60%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 160, 90, 0.04) 0%, transparent 35%),
        linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0, rgba(255,255,255,0.4) 1px, transparent 1px, transparent 3px);
    z-index: 0;
    mix-blend-mode: overlay;
}

.page { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

/* nav */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 143, 78, 0.08);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.02em;
}
.nav-logo svg { filter: drop-shadow(0 0 8px rgba(255, 143, 78, 0.45)); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent-hi); }
.nav-cta {
    font-family: var(--f-mono);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 143, 78, 0.12);
    border: 1px solid rgba(255, 143, 78, 0.3);
    color: var(--accent-soft);
    transition: all 0.2s;
}
.nav-cta:hover {
    background: rgba(255, 143, 78, 0.22);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(255, 143, 78, 0.35);
    color: #fff;
}

/* hero */
.hero { padding: 90px 0 60px; }
.hero-inner { max-width: 920px; }
.hero-kicker {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: var(--accent-hi);
    margin-bottom: 28px;
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 143, 78, 0.22);
    border-radius: 999px;
    background: rgba(255, 143, 78, 0.06);
    box-shadow: 0 0 20px rgba(255, 143, 78, 0.08), inset 0 0 10px rgba(255, 143, 78, 0.04);
}
.hero-title {
    font-family: var(--f-sans);
    font-size: clamp(40px, 7vw, 78px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--text);
}
.accent {
    color: var(--accent-hi);
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(180deg, #ffd9b0 0%, #ff8f4e 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 143, 78, 0.5));
}
.hero-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 34px;
    line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.25s;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(180deg, #ff9e63 0%, #ff8f4e 100%);
    color: #1a0e04;
    font-weight: 500;
    box-shadow:
        0 0 0 1px rgba(255, 143, 78, 0.4),
        0 8px 28px rgba(255, 120, 50, 0.35),
        inset 0 1px 0 rgba(255, 220, 180, 0.5);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 180, 120, 0.6),
        0 12px 36px rgba(255, 143, 78, 0.5),
        inset 0 1px 0 rgba(255, 230, 200, 0.6);
}
.btn-ghost {
    background: rgba(255, 143, 78, 0.04);
    border-color: rgba(255, 143, 78, 0.2);
    color: var(--accent-soft);
}
.btn-ghost:hover {
    background: rgba(255, 143, 78, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(255, 143, 78, 0.22);
    color: #fff;
}

/* frosted card / pre blocks */
.frosted {
    background: linear-gradient(180deg, rgba(26, 22, 18, 0.8) 0%, rgba(20, 17, 14, 0.85) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 26px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 143, 78, 0.03),
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 200, 150, 0.04);
    overflow: hidden;
}
.frosted::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 178, 107, 0.4), transparent);
}
.frosted::after {
    content: "";
    position: absolute;
    top: -60%; left: -20%;
    width: 60%; height: 120%;
    background: radial-gradient(ellipse, rgba(255, 143, 78, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

pre.demo, pre {
    font-family: var(--f-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--accent-soft);
    overflow-x: auto;
    white-space: pre;
    position: relative;
    z-index: 1;
}
.c-cmd { color: var(--dim); }
.c-accent { color: var(--accent-hi); font-weight: 500; }
.c-dim { color: var(--dim); }
.c-hot { color: #ffd08a; font-weight: 500; text-shadow: 0 0 10px rgba(255, 180, 100, 0.4); }
.c-kw { color: var(--kw); }
.bar-full { color: #ffaf6b; text-shadow: 0 0 12px rgba(255, 160, 90, 0.6); }
.bar-empty { color: #3a2e20; }

.fade-label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--dim);
    text-align: center;
    margin-top: 18px;
    letter-spacing: 0.04em;
}

/* section scaffolding */
section { padding: 70px 0; }
.section-eyebrow {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: lowercase;
    margin-bottom: 14px;
    opacity: 0.85;
}
.section-title {
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 36px;
    max-width: 800px;
}

/* features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.feature {
    background: linear-gradient(180deg, var(--card) 0%, var(--bg-lift) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 24px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 143, 78, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.feature:hover {
    border-color: var(--border-hi);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 143, 78, 0.1);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 143, 78, 0.1);
    border: 1px solid rgba(255, 143, 78, 0.22);
    border-radius: 10px;
    color: var(--accent-hi);
    margin-bottom: 16px;
    box-shadow: 0 0 16px rgba(255, 143, 78, 0.15);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.feature code, .install-card code, .essay code, p code {
    font-family: var(--f-mono);
    font-size: 12px;
    background: rgba(255, 143, 78, 0.08);
    color: var(--accent-hi);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 143, 78, 0.12);
}

/* essay */
.essay { max-width: 760px; margin: 0 auto; padding-top: 90px; padding-bottom: 90px; }
.essay-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 8px var(--accent);
}
.essay-body p {
    font-family: var(--f-sans);
    font-size: 17px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 22px;
}
.essay-body p:last-child { margin-bottom: 0; }
.essay-body em { color: var(--accent-soft); font-style: italic; }
.pull { color: var(--accent-hi); font-style: italic; }

/* install */
.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}
.install-card {
    background: linear-gradient(180deg, var(--card) 0%, var(--bg-lift) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.25s;
}
.install-card:hover { border-color: var(--border-hi); }
.install-card h3 {
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text);
}
.install-card pre {
    background: #0b0906;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    overflow-x: auto;
}
.install-card pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-soft);
    font-size: 12.5px;
    line-height: 1.55;
}
.install-card .note {
    font-size: 13px;
    color: var(--dim);
    line-height: 1.55;
}
.soon {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 143, 78, 0.12);
    color: var(--accent-hi);
    margin-left: 6px;
    vertical-align: middle;
}

/* footer */
.footer {
    border-top: 1px solid rgba(255, 143, 78, 0.08);
    padding: 32px 0 44px;
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--dim);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-hi); }

/* small screens */
@media (max-width: 640px) {
    .page { padding: 0 18px; }
    .hero { padding: 60px 0 30px; }
    section { padding: 50px 0; }
    .frosted { padding: 16px 14px; }
    pre.demo, pre { font-size: 11.5px; }
    .hero-sub { font-size: 16px; }
}
