:root {
  --bg: #05060a;
  --bg-elevated: #0d0f16;
  --border: #1d212b;
  --text: #f2f3f6;
  --text-muted: #9199a8;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --glow: #5eead4;
  --accent-fun: #ff90ac;
  --max-width: 780px;
  --font-display: "Orbitron", "Space Grotesk", -apple-system, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(8, 10, 16, 0.6);
  --glass-bg-solid: #0d0f16;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-accent: rgba(94, 234, 212, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

header.site-header.on-hero {
  border-bottom: 1px solid transparent;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}

nav.site-nav a {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 18px;
  padding: 10px 6px;
  transition: color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  nav.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 0 16px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    z-index: 3;
  }

  nav.site-nav.is-open {
    display: flex;
  }

  nav.site-nav a {
    margin-left: 0;
    padding: 14px 24px;
    border-bottom: 1px solid var(--glass-border);
  }

  nav.site-nav a:last-child {
    border-bottom: none;
  }
}

main {
  padding: 0 0 80px;
}

main.plain {
  padding-top: 56px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 96px 0 88px;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 60% at 50% 42%, rgba(124, 140, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(94, 234, 212, 0.14), transparent 70%),
    linear-gradient(180deg, transparent 0%, var(--bg) 98%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.15;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Lighter heading treatment for content-light interior pages (About,
   Terms, Privacy) so the type weight matches the amount of content
   underneath it, rather than the full hero-scale display heading. */
h1.compact {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.accent-word {
  color: var(--glow);
}

.lede {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 520px;
  margin-bottom: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 48px 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  font-weight: 600;
}

p {
  color: var(--text);
  margin: 0 0 16px;
}

.section p {
  color: var(--text-muted);
}

ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
}

li {
  margin-bottom: 6px;
}

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

a:hover {
  color: var(--glow);
}

/* Glass panels: frosted, translucent blocks that let the fixed starfield
   show through via backdrop-filter. The layered background (a faint white
   sheen over a dark semi-opaque base) keeps body text at safe contrast
   even where a bright star sits directly behind the panel. */
.card,
.section {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 24px 0;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.section h2:first-child,
.section h3:first-child {
  margin-top: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .section {
    background: var(--glass-bg-solid);
  }
}

.card p:first-child {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 44px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--glass-border-accent);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: 0 4px 18px rgba(94, 234, 212, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn {
    background: #123832;
  }
}

.btn:hover {
  border-color: rgba(94, 234, 212, 0.55);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.3), rgba(94, 234, 212, 0.08));
  box-shadow: 0 6px 24px rgba(94, 234, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  color: var(--text);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(94, 234, 212, 0.16), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--glass-border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-cta {
  margin-top: 18px;
}

/* Contact form */
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 8px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  outline-offset: 2px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--glow);
  border-color: var(--glass-border-accent);
}

.contact-form .btn {
  margin-top: 22px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

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

footer.site-footer .wrap {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-left: 16px;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .hero {
    min-height: 76vh;
    padding: 72px 0 64px;
  }
  .card,
  .section {
    padding: 22px 20px;
  }
  .btn {
    width: 100%;
  }
  footer.site-footer .wrap {
    padding-right: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bg-canvas {
    display: none;
  }
}

/* Product feature grid (two-column cards, used on per-product pages) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.feature-grid .card {
  margin: 0;
}

/* Undo the small-uppercase-label treatment of `.card p:first-child`: these
   cards hold full sentences, not a label. */
.feature-grid .card p:first-child {
  color: var(--text-muted);
  font-size: 15px;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
}

.feature-grid .card strong {
  color: var(--text);
}

.feature-grid .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-muted);
}

/* Store badges before a listing is live: look like buttons, are not interactive */
.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
