/* ============================================================================
   Scarmonit — Homepage  (editorial "workshop" redesign)
   Ported from the approved mockup. Loaded only on "/" after style.css +
   enhanced.css + theme.css. The site's global nav (theme.css) is kept as-is;
   this file only styles the homepage <main> content + its own footer, scoped
   under body.home-page / .home so it overrides the global theme cleanly.
   Accent is BLUE (--acc).
   ========================================================================== */

/* ---- Palette (warm-dark neutrals from the mockup, blue accent) ---- */
.home {
    --bg:      #0c0a09;
    --ink:     #f4efe9;
    --muted:   #b7b0a8;
    --dim:     #8f8880;
    --faint:   #6a635b;
    --faint-2: #5f584f;
    --line:    #201d19;
    --line-2:  #1c1916;
    --line-3:  #2a2723;
    --panel:   #0e0c0a;
    --row-hover:#131110;

    --acc:      #4f9dff;              /* the new blue accent */
    --acc-ink:  #06101f;             /* readable text on the accent */
    --acc-glow: rgba(79, 157, 255, .30);

    --disp: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

/* ---- Page-level: warm background + grid overlay, hide global blobs ---- */
body.home-page {
    background:
        radial-gradient(120% 90% at 85% -10%, var(--acc-glow), transparent 55%),
        radial-gradient(90% 70% at 0% 0%, rgba(79, 157, 255, .06), transparent 50%),
        #0c0a09 !important;
    color: #f4efe9;
}
body.home-page .bg-wrapper { display: none !important; }
body.home-page::before { display: none !important; }  /* kill enhanced.css grid overlay */

.home { position: relative; overflow-x: hidden; font-family: var(--disp); }
.home > * { position: relative; z-index: 5; }

.home a { text-decoration: none; color: inherit; }
.home ::selection { background: var(--acc); color: var(--acc-ink); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

.home :is(h1, h2, h3, h4) {
    font-family: var(--disp);
    -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: none;
}

/* ============================================================================
   HERO
   ========================================================================== */
.hx {
    padding: clamp(104px, 12vw, 150px) 40px 40px;
    max-width: 1360px;
    margin: 0 auto;
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 38px;
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 10px var(--acc);
    animation: hglow 2.4s ease-in-out infinite;
}
.eyebrow .sep { color: #443f39; }
@keyframes hglow { 0%, 100% { opacity: .5; } 50% { opacity: .9; } }

.hx-title {
    font-weight: 700;
    font-size: clamp(56px, 11vw, 168px);
    line-height: .9;
    letter-spacing: -.03em;
    max-width: 12ch;
    color: var(--ink);
}
.hx-title .p { color: var(--acc); }

.hx-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 44px;
}
.hx-lead {
    max-width: 52ch;
    font-size: 19px;
    line-height: 1.55;
    color: var(--muted);
}
.hx-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--acc);
    color: var(--acc-ink);
    font-weight: 600;
    font-size: 15px;
    padding: 16px 26px;
    border-radius: 2px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--acc-glow); }
.btn-ghost {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    padding: 16px 26px;
    border: 1px solid var(--line-3);
    border-radius: 2px;
    transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: #5a534b; }

/* ============================================================================
   MARQUEE
   ========================================================================== */
.ticker {
    margin-top: 60px;
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    overflow: hidden;
    padding: 16px 0;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: hmarquee 95s linear infinite;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}
.ticker-seq { display: flex; gap: 34px; padding-right: 34px; }
.ticker-item { display: flex; align-items: center; gap: 34px; }
.ticker-item .b { color: var(--acc); }
@keyframes hmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================================
   SECTION SHELL
   ========================================================================== */
.sec { max-width: 1360px; margin: 0 auto; padding: 100px 40px 40px; scroll-margin-top: 90px; }
.kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 14px;
}
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 44px;
}
.sec-title {
    font-weight: 700;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--ink);
}
.count { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* ---- Index list ---- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
    display: grid;
    grid-template-columns: 64px 1.6fr 2.4fr auto;
    align-items: center;
    gap: 28px;
    padding: 26px 12px;
    border-bottom: 1px solid var(--line);
    transition: background .18s ease, padding-left .18s ease;
}
.index-row:hover { background: var(--row-hover); padding-left: 22px; }
.ix-num { font-family: var(--mono); font-size: 13px; color: var(--faint-2); }
.ix-main { display: flex; flex-direction: column; gap: 6px; }
.ix-name { font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.ix-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7a736b; }
.ix-desc { font-size: 15px; line-height: 1.5; color: #a49d95; max-width: 46ch; }
.ix-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--acc);
    white-space: nowrap;
}

