:root {
  --bg: #070b10;
  --bg-2: #0c1219;
  --panel: #101820;
  --panel-2: #15202b;
  --line: #243140;
  --text: #e9eef5;
  --muted: #8b9bb0;
  --amber: #f0b429;
  --amber-dim: #c48912;
  --cyan: #3dcec5;
  --green: #5dcc7a;
  --red: #ff6b7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(240, 180, 41, 0.07), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(61, 206, 197, 0.06), transparent 45%),
    var(--bg);
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #7ee8e0; }
sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}
h1, h2, h3 {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 20px; letter-spacing: 0.08em; color: #c9d6e5; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  color: var(--cyan);
}
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1204;
  background: linear-gradient(135deg, #ffd56a, var(--amber-dim));
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.28);
  flex: 0 0 auto;
}
.brand-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-sub {
  color: var(--muted);
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active {
  color: var(--amber);
  background: #1b2733;
  box-shadow: inset 0 -2px 0 var(--amber);
}
.utc-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--amber);
  border: 1px solid var(--line);
  background: #0b1218;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #ffd56a, var(--amber-dim));
  color: #1a1204;
}
.btn-primary:hover { filter: brightness(1.06); color: #1a1204; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  filter: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,16,0.15) 0%, rgba(7,11,16,0.55) 45%, rgba(7,11,16,0.96) 100%),
    url("../assets/moon-antenna.jpg") center/cover no-repeat;
}
.hero-copy {
  position: relative;
  padding: 90px 0 56px;
}
.kicker {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero p.lead {
  font-size: clamp(18px, 2vw, 22px);
  max-width: 640px;
  color: #c9d6e5;
}
.legal-chip {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

/* Sections */
.section { padding: 72px 0; }
.section.alt {
  background: linear-gradient(180deg, #0c1219, #070b10);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head p { max-width: 560px; margin: 0; }

.grid-3, .grid-2, .grid-os {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }
.grid-os { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card img {
  border-radius: 10px;
  margin-bottom: 16px;
  height: 180px;
  width: 100%;
  object-fit: cover;
}
.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 8px;
}
.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.card li { margin: 6px 0; }

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot img { height: 100%; min-height: 320px; object-fit: cover; width: 100%; }

.os-card h3 { margin-bottom: 6px; }
.os-card .btn { margin-top: 16px; width: 100%; }
button.btn {
  appearance: none;
  font: inherit;
  width: 100%;
}
.price {
  font-family: "Rajdhani", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 8px 0 12px;
}
.price span {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.buy-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.os-card form { margin: 0; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
td strong { font-family: "Rajdhani", sans-serif; letter-spacing: 0.04em; }

.notice {
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  background: #101820;
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-block h2 {
  margin-top: 36px;
  font-size: 22px;
}
.legal-block h2:first-child { margin-top: 0; }
.legal-block p, .legal-block li { color: #c5d0dc; }
.legal-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 42%);
  gap: 28px;
  align-items: start;
}
.bio p {
  max-width: 72ch;
  color: #c5d0dc;
}
.bio-ids {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--amber);
  margin: 0 0 16px;
}
.bio-photo {
  margin: 0;
}
.bio-photo img {
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a1016;
  padding: 36px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal-bar {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.legal-bar strong { color: #c9d6e5; font-weight: 600; }

.page-hero {
  padding: 48px 0 12px;
}
.page-hero p { max-width: 720px; color: var(--muted); }

@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-os, .footer-grid, .about-grid, .bio {
    grid-template-columns: 1fr;
  }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #0c1219;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .utc-chip { display: none; }
}
