@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("assets/fonts/fira-code-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --brand: #478fcd;
  --bg: light-dark(#f6f8fc, #060a11);
  --surface: light-dark(#ffffff, #0c1320);
  --surface-subtle: light-dark(#edf2f9, #131f33);
  --border: light-dark(rgba(15, 23, 42, 0.1), rgba(148, 180, 220, 0.13));
  --border-strong: light-dark(rgba(15, 23, 42, 0.18), rgba(148, 180, 220, 0.24));
  --ink: light-dark(#0b1220, #eef4fc);
  --ink-muted: light-dark(#475569, #8fa4c2);
  --ink-faint: light-dark(#64748b, #617796);
  --accent: light-dark(#2266a5, #72b9f5);
  --hero-glow: light-dark(rgba(71, 143, 205, 0.14), rgba(71, 143, 205, 0.2));
  --grid-dot: light-dark(rgba(15, 23, 42, 0.08), rgba(148, 180, 220, 0.12));

  --chrome-bg: #090f1a;
  --chrome-bar: #0e1726;
  --chrome-border: rgba(148, 180, 220, 0.15);
  --chrome-ink: #e8f0fa;
  --chrome-muted: #7e96b8;
  --chrome-faint: #4f6584;

  --radius-lg: 16px;
  --radius-sm: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

code,
pre,
.mono {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "liga" 0, "calt" 0;
}

code {
  font-size: 0.86em;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.42em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Full-viewport centered layout + subtle radial atmosphere */
.backdrop {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(58% 48% at 50% 45%, var(--hero-glow) 0%, transparent 72%),
    radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 100% 100%, 28px 28px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 48%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 48%, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Top navigation */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark:hover {
  text-decoration: none;
}

.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

.brand-sep {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}

.brand-host {
  font-size: 13px;
  color: var(--ink-muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.theme-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.theme-btn[hidden] {
  display: none;
}

/* Vertically & horizontally centered hero */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 40px;
}

.hero {
  width: 100%;
  text-align: center;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(71, 143, 205, 0.45);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(42px, 6.8vw, 66px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Command bar centerpiece */
.cmd-card {
  margin: 34px auto 0;
  max-width: 720px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--chrome-border);
  background: var(--chrome-bg);
  color: var(--chrome-ink);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(71, 143, 205, 0.14);
  overflow: hidden;
  text-align: left;
}

.cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--chrome-bar);
  border-bottom: 1px solid var(--chrome-border);
}

.os-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.os-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--chrome-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.os-tab:hover {
  color: var(--chrome-ink);
}

.os-tab[aria-selected="true"] {
  color: #ffffff;
  background: rgba(71, 143, 205, 0.28);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(71, 143, 205, 0.45);
  background: rgba(71, 143, 205, 0.18);
  color: #e8f3ff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.copy-btn:hover {
  background: rgba(71, 143, 205, 0.3);
  border-color: rgba(112, 183, 244, 0.7);
}

.copy-btn.copied {
  background: rgba(74, 222, 128, 0.16);
  border-color: rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.copy-btn[hidden] {
  display: none;
}

.cmd-panel {
  padding: 20px 22px;
  overflow-x: auto;
}

.cmd-panel[hidden] {
  display: none;
}

.panel-label {
  display: none;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--chrome-muted);
}

.no-js .panel-label {
  display: block;
}

.no-js .cmd-panel + .cmd-panel {
  border-top: 1px solid var(--chrome-border);
}

.cmd-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.cmd-prompt {
  color: var(--chrome-faint);
  user-select: none;
  margin-right: 12px;
}

.cmd-bin {
  color: #7cc2fa;
}

.cmd-flag {
  color: #a4b8d3;
}

.cmd-url {
  color: #f4f8ff;
}

.hero-submeta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Footer */
.footer {
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

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

@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }

  .brand-host {
    display: none;
  }

  .hero-icon {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
