/* nimrodcore — page styles (resources/views/home.blade.php).
   One language with the intro: violet light field behind everything, white/silver type,
   Unbounded for titles, Manrope for text, pill buttons, rounded quiet surfaces. */

@font-face {
    font-family: 'Course';
    src: url('/redesign/fonts/Course-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --bg: #08070d;
    --fg: #f1eff6;
    --muted: rgba(241, 239, 246, .66);
    --dim: rgba(241, 239, 246, .4);
    --faint: rgba(241, 239, 246, .06);
    --line: rgba(241, 239, 246, .09);
    --line-s: rgba(241, 239, 246, .16);
    --violet: #8b6cf7;
    --violet-hi: #b6a3fb;
    --surface: rgba(17, 14, 28, .72);
    --surface-hi: rgba(26, 21, 42, .8);
    --radius: 22px;
    --display: 'Unbounded', 'Trebuchet MS', sans-serif;
    --text: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --mono: var(--text);
    --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
/* static violet glows that scroll with the page: the animated field lives only in the intro,
   a fixed WebGL layer behind everything was too heavy for the GPU (stale tiles, black videos) */
body {
    background:
        radial-gradient(48% 22% at 82% 14%, rgba(122, 61, 219, .16), transparent 70%),
        radial-gradient(40% 18% at 12% 38%, rgba(100, 50, 200, .11), transparent 70%),
        radial-gradient(50% 20% at 88% 62%, rgba(122, 61, 219, .12), transparent 70%),
        radial-gradient(44% 18% at 18% 88%, rgba(100, 50, 200, .12), transparent 70%),
        var(--bg);
    color: var(--fg); font-family: var(--text); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }

.shell { max-width: 1344px; margin: 0 auto; padding: 0 48px; }

/* ---------- buttons ---------- */
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 26px; border-radius: 99px;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    background: var(--fg); color: #0b0913;
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.pill { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.pill:hover { background: #fff; }
.pill:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.97); }
.pill-ghost { background: rgba(241, 239, 246, .06); color: var(--fg); border: 1px solid var(--line-s); }
.pill-ghost:hover { background: rgba(241, 239, 246, .12); border-color: rgba(241, 239, 246, .3); }
.pill-sm { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- nav (appears after the intro, then sticks) ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 7px 7px 7px 24px; border-radius: 99px;
    background: rgba(14, 11, 24, .9); border: 1px solid var(--line);
}
.nav-brand { font-family: 'Course', var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-ctas { display: flex; gap: 6px; }

/* ---------- shared section bits ---------- */
.sec { padding-top: 160px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--violet-hi); margin-bottom: 18px; }
.sec-title, .hx-title, .il-title {
    font-family: var(--display); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02;
}
.sec-title { font-size: clamp(36px, 4.6vw, 68px); }
.sec-title span, .hx-title span { color: var(--dim); }
.sec-note { font-size: 15px; color: var(--muted); text-align: right; line-height: 1.55; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in, .no-io .rv { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hx { padding: 72px 0 0; scroll-margin-top: 80px; }
.hx-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: 40px; }
.hx-title { font-size: clamp(34px, 3.7vw, 58px); }
.hx-lede { font-size: 17px; color: var(--muted); max-width: 46ch; }
.hx-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hx .ifc-stage-wrap { width: min(100vw - 96px, 1248px); }
.hx .ifc-stage { height: clamp(500px, calc(100svh - 300px), 760px); border-radius: var(--radius); border-color: var(--line-s); }
.hx .ifc-bar { font-size: 13px; color: var(--dim); padding-top: 16px; }
.hx .ifc-bar kbd { border-radius: 6px; font-family: var(--text); }

/* ---------- numbers ---------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 120px; padding-top: 0; padding-bottom: 0;
}
.stat { padding: 8px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- manifesto ---------- */
.mf { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.mf-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; position: relative; }
.mf-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); }
.mf-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(139, 108, 247, .28), transparent 55%), linear-gradient(0deg, rgba(8, 7, 13, .5), transparent 40%); mix-blend-mode: normal; }
.mf-body .sec-title { margin-bottom: 36px; }
.mf-body p { color: var(--muted); max-width: 56ch; }
.mf-body p + p { margin-top: 16px; }
.mf-lead { font-size: 21px; line-height: 1.5; color: var(--fg) !important; margin-bottom: 28px; }

/* ---------- statement ---------- */
.statement { text-align: center; padding: 40px 0; }
.statement-title { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.2vw, 84px); letter-spacing: -0.05em; line-height: 1.04; }
.statement-title span { display: block; margin-top: 18px; font-size: .42em; letter-spacing: -0.03em; line-height: 1.3; color: var(--muted); }

