:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --panel: #ffffff;
  --dark: #050507;
  --blue: #0071e3;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-elevated {
  background: rgba(245, 245, 247, 0.9);
  border-bottom-color: var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  height: 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: rgba(29, 29, 31, 0.76);
  font-size: 13px;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
}

.hero {
  min-height: 96vh;
  padding: 96px clamp(20px, 5vw, 80px) 44px;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  overflow: hidden;
}

.section-dark {
  background: radial-gradient(circle at 72% 48%, #22232a 0%, #111116 38%, #050507 74%);
  color: #f5f5f7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.feature-panel h2,
.buy-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
  font-weight: 750;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(50px, 8vw, 104px);
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 21px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}

.button-light {
  color: #000;
  background: #f5f5f7;
}

.button-ghost {
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.button-dark {
  color: #fff;
  background: #1d1d1f;
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.keyboard {
  --case: #d7d8dc;
  --case-deep: #a6a8af;
  --key: #fbfbfd;
  --key-alt: #eceef2;
  --accent: #0071e3;
  width: min(880px, 86vw);
  aspect-ratio: 2.85 / 1;
  padding: 2.6%;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--case), var(--case-deep));
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.38), inset 0 -12px 26px rgba(0, 0, 0, 0.14), inset 0 4px 8px rgba(255, 255, 255, 0.42);
}

.keyboard-hero {
  transform: rotateX(58deg) rotateZ(-9deg) translateY(10px);
}

.keyboard-product {
  width: min(760px, 88vw);
  transform: rotateX(54deg) rotateZ(-5deg);
}

.keyboard-deck {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 2.15%;
}

.keyboard-deck span {
  border-radius: 9px;
  background: linear-gradient(180deg, var(--key), var(--key-alt));
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.17), inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.keyboard-deck span:nth-child(12n + 1),
.keyboard-deck span:nth-child(12n + 12),
.keyboard-deck span:nth-child(44),
.keyboard-deck span:nth-child(45) {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent), #000 18%));
}

.theme-classic {
  --case: #e5e6ea;
  --case-deep: #aaadb7;
  --key: #fcfcfd;
  --key-alt: #e9eaee;
  --accent: #0071e3;
}

.theme-industrial {
  --case: #70747c;
  --case-deep: #45484f;
  --key: #e0e1df;
  --key-alt: #b8bab8;
  --accent: #ffd45c;
}

.theme-time {
  --case: #c4c8ce;
  --case-deep: #848a93;
  --key: #f5f0e7;
  --key-alt: #b8c2ca;
  --accent: #e0503d;
}

.theme-gundam {
  --case: #f3f4f6;
  --case-deep: #b8bec8;
  --key: #ffffff;
  --key-alt: #e0e6f3;
  --accent: #e52d32;
}

.theme-rgb {
  --case: #15181f;
  --case-deep: #090b10;
  --key: #2a2e39;
  --key-alt: #141821;
  --accent: #00d4ff;
}

.theme-rgb .keyboard-deck span:nth-child(5n) {
  background: linear-gradient(180deg, #b967ff, #4a62ff);
}

.theme-rgb .keyboard-deck span:nth-child(7n) {
  background: linear-gradient(180deg, #37f7ae, #00a7ff);
}

.intro {
  padding: clamp(70px, 10vw, 140px) clamp(24px, 8vw, 150px);
  text-align: center;
}

.intro p {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 720;
}

.product-stage,
.comparison,
.timeline-section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 80px);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.feature-panel h2,
.buy-section h2 {
  font-size: clamp(36px, 5.5vw, 72px);
}

.series-tabs {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #424245;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.showcase {
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: 34px;
  background: #fff;
  overflow: hidden;
}

.showcase h3 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.spec-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #424245;
  font-weight: 650;
}

.showcase-visual {
  min-height: 460px;
  display: grid;
  place-items: center;
  perspective: 980px;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.feature-panel {
  min-height: 520px;
  padding: clamp(34px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-light {
  background: linear-gradient(180deg, #ffffff, #eceef2);
}

.panel-dark {
  background: linear-gradient(180deg, #202124, #050507);
  color: #f5f5f7;
}

.feature-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.panel-dark p:not(.eyebrow) {
  color: rgba(245, 245, 247, 0.72);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-height: 330px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mini-board {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 14%, rgba(255, 255, 255, 0.42) 14% 18%, transparent 18%),
    linear-gradient(135deg, var(--case), var(--case-deep));
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.14);
}

.product-card h3 {
  margin: 22px 0 8px;
  font-size: 24px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.timeline-section {
  background: #fff;
}

.timeline {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 750;
}

.timeline p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
}

.buy-section {
  min-height: 460px;
  padding: clamp(50px, 8vw, 110px) clamp(24px, 8vw, 150px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #f5f5f7;
}

.buy-section p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1020px) {
  .hero,
  .showcase,
  .split-feature,
  .buy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buy-section {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .series-tabs {
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
  }

  .tab {
    border-radius: 18px;
  }

  .showcase {
    border-radius: 24px;
  }

  .showcase-visual {
    min-height: 300px;
  }

  .keyboard {
    border-radius: 18px;
  }

  .keyboard-deck span {
    border-radius: 5px;
  }

  .split-feature {
    padding: 0;
    gap: 0;
  }

  .feature-panel {
    min-height: 420px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    flex-direction: column;
  }
}
