/* Bigfoot OS website — styled with the Bigfoot design tokens (OLED obsidian palette).
   No web fonts, no external requests. */

:root {
  --canvas: #06070a;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-elevated: rgba(255, 255, 255, 0.038);
  --surface-focus: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.055);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ring: rgba(255, 255, 255, 0.82);
  --cta: #f4f4f6;
  --cta-ink: #090a0e;
  --cta-halo: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-emphasis: #d8dce3;
  --text-secondary: #8a8f99;
  --text-muted: rgba(244, 244, 246, 0.42);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Inter", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-emphasis);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--cta-ink); padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(6, 7, 10, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; }
.brand img { border-radius: 8px; }
.brand em { font-style: normal; color: rgba(244, 244, 246, 0.58); }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; padding: 6px 12px; border-radius: 999px; }
.nav nav a:hover { color: var(--text); background: var(--surface-elevated); }

/* Type */
.eyebrow { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
h1, h2, h3 { color: var(--text); margin: 0; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.026em; }
h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.lede { max-width: 40rem; margin: 24px auto 0; font-size: 1.25rem; line-height: 1.55; color: var(--text-secondary); }
.sub { max-width: 42rem; margin: 14px 0 0; color: var(--text-secondary); }
.note { margin-top: 28px; color: var(--text-secondary); max-width: 46rem; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero-slider { margin: 64px 0 0; width: 100%; }
.hero-shot { margin: 0; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 0 0 1px var(--border), 0 40px 120px rgba(0, 0, 0, 0.8); background: var(--canvas); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; width: 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: auto; }
.slider-caption { margin: 18px auto 0; max-width: 48rem; min-height: 1.6em; color: var(--text-secondary); font-size: 0.98rem; }
.slider-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.slider-dots { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: 24px; }
.slider-dot { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--text-secondary); transition: background 0.15s, color 0.15s; }
.slider-dot:hover { color: var(--text); }
.slider-dot.is-active { background: var(--cta); color: var(--cta-ink); }
.slider-arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font: inherit; font-size: 1.35rem; line-height: 1; color: var(--text); background: var(--surface-elevated); border: 1px solid var(--border-subtle); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.slider-arrow:hover { background: var(--surface-focus); border-color: var(--ring); }
.slider-arrow[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .slider-track { scroll-behavior: auto; } }

/* Buttons (primary = soft-white pill, secondary = outlined) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.09); border: 1px solid var(--border-strong); transition: background 0.15s, color 0.15s, box-shadow 0.15s; }
.btn:hover { background: var(--surface-focus); border-color: var(--ring); }
.btn.primary { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.btn.primary:hover { box-shadow: 0 0 0 4px var(--cta-halo); }
.btn:focus-visible { outline-offset: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: #0a0b10; border-block: 1px solid var(--border); }

.grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 1rem; }

/* Layers */
.layers { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
.layers li { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.layers p { margin: 6px 0 0; color: var(--text-secondary); }
.layer-n, .steps li::before { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f4f4f6; color: var(--cta-ink); display: grid; place-items: center; font-weight: 700; }

/* Install steps */
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 26px 26px 26px 82px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 26px; top: 26px; }
.steps p { margin: 8px 0 0; color: var(--text-secondary); }
.steps p .btn { margin: 6px 10px 0 0; }

.code { position: relative; margin-top: 14px; }
.code pre { margin: 0; overflow-x: auto; background: var(--canvas); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 18px 90px 18px 18px; }
.code code { background: none; border: 0; padding: 0; color: var(--text); font-size: 0.9rem; white-space: pre; }
.copy { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.09); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.copy:hover { border-color: var(--ring); }

.subhead { margin-top: 64px; font-size: 1.5rem; letter-spacing: -0.02em; }
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); }
td:last-child { color: var(--text-secondary); }

/* Projects */
.projects { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.projects a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: background 0.15s, border-color 0.15s; }
.projects a:hover, .projects a:focus-visible { background: var(--surface-focus); border-color: var(--ring); }
.projects strong { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 1rem; }
.projects span { color: var(--text-secondary); font-size: 0.95rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-secondary); font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }

@media (max-width: 720px) {
  .nav nav a:not(:nth-child(3)) { display: none; }
  .hero { padding-top: 56px; }
  .section { padding: 64px 0; }
  .steps li { padding: 22px 20px 22px 70px; }
  .steps li::before { left: 18px; top: 22px; }
}