/* ============================================================================
   STATS / built for the web
   ========================================================================== */
.about {
    max-width: 1360px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-title {
    font-weight: 700;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -.02em;
    line-height: 1.05;
    margin-bottom: 22px;
    color: var(--ink);
}
.about-lead { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 56ch; }
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.stat-cell { background: var(--panel); padding: 34px 28px; display: flex; flex-direction: column; gap: 8px; }
.stat-val { font-weight: 700; font-size: 44px; letter-spacing: -.03em; color: var(--acc); }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ============================================================================
   VIDEOS
   ========================================================================== */
.subscribe {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--line-3);
    border-radius: 999px;
    padding: 12px 20px;
    transition: border-color .15s ease, color .15s ease;
}
.subscribe:hover { border-color: var(--acc); color: var(--acc); }
.vids-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vid-card { display: block; border: 1px solid var(--line); background: var(--panel); transition: border-color .18s ease; }
.vid-card:hover { border-color: #3a352f; }
.vid-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-info { padding: 20px; }
.vid-name { font-weight: 600; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.vid-by { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7a736b; }

/* ============================================================================
   FOOTER (homepage-specific, replaces the shared footer here)
   ========================================================================== */
.home-footer { border-top: 1px solid var(--line-2); margin-top: 60px; }
.hf-grid { max-width: 1360px; margin: 0 auto; padding: 64px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.hf-brand-name { font-weight: 700; font-size: 22px; letter-spacing: .12em; margin-bottom: 16px; color: var(--ink); }
.hf-brand-name .p { color: var(--acc); }
.hf-tag { font-size: 14px; line-height: 1.6; color: var(--dim); max-width: 34ch; }
.hf-col { display: flex; flex-direction: column; gap: 14px; }
.hf-h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint-2); }
.hf-link { font-size: 14px; color: var(--muted); transition: color .15s ease; }
.hf-link:hover { color: var(--acc); }
.hf-bottom {
    max-width: 1360px; margin: 0 auto;
    padding: 0 40px 40px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--faint-2);
}
.hf-bottom .cursor { color: var(--acc); animation: hblink 1.2s step-end infinite; }
@keyframes hblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .about { grid-template-columns: 1fr; gap: 40px; }
    .vids-grid { grid-template-columns: 1fr; }
    .hf-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
    .wrap, .hx, .sec, .about, .hf-grid, .hf-bottom { padding-left: 22px; padding-right: 22px; }
    .index-row {
        grid-template-columns: 40px 1fr;
        grid-template-areas: "num main" "num desc" "num cta";
        gap: 6px 18px;
        padding: 22px 10px;
    }
    .ix-num { grid-area: num; }
    .ix-main { grid-area: main; }
    .ix-desc { grid-area: desc; margin-top: 6px; }
    .ix-cta { grid-area: cta; margin-top: 10px; }
    .index-row:hover { padding-left: 16px; }
}
@media (max-width: 560px) {
    .hf-grid { grid-template-columns: 1fr; }
    .hx-ctas { width: 100%; }
    .hx-ctas .btn-primary, .hx-ctas .btn-ghost { flex: 1; justify-content: center; }
}
