/* GuestOS apex brochure — tokens from docs/design-system.md (dark-first). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --ink: #1e293b;
  --ink-muted: #64748b;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-rgb: 13, 148, 136;
  --accent-contrast: #ffffff;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-muted: #f1f5f9;
  --surface-solid: #ffffff;
  --shadow-lift: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1120px;
  --gutter: 24px;
  --header-h: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --bg-rgb: 20, 20, 20;
  --ink: #f5f5f5;
  --ink-muted: #a3a3a3;
  --line: #2a2a2a;
  --accent: #06b6d4;
  --accent-rgb: 6, 182, 212;
  --accent-contrast: #121212;
  --surface: #1e1e1e;
  --surface-rgb: 30, 30, 30;
  --surface-muted: #262626;
  --surface-solid: #181818;
  --shadow-lift: 0 18px 45px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  left: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 16px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto -10%;
  height: 420px;
  background: radial-gradient(
    closest-side,
    rgba(var(--accent-rgb), 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
}

.lede {
  margin: 0 0 28px;
  max-width: 38em;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.7);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.chip strong {
  color: var(--ink);
  font-weight: 700;
  margin-right: 6px;
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.section-sub {
  margin: 8px 0 0;
  max-width: 42em;
  color: var(--ink-muted);
  font-size: 15px;
}

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

/* Capability bento */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cap {
  padding: 14px 16px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cap h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cap p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pill-opt {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

[data-theme="dark"] .pill-opt {
  color: #fbbf24;
}

.pill-soon {
  background: var(--surface-muted);
  color: var(--ink-muted);
}

.cap.is-soon {
  border-style: dashed;
  opacity: 0.82;
}

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  margin-top: 48px;
}

.feature:first-of-type {
  margin-top: 8px;
}

.feature.is-flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.feature.is-flip .feature-copy {
  order: 2;
}

.feature-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 15px;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(var(--accent-rgb), 0.85);
}

/* Shots */

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent 42%),
    rgba(var(--surface-rgb), 0.65);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.shot.has-image .shot-slot {
  display: none;
}

.shot-slot span {
  font-size: 13px;
  font-weight: 650;
}

.shot-slot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--surface-muted);
  padding: 3px 8px;
  border-radius: 999px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shot-grid .shot {
  box-shadow: none;
}

/* Mini cards (arrivals kit) */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(var(--surface-rgb), 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mini .shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 9;
}

.mini-body {
  padding: 12px 14px 14px;
}

.mini-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.mini-body p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.mini-body .pill {
  margin-bottom: 8px;
}

/* Modes */

.mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mode {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(var(--surface-rgb), 0.72);
}

.mode h3 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Footer */

.cta {
  padding: 72px 0 56px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
}

.cta p {
  margin: 0 auto 22px;
  max-width: 34em;
  color: var(--ink-muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--ink-muted);
  font-size: 12px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
}

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

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .cap-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature.is-flip {
    grid-template-columns: 1fr;
  }

  .feature.is-flip .feature-copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .section {
    padding: 44px 0;
  }

  .cap-grid,
  .mini-grid,
  .mode-row,
  .shot-grid {
    grid-template-columns: 1fr;
  }

  .nav .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .icon-btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
