/* Silo Browser website
   Values follow the "Silo Browser home page" design (1440px canvas).
   Sections appear in the same order as in index.html. */

/* ==========================================================================
   Fonts (self-hosted, SIL Open Font License; see /fonts/LICENSE-*.txt)
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/pixelify-sans-latin-600.woff2') format('woff2');
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  color-scheme: dark;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-pixel: 'Pixelify Sans', ui-monospace, monospace;

  /* Surfaces, darkest to lightest */
  --bg: #0e0d12;
  --surface-1: #121117;
  --surface-2: #14121a;
  --surface-3: #17151d;
  --surface-4: #1b1922;
  --surface-hover: #221f2a;

  /* Lines */
  --line: #1f1d26;
  --border: #2a2733;
  --border-strong: #3a3645;

  /* Text */
  --fg: #f3f2f7;
  --fg-muted: #c4c1cf;
  --fg-subtle: #9894a6;

  /* Brand */
  --accent: #0c56e9;
  --green: #10b981;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --focus: #6b9bfa;

  --container: 1200px;
  --section-pad: clamp(72px, 9vw, 112px);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
pre,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--fg);
}

a:hover {
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: 16px;
}

.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;
}

/* Icon sprite: its <symbol>s are referenced by <use>, the element itself takes no space */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Shared pieces
   ========================================================================== */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: var(--section-pad);
}

.dots {
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--fg-muted);
}

.subtle {
  color: var(--fg-subtle);
}

/* Icons come from the <svg> sprite at the top of index.html */
.icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-bold {
  stroke-width: 2;
}

.icon-medium {
  stroke-width: 1.8;
}

.logo {
  flex: 0 0 auto;
  stroke-width: 4;
}

/* Section heading block: eyebrow label + title */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* The three group colors, used as a small brand mark */
.pips {
  display: flex;
  gap: 3px;
}

.pips::before,
.pips::after,
.pips > span {
  content: '';
  width: 6px;
  height: 6px;
}

.pips::before {
  background: var(--green);
}

.pips > span {
  background: var(--blue);
}

.pips::after {
  background: var(--violet);
}

.title {
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.04;
  text-wrap: balance;
}

.title-sm {
  font-size: clamp(36px, 4vw, 52px);
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-ghost {
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--fg);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

/* Keyboard keys */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-4);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}

kbd.kbd-lg {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--fg-muted);
}

/* Rounded pill tags */
.pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

/* Grids with 1px dividers between cells. The design draws dividers with a
   1px grid gap over a colored background, which leaves a solid block when
   the last row is short. Here each cell draws its own right and bottom
   border, and the grid overhangs its clipped frame by 1px so the outer
   edges stay hidden. */
.ruled {
  border: 1px solid var(--border);
  overflow: hidden;
}

.ruled-grid {
  display: grid;
  margin: 0 -1px -1px 0;
}

.ruled-grid > * {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-pixel);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  color: var(--fg-muted);
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-links .btn {
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: clamp(56px, 6.2vw, 88px);
  padding-bottom: clamp(72px, 7.2vw, 104px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

.hero h1 {
  max-width: 980px;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  width: 100%;
}

.hero-lede {
  flex: 1 1 460px;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 14px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Hero: interactive app window
   ========================================================================== */

.demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.window {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow:
    0 40px 120px rgb(0 0 0 / 0.55),
    0 0 0 1px rgb(0 0 0 / 0.4);
}

/* Sidebar */

.sidebar {
  flex: 1 1 208px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-3);
  border-right: 1px solid var(--border);
}

.traffic-lights {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) {
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) {
  background: #febc2e;
}

.traffic-lights span:nth-child(3) {
  background: #28c840;
}

.groups {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
}

.group {
  border-left: 3px solid var(--group);
  padding-bottom: 4px;
}

.group-personal {
  --group: var(--green);
}

.group-work {
  --group: var(--blue);
}

.group-client {
  --group: var(--violet);
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  color: var(--fg-muted);
}

.group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chevron {
  flex: 0 0 auto;
  fill: currentColor;
}

.group-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plus {
  font-size: 15px;
  line-height: 1;
  color: var(--fg-subtle);
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px;
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.tab:hover {
  background: #24212c;
}

.tab[aria-pressed='true'] {
  background: #2e2b38;
  color: var(--fg);
}

.tile {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--fg);
}

.tab[aria-pressed='true'] .tile {
  background: #4a4656;
}

.badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab .sound {
  color: var(--focus);
}

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}

.new-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-group .plus {
  color: inherit;
}

/* Content pane. --active is the selected group's color; demo.js updates it. */

.content {
  --active: var(--blue);
  flex: 999 1 380px;
  min-width: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
}

.toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}

.toolbar-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-subtle);
}

.url {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--surface-hover);
  font-size: 13px;
  color: var(--fg-muted);
}

.url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 32px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-group {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.app-name {
  font-size: 26px;
  font-weight: 600;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 14px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
}

.partition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #15131a;
  font-size: 13px;
  color: var(--fg-muted);
}

