/* NiX Linux site in the FortiFind brand (see F:\fortifind\docs\BRAND_GUIDE.md).
   Six colours only: #06141B Ink, #11212D Deep, #253745 Slate, #4A5C6A Steel, #9BA8AB Mist, #CCD0CF Paper.
   Light body with dark cinematic bands (.theme-dark re-maps the same tokens). Geist Sans / Geist Mono, self-hosted. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #ccd0cf;            /* background */
  --surface: #ccd0cf;
  --surface-raised: #9ba8ab;
  --primary: #06141b;
  --primary-hover: #253745;
  --fg: #06141b;
  --muted: #253745;
  --line: #9ba8ab;
  --line-strong: #4a5c6a;
  --radius: 1rem;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: light;
}
.theme-dark {
  --ink: #06141b;
  --surface: #11212d;
  --surface-raised: #253745;
  --primary: #ccd0cf;
  --primary-hover: #9ba8ab;
  --fg: #ccd0cf;
  --muted: #9ba8ab;
  --line: #253745;
  --line-strong: #4a5c6a;
  color-scheme: dark;
  color: var(--fg);
  background-color: var(--ink);
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--fg); scroll-padding-top: 4rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 16px/1.6 var(--sans); background: var(--ink); color: var(--fg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--surface-raised); color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: #ccd0cf; color: #06141b; padding: .5rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }
code, kbd { font-family: var(--mono); font-size: .86em; border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; background: color-mix(in srgb, var(--surface-raised) 25%, transparent); }
kbd { border-bottom-width: 2px; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
.narrow { max-width: 56rem; }

.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.display-xl { font-size: clamp(3rem, 8.2vw, 7.5rem); line-height: .94; letter-spacing: -.045em; font-weight: 600; margin: 0 0 1.5rem; text-wrap: balance; }
.display-lg { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: .98; letter-spacing: -.04em; font-weight: 600; margin: 0 0 1.25rem; text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; font-weight: 600; margin: 0 0 .5rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 38rem; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, #06141b 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 3.25rem; }
.nav-brand { display: flex; align-items: center; gap: .65rem; margin-right: auto; }
.ff-logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.ff-logo svg { width: 1.5rem; height: 1.5rem; }
.nav-sep { color: var(--line-strong); }
.nav-product { text-decoration: none; font-weight: 500; color: var(--fg); }
.nav nav { display: flex; gap: 1.5rem; }
.nav nav a { text-decoration: none; font-size: .875rem; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 500; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn-sm { padding: .35rem .9rem; font-size: .85rem; }
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: #06141b; color: #ccd0cf; }
.btn-dark:hover { background: #253745; }
.btn-outline { border-color: var(--line-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- status badge (label + six-segment maturity meter) ---------- */
.status { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid color-mix(in srgb, var(--fg) 70%, transparent); border-radius: 999px; padding: .2rem .7rem; font: .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 3px; height: .5rem; border-radius: 1px; background: var(--fg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5.5rem; }
.hero-orb { position: absolute; right: -14rem; top: -10rem; width: 52rem; height: 52rem; border-radius: 9999px; pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, #ccd0cf 45%, transparent), transparent 32%),
    radial-gradient(circle at 70% 80%, color-mix(in srgb, #4a5c6a 70%, transparent), transparent 55%),
    radial-gradient(circle at 50% 50%, #11212d, #06141b 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ccd0cf 18%, transparent), inset -18px -24px 60px color-mix(in srgb, #9ba8ab 20%, transparent), 0 0 140px color-mix(in srgb, #4a5c6a 30%, transparent);
  opacity: .75; }
.hero-orb.small { width: 34rem; height: 34rem; right: -10rem; top: -12rem; opacity: .55; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--muted); margin-bottom: 1.75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.hero-status { margin-top: 1.75rem; }
.hero-status + .hero-actions { margin-top: 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2.75rem 0 0; }
.facts div { border-left: 1px solid var(--line-strong); padding: .1rem 0 .1rem .9rem; }
.facts dt { font: .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.hero-shot { margin: 0; border-radius: 1.25rem; overflow: hidden; border: 1px solid color-mix(in srgb, #ccd0cf 16%, transparent); box-shadow: 0 40px 90px -30px #000, inset 0 1px 0 color-mix(in srgb, #ccd0cf 12%, transparent); }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin: 0 0 3rem; }
.atmosphere { background:
  radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, #9ba8ab 55%, transparent), transparent 70%),
  radial-gradient(50% 45% at 90% 100%, color-mix(in srgb, #9ba8ab 45%, transparent), transparent 70%),
  var(--ink); }

/* glass card */
.card { position: relative; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: var(--radius); padding: 1.6rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), color-mix(in srgb, var(--surface) 40%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ccd0cf 85%, transparent), 0 1px 2px color-mix(in srgb, #06141b 6%, transparent), 0 12px 32px -16px color-mix(in srgb, #06141b 22%, transparent);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-2px); } }
.card p { margin: 0; color: var(--muted); }
.card .num { display: block; font: .75rem var(--mono); letter-spacing: .12em; color: var(--line-strong); margin-bottom: 1.75rem; }
.card-strong { border-color: var(--line-strong); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #06141b; cursor: zoom-in; box-shadow: 0 24px 48px -28px color-mix(in srgb, #06141b 55%, transparent); }
.shot img { transition: transform .5s cubic-bezier(.2,.7,.1,1); }
@media (prefers-reduced-motion: no-preference) { .shot:hover img { transform: scale(1.02); } }

dialog#lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog#lightbox::backdrop { background: color-mix(in srgb, #06141b 90%, transparent); }
dialog#lightbox img { max-width: 96vw; max-height: 94vh; border-radius: .75rem; }
dialog#lightbox button { position: absolute; top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid #4a5c6a; background: #06141b; color: #ccd0cf; font-size: 1.25rem; cursor: pointer; }

/* download */
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.download-grid .card { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 2rem; }
.download-grid .card .eyebrow { margin: 0; }
.download-grid h3 { font-size: 1.5rem; letter-spacing: -.025em; margin: 0; }
.hash { display: flex; align-items: center; gap: .6rem; width: 100%; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font: .7rem var(--mono); color: var(--muted); }
.hash > span { letter-spacing: .1em; }
.hash code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 0; color: var(--fg); }
.copy { font: inherit; letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid var(--line-strong); color: var(--fg); border-radius: 999px; padding: .2rem .65rem; cursor: pointer; }
.copy:hover { border-color: var(--fg); }
.reqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reqs div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); }
.reqs div:first-child { border-left: 0; }
.reqs dt { font: .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reqs dd { margin: .3rem 0 0; font-weight: 600; }

/* install steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 4rem minmax(0, 1fr); padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: .8rem var(--mono); letter-spacing: .12em; color: var(--line-strong); padding-top: .25rem; grid-row: span 2; }
.steps h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); }
.steps a { text-underline-offset: 3px; }

/* faq */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--line-strong); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: .75rem 0 0; max-width: 46rem; }

/* closing CTA */
.cta { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; }
.cta-inner { position: relative; }
.cta .hero-actions { margin-top: 2.25rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.tagline { color: var(--muted); margin: .75rem 0 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.footer nav a:hover { color: var(--fg); }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-note p { margin: 0 0 .5rem; max-width: 52rem; }
.footer-note code { font-size: .9em; }

/* motion: decorative only */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 900ms cubic-bezier(.2,.7,.1,1) both; }
  .hero-shot.rise { animation-delay: 120ms; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}

/* responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .nav nav { display: none; }
  .gallery, .download-grid { grid-template-columns: minmax(0, 1fr); }
  .reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reqs div:nth-child(3) { border-left: 0; }
  .reqs div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .hero-orb { width: 30rem; height: 30rem; right: -12rem; top: -6rem; }
  .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); }
}
