:root,
[data-theme="light"] {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d667a;
  --line: #d9dfeb;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --bg: #fbfcfe;
  --accent: #287aff;
  --accent-2: #14a38b;
  --warn: #c86b20;
  --button-bg: #ffffff;
  --nav-bg: rgba(251, 252, 254, 0.92);
  --nav-line: rgba(217, 223, 235, 0.82);
  --notice-bg: #fff7ed;
  --notice-ink: #6f3c11;
  --notice-line: rgba(200, 107, 32, 0.35);
  --hero-grad: linear-gradient(120deg, rgba(40, 122, 255, 0.10), rgba(20, 163, 139, 0.09));
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.18);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7ecf5;
  --muted: #9aa6bd;
  --line: #283143;
  --soft: #131a26;
  --panel: #141b29;
  --bg: #0b0f17;
  --accent: #5b9bff;
  --accent-2: #2bd0b0;
  --warn: #e0934f;
  --button-bg: #1a2231;
  --nav-bg: rgba(11, 15, 23, 0.92);
  --nav-line: rgba(40, 49, 67, 0.85);
  --notice-bg: #2a1d10;
  --notice-ink: #f0c79a;
  --notice-line: rgba(224, 147, 79, 0.40);
  --hero-grad: linear-gradient(120deg, rgba(91, 155, 255, 0.14), rgba(43, 208, 176, 0.11));
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--nav-line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  background: var(--button-bg);
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:disabled { opacity: 0.5; cursor: not-allowed; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }

.hero {
  padding: 72px 0 54px;
  background:
    var(--hero-grad),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lead {
  margin: 0 0 26px;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

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

.product-shot {
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  background: #101827;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.dot:nth-child(2) { background: #ffd166; }
.dot:nth-child(3) { background: #43d17a; }

.shot-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 340px;
}

.side {
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd7ea;
  font-size: 12px;
}

.side div {
  padding: 8px 10px;
  border-radius: 7px;
}

.side .active {
  background: rgba(40, 122, 255, 0.25);
  color: #fff;
}

.rows {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.row {
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.row strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.row span {
  color: #9fb0cb;
  font-size: 12px;
}

.section {
  padding: 56px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.card.featured {
  border: 2px solid var(--accent);
}

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

.price {
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
}

.price .per { font-size: 16px; font-weight: 600; color: var(--muted); }

.list {
  padding-left: 1.2em;
}

.list li { margin: 4px 0; }

.notice {
  border: 1px solid var(--notice-line);
  background: var(--notice-bg);
  color: var(--notice-ink);
  border-radius: 8px;
  padding: 14px 16px;
}

.notice.plain {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  white-space: pre-wrap;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero-grid,
  .grid,
  .grid.two,
  .shot-body {
    grid-template-columns: 1fr;
  }

  .links {
    gap: 10px;
    font-size: 13px;
  }

  .hide-mobile {
    display: none;
  }
}