.partition-id {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partition-id .icon {
  color: var(--active);
}

/* Placeholder inbox */

.inbox {
  display: flex;
  flex-direction: column;
  border: 1px solid #222029;
  border-radius: 10px;
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.row + .row {
  border-top: 1px solid #222029;
}

.row-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.row-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #24212c;
}

.row-lines {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
}

.row-lines::before,
.row-lines::after {
  content: '';
  border-radius: 3px;
}

.row-lines::before {
  height: 9px;
  background: #2e2b38;
}

.row-lines::after {
  height: 8px;
  background: #211e29;
}

.row.unread .row-dot {
  background: var(--active);
}

.row.unread .row-avatar {
  background: var(--border);
}

.row.unread .row-lines::before {
  background: var(--border-strong);
}

.row.unread .row-lines::after {
  background: #26232f;
}

.row:nth-child(1) .row-lines::before { width: 32%; }
.row:nth-child(1) .row-lines::after { width: 74%; }
.row:nth-child(2) .row-lines::before { width: 24%; }
.row:nth-child(2) .row-lines::after { width: 62%; }
.row:nth-child(3) .row-lines::before { width: 40%; }
.row:nth-child(3) .row-lines::after { width: 80%; }
.row:nth-child(4) .row-lines::before { width: 28%; }
.row:nth-child(4) .row-lines::after { width: 56%; }
.row:nth-child(5) .row-lines::before { width: 36%; }
.row:nth-child(5) .row-lines::after { width: 68%; }

.demo-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-subtle);
}

@media (max-width: 480px) {
  .page {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   Why Silo
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.reason {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.reason-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason h3,
.step h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.reason p,
.step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.c-green {
  color: var(--green);
}

.c-blue {
  color: var(--blue);
}

.c-violet {
  color: var(--violet);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-top: 2px solid var(--step);
  background: var(--surface-1);
}

.step-green {
  --step: var(--green);
}

.step-blue {
  --step: var(--blue);
}

.step-violet {
  --step: var(--violet);
}

.step-number {
  font-family: var(--font-pixel);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--step);
}

.step-extra {
  margin-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--swatch);
}

.chip-green {
  --swatch: var(--green);
}

.chip-blue {
  --swatch: var(--blue);
}

.chip-violet {
  --swatch: var(--violet);
}

.url-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

.url-field::after {
  content: '';
  width: 1px;
  height: 16px;
  background: var(--fg);
}

.keys {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

/* ==========================================================================
   Features
   ========================================================================== */

.features-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 48px;
}

.features-head .section-head {
  max-width: 720px;
}

.features-head .lede {
  max-width: 380px;
}

.features {
  border-radius: 16px;
}

.features .ruled-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}

.feature .icon {
  color: var(--fg-muted);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
}

.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Themes
   ========================================================================== */

.themes {
  background: var(--surface-1);
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: var(--section-pad);
}

.themes-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
}

.checklist li::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
}

.checklist li:nth-child(1)::before {
  background: var(--green);
}

.checklist li:nth-child(2)::before {
  background: var(--blue);
}

.checklist li:nth-child(3)::before {
  background: var(--violet);
}

.themes-shot {
  flex: 2 1 560px;
  min-width: 0;
}

.themes-shot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 32px 90px rgb(0 0 0 / 0.6);
}

/* ==========================================================================
   Keyboard shortcuts
   ========================================================================== */

.shortcuts-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding-block: var(--section-pad);
}

.shortcuts-copy {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shortcuts {
  flex: 2 1 520px;
  min-width: 0;
  align-self: flex-start;
  border-radius: 14px;
}

.shortcuts .ruled-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--fg-muted);
}

.shortcut .combo {
  display: flex;
  gap: 4px;
}

/* ==========================================================================
   Open source
   ========================================================================== */

.oss-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
}

.oss-copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.oss-copy .title {
  font-size: clamp(34px, 3.8vw, 48px);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.oss-actions .btn {
  height: 50px;
  padding: 0 20px;
  background: var(--surface-4);
  font-size: 16px;
}

.oss-actions .btn:hover {
  background: var(--surface-hover);
}

.terminal {
  flex: 1 1 360px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0a0e;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.terminal pre {
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: #e4e2ea;
}

.terminal .prompt {
  color: var(--green);
  user-select: none;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-inner {
  gap: 48px;
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 0 56px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ==========================================================================
   Download
   ========================================================================== */

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: clamp(80px, 10vw, 128px);
  text-align: center;
}

.cta-logo {
  stroke-width: 3;
}

.cta-title {
  max-width: 820px;
  font-family: var(--font-pixel);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
  text-wrap: balance;
}

.cta-lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  width: 100%;
  max-width: 860px;
  text-align: left;
}

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--fg);
  text-decoration: none;
}

.platform:hover {
  border-color: #5a5568;
}

.platform-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-name {
  font-size: 18px;
  font-weight: 600;
}

.platform-file {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-subtle);
}

.platform-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-primary .platform-icon {
  background: var(--accent);
  color: #fff;
}

.cta-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-subtle);
}

.cta-meta a {
  color: var(--fg-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  font-size: 14px;
  color: var(--fg-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}
