:root {
  color-scheme: dark;
  --bg: #0d0f0e;
  --surface: #151817;
  --ink: #f5f6ef;
  --muted: #a9afa8;
  --line: #333836;
  --accent: #9df36f;
  --accent-strong: #c5ff91;
  --control-bg: rgba(21, 24, 23, 0.9);
  --control-active: #9df36f;
  --control-active-text: #0b0d0c;
  --hover: #1b201e;
  --radius: 2px;
  --hero-max: 680px;
  --product-width: min(54vw, 330px);
  --product-filter: drop-shadow(0 20px 42px rgba(157, 243, 111, 0.14)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
  --grid-x: rgba(245, 246, 239, 0.2);
  --grid-y: rgba(245, 246, 239, 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle, var(--grid-x) 0 1px, transparent 1.15px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Noto Sans JP", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body[data-theme="panel"] {
  color-scheme: dark;
  --bg: #0d0f0e;
  --surface: #151817;
  --ink: #f5f6ef;
  --muted: #a9afa8;
  --line: #333836;
  --accent: #9df36f;
  --accent-strong: #c5ff91;
  --signal: #9df36f;
  --control-bg: rgba(21, 24, 23, 0.9);
  --control-active: #9df36f;
  --control-active-text: #0b0d0c;
  --hover: #1b201e;
  --radius: 2px;
  --product-filter: drop-shadow(0 20px 42px rgba(157, 243, 111, 0.14)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
  --grid-x: rgba(245, 246, 239, 0.2);
  --grid-y: rgba(245, 246, 239, 0.03);
}

body[data-theme="graphite"] {
  color-scheme: dark;
  --bg: #111214;
  --surface: #1a1c1f;
  --ink: #f0f2f0;
  --muted: #a1a8aa;
  --line: #34383c;
  --accent: #d7dde0;
  --accent-strong: #ffffff;
  --control-bg: rgba(26, 28, 31, 0.92);
  --control-active: #d7dde0;
  --control-active-text: #111214;
  --hover: #22262a;
  --radius: 2px;
  --product-filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.52));
  --grid-x: rgba(215, 221, 224, 0.2);
  --grid-y: rgba(215, 221, 224, 0.025);
}

body[data-theme="titanium"] {
  color-scheme: light;
  --bg: #d9dde0;
  --surface: #f7f8f8;
  --ink: #15191c;
  --muted: #5d666b;
  --line: #aeb8be;
  --accent: #2f6f8f;
  --accent-strong: #204f68;
  --control-bg: rgba(247, 248, 248, 0.86);
  --control-active: #15191c;
  --control-active-text: #f7f8f8;
  --hover: #ffffff;
  --radius: 2px;
  --product-filter: drop-shadow(0 20px 34px rgba(21, 25, 28, 0.22));
  --grid-x: rgba(21, 25, 28, 0.24);
  --grid-y: rgba(47, 111, 143, 0.035);
}

body[data-theme="slate"] {
  color-scheme: dark;
  --bg: #11181f;
  --surface: #17222b;
  --ink: #eff6f8;
  --muted: #a6b4ba;
  --line: #31404a;
  --accent: #7ec8e3;
  --accent-strong: #b9eaff;
  --control-bg: rgba(23, 34, 43, 0.9);
  --control-active: #7ec8e3;
  --control-active-text: #0b1419;
  --hover: #1d2b36;
  --radius: 2px;
  --product-filter: drop-shadow(0 20px 40px rgba(126, 200, 227, 0.13)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
  --grid-x: rgba(126, 200, 227, 0.22);
  --grid-y: rgba(239, 246, 248, 0.025);
}

body[data-theme="blueprint"] {
  color-scheme: dark;
  --bg: #071629;
  --surface: #0d2035;
  --ink: #edf7ff;
  --muted: #a6bfd2;
  --line: #29425c;
  --accent: #73c7ff;
  --accent-strong: #a9ddff;
  --control-bg: rgba(13, 32, 53, 0.9);
  --control-active: #73c7ff;
  --control-active-text: #071629;
  --hover: #122b45;
  --radius: 0;
  --product-filter: drop-shadow(0 18px 42px rgba(115, 199, 255, 0.14)) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.42));
  --grid-x: rgba(115, 199, 255, 0.28);
  --grid-y: rgba(237, 247, 255, 0.035);
}

