/* ==========================================================================
   KASTRY — homepage
   Depends on kastry.css being loaded first (tokens + .led + .btn-twitch).
   ========================================================================== */

body.home-body {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 122, 61, 0.08), transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(47, 217, 196, 0.06), transparent 38%),
        var(--ink);
}

.hp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- nav --------------------------------------------------------- */
.hp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 30px 0;
}
.hp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hp-logo .led { width: 10px; height: 10px; }
.hp-logo span.word {
    font-family: var(--font-display); font-weight: 700; font-size: 27px;
    color: var(--paper); letter-spacing: 0.04em; text-transform: uppercase;
}
.hp-nav-links { display: flex; align-items: center; gap: 32px; }
.hp-nav-links a:not(.btn-twitch) {
    color: var(--muted); text-decoration: none; font-size: 16.5px; font-weight: 500;
    transition: color 0.15s;
}
.hp-nav-links a:not(.btn-twitch):hover { color: var(--paper); }
.hp-nav .btn-twitch { padding: 12px 24px; font-size: 15.5px; color: #14161b; }
@media (max-width: 640px) { .hp-nav-links a.hp-hide-mobile { display: none; } }

/* ---- hero --------------------------------------------------------- */
.hp-hero { padding: 64px 0 40px; text-align: center; }
.hp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px 6px 10px; margin-bottom: 26px;
}
.hp-hero h1 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(46px, 8.5vw, 84px); line-height: 1.05; letter-spacing: 0em;
    color: var(--paper); margin-bottom: 22px;
}
.hp-hero h1 .accent { color: var(--signal); }
.hp-hero p.lede {
    max-width: 560px; margin: 0 auto 34px; color: var(--muted);
    font-size: 17px; line-height: 1.6;
}
.hp-hero-ctas { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hp-btn-ghost {
    display: inline-block; padding: 12px 22px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); color: var(--paper); text-decoration: none;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    letter-spacing: 0.01em;
    transition: border-color 0.15s, background 0.15s;
}
.hp-btn-ghost:hover { border-color: var(--muted); background: var(--panel); }

/* ---- console faceplate (signature element) ------------------------ */
.hp-console {
    margin: 52px auto 0; max-width: 760px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hp-console-strip {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.hp-console-strip .label { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-dim); letter-spacing: 0.03em; }
.hp-console-strip .onair { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12.5px; color: var(--signal); letter-spacing: 0.03em; }
.hp-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hp-module {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
    padding: 12px 10px; text-align: left;
}
.hp-module .row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hp-module .name { font-family: var(--font-mono); font-size: 10.5px; color: var(--paper-dim); letter-spacing: 0.02em; }
.hp-module .bars { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.hp-module .bars span { width: 3px; background: var(--line); border-radius: 1px; }
.hp-module.active .bars span { background: var(--patch); }
.hp-module .bars span:nth-child(1){height:35%;} .hp-module .bars span:nth-child(2){height:70%;}
.hp-module .bars span:nth-child(3){height:50%;} .hp-module .bars span:nth-child(4){height:90%;}
.hp-module .bars span:nth-child(5){height:60%;}
@media (max-width: 640px) { .hp-modules { grid-template-columns: repeat(2, 1fr); } }

/* ---- section shell ------------------------------------------------- */
.hp-section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.hp-section-head { max-width: 560px; margin-bottom: 44px; }
.hp-kicker {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--signal); margin-bottom: 12px; display: block;
}
.hp-section-head h2 {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.2vw, 40px);
    color: var(--paper); letter-spacing: 0em; line-height: 1.15; margin-bottom: 12px;
}
.hp-section-head p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---- signal chain (how it works) ----------------------------------- */
.hp-chain { display: flex; align-items: stretch; gap: 0; }
.hp-chain-step {
    flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 22px 20px; position: relative;
}
.hp-chain-step .n { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-dim); letter-spacing: 0.03em; margin-bottom: 14px; display: block; }
.hp-chain-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0em; line-height: 1.2; color: var(--paper); margin-bottom: 8px; }
.hp-chain-step p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.hp-chain-link {
    width: 44px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center;
}
.hp-chain-link::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--patch) 0 4px, transparent 4px 8px);
}
.hp-chain-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--patch); position: relative; z-index: 1; }
@media (max-width: 820px) {
    .hp-chain { flex-direction: column; gap: 18px; }
    .hp-chain-link { width: auto; height: 18px; transform: rotate(90deg); }
}

/* ---- feature rack ---------------------------------------------------- */
.hp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hp-feature {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 22px 20px;
}
.hp-feature .top { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.hp-feature .tag {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--muted-dim);
}
.hp-feature h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0em; line-height: 1.2; color: var(--paper); margin-bottom: 8px; }
.hp-feature p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 900px) { .hp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hp-features { grid-template-columns: 1fr; } }

/* ---- built-for band -------------------------------------------------- */
.hp-band {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 40px 36px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.hp-band h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--paper); margin-bottom: 8px; letter-spacing: 0em; line-height: 1.15; }
.hp-band p { color: var(--muted); font-size: 14.5px; max-width: 460px; line-height: 1.6; }
@media (max-width: 700px) { .hp-band { flex-direction: column; text-align: center; } .hp-band p { max-width: none; } }

/* ---- final CTA -------------------------------------------------------- */
.hp-cta { text-align: center; padding: 90px 0 70px; }
.hp-cta h2 { font-family: var(--font-display); font-size: clamp(30px, 5.5vw, 48px); font-weight: 700; line-height: 1.1; color: var(--paper); margin-bottom: 16px; letter-spacing: 0em; }
.hp-cta p { color: var(--muted); margin-bottom: 30px; font-size: 15.5px; }

.hp-footer {
    border-top: 1px solid var(--line-soft); padding: 26px 0; margin-top: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hp-footer span { color: var(--muted-dim); font-size: 13px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.01em; }