/* ---------- in motion ---------- */
.mo { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(420px, 44vw, 620px); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tile video, .tile iframe, .tile #ytPlayer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tile-yt { grid-row: 1 / span 2; }
.yt-label {
    position: absolute; left: 16px; bottom: 16px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 16px; border-radius: 99px;
    font-size: 14px; font-weight: 600;
    background: rgba(10, 8, 18, .86); border: 1px solid var(--line-s);
    transition: background .2s;
}
.yt-label:hover { background: rgba(26, 21, 42, .9); }
#ytProductName { transition: opacity .18s; }
#ytProductName.fade { opacity: 0; }

/* ---------- interlude ---------- */
.il { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: clamp(420px, 60vh, 640px); display: grid; place-items: center; text-align: center; }
.il video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.il::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(8, 7, 13, .55), rgba(8, 7, 13, .9)), linear-gradient(180deg, rgba(90, 50, 190, .25), transparent 60%); }
.il-inner { position: relative; z-index: 1; padding: 48px 24px; }
.il-title { font-size: clamp(34px, 5vw, 76px); }
.il-inner p { margin: 24px auto 0; max-width: 52ch; color: var(--muted); font-size: 17px; }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap {
    padding: 28px 26px 30px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s, background .25s, opacity .9s var(--ease), transform .9s var(--ease);
}
.cap:hover { border-color: var(--line-s); background: var(--surface-hi); }
.cap-n { font-size: 13px; color: var(--violet-hi); font-variant-numeric: tabular-nums; }
.cap h3 { margin: 44px 0 12px; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.03em; line-height: 1.2; }
.cap p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- footer ---------- */
.foot { padding-top: 180px; padding-bottom: 40px; }
.foot-cta { text-align: center; padding-bottom: 120px; }
.foot-mark { font-size: clamp(40px, 8vw, 140px); }
.foot-line { margin-top: 20px; font-size: 17px; color: var(--muted); }
.foot-cta .hx-ctas { justify-content: center; }
.resell {
    display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap;
    margin-bottom: 72px; padding: 48px 52px; border-radius: var(--radius);
    background: radial-gradient(90% 140% at 100% 0%, rgba(139, 108, 247, .22), transparent 60%), var(--surface);
    border: 1px solid var(--line-s);
}
.resell-title { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.045em; line-height: 1.05; }
.resell-title span { color: var(--dim); }
.resell-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.resell-side p { font-size: 17px; color: var(--muted); }
@media (max-width: 600px) { .resell { padding: 32px 24px; } }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); transition: color .15s; }
.foot-links a:hover { color: var(--fg); }

/* ---------- cursor spotlight: a soft glow and a lit border follow the pointer over cards (site.js sets --mx/--my) ---------- */
.spot { isolation: isolate; }
.cap { position: relative; }
.spot::before, .spot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .35s var(--ease);
}
.spot::before {
    z-index: 1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 247, .2), transparent 45%);
}
.spot::after {
    z-index: 3; padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(182, 163, 251, .85), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.tile.spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 247, .08), transparent 45%); }

/* ---------- cursor halo (site.js). A small fixed layer moved with transform only. ---------- */
.cur-halo {
    position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
    opacity: 0; transition: opacity .3s;
}
.cur-on .cur-halo { opacity: 1; }
.cur-halo {
    width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 108, 247, .13) 0%, rgba(139, 108, 247, .05) 35%, transparent 70%);
    z-index: 0;
}
/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .caps { grid-template-columns: repeat(2, 1fr); }
    .mf { gap: 48px; }
}
@media (max-width: 1000px) {
    .shell { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-bar { padding-left: 18px; }
    .hx { padding-top: 40px; }
    .hx-head { grid-template-columns: 1fr; gap: 24px; }
    .hx .ifc-stage-wrap { width: calc(100vw - 32px); }
    .sec { padding-top: 112px; }
    .sec-note { text-align: left; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 0; margin-top: 88px; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .mf { grid-template-columns: 1fr; }
    .mf-img { aspect-ratio: 16 / 10; }
    .mo { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
    .tile-yt { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16 / 9; }
    .tile:not(.tile-yt) { aspect-ratio: 1; }
}
@media (max-width: 600px) {
    .caps { grid-template-columns: 1fr; }
    .stat { padding: 4px 16px; }
    .cap h3 { margin-top: 28px; }
    .pill { height: 44px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; transition: none; }
}