body[data-theme="circuit"] {
  color-scheme: dark;
  --bg: #06130f;
  --surface: #0d1d17;
  --ink: #edf9f4;
  --muted: #9db5aa;
  --line: #244137;
  --accent: #43f2bd;
  --accent-strong: #98ffe0;
  --control-bg: rgba(13, 29, 23, 0.9);
  --control-active: #43f2bd;
  --control-active-text: #06130f;
  --hover: #112820;
  --radius: 2px;
  --product-filter: drop-shadow(0 20px 42px rgba(67, 242, 189, 0.13)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42));
  --grid-x: rgba(67, 242, 189, 0.26);
  --grid-y: rgba(237, 249, 244, 0.025);
}

body[data-theme="polar"] {
  color-scheme: light;
  --bg: #edf3f6;
  --surface: #fbfdfe;
  --ink: #10202a;
  --muted: #5f6f78;
  --line: #c8d5dc;
  --accent: #1b78a0;
  --accent-strong: #135a78;
  --control-bg: rgba(251, 253, 254, 0.88);
  --control-active: #10202a;
  --control-active-text: #fbfdfe;
  --hover: #ffffff;
  --radius: 2px;
  --product-filter: drop-shadow(0 18px 32px rgba(16, 32, 42, 0.18));
  --grid-x: rgba(27, 120, 160, 0.24);
  --grid-y: rgba(16, 32, 42, 0.025);
}

body[data-theme="carbon"] {
  color-scheme: dark;
  --bg: #050607;
  --surface: #101214;
  --ink: #f2f5f5;
  --muted: #99a1a3;
  --line: #2b3033;
  --accent: #b8c3c7;
  --accent-strong: #f2f5f5;
  --control-bg: rgba(16, 18, 20, 0.92);
  --control-active: #b8c3c7;
  --control-active-text: #050607;
  --hover: #171a1d;
  --radius: 0;
  --product-filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.58));
  --grid-x: rgba(242, 245, 245, 0.2);
  --grid-y: rgba(184, 195, 199, 0.025);
}

a {
  color: inherit;
  text-decoration: none;
}

.theme-switcher {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(var(--hero-max), calc(100% - 32px));
  margin: 10px auto 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--control-bg);
  backdrop-filter: blur(14px);
}

.theme-switcher button {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: calc(var(--radius) + 1px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--control-active);
  color: var(--control-active-text);
}

.hero {
  padding: clamp(32px, 6vw, 64px) 20px 18px;
  text-align: left;
}

.hero-copy {
  max-width: var(--hero-max);
  margin: 0 auto;
}

h1,
p {
  margin-block-start: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.subhead {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0;
  padding: 5px 8px 4px;
  border-radius: var(--radius);
  background: var(--control-active);
  color: var(--control-active-text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.product-image {
  display: block;
  width: var(--product-width);
  height: auto;
  margin: clamp(18px, 4vw, 30px) auto 0;
  animation: productReveal 2500ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
  filter: var(--product-filter);
  transform-origin: 50% 58%;
  will-change: opacity, transform, filter;
}

@keyframes productReveal {
  from {
    opacity: 0;
    transform: translateY(78px) scale(0.94);
    filter: blur(5px) saturate(0.96) var(--product-filter);
  }

  58% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: var(--product-filter);
  }
}

.page-content {
  width: min(var(--hero-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 2px 0 50px;
}

.content-section {
  padding: 0 0 44px;
}

.action-list {
  display: grid;
  gap: 7px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.46fr) minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.action-row:hover {
  border-color: var(--accent);
  background: var(--hover);
}

.action-copy {
  display: contents;
  min-width: 0;
}

.action-title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.action-description {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.site-footer {
  padding: 0 20px 28px;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .theme-switcher {
    width: min(430px, calc(100% - 24px));
    margin-top: 10px;
  }

  .theme-switcher button {
    min-height: 31px;
    font-size: 0.61rem;
  }

  .hero {
    padding-top: 30px;
  }

  .product-image {
    width: min(72vw, 285px);
  }

  .action-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-image {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
