:root {
  --ink: #151515;
  --muted: #5f6672;
  --paper: #f5f2e8;
  --card: rgba(255, 255, 255, 0.85);
  --line: rgba(21, 21, 21, 0.1);
  --acid: #c8fb2d;
  --accent: #0e79e6;
  --accent-soft: rgba(14, 121, 230, 0.12);
  --shadow: 0 24px 80px rgba(24, 24, 24, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 251, 45, 0.8), transparent 26%),
    radial-gradient(circle at top right, rgba(14, 121, 230, 0.14), transparent 20%),
    linear-gradient(180deg, #f8f6ef 0%, #ece7da 100%);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(247, 245, 238, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 48px rgba(18, 18, 18, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand img {
  width: 112px;
  border-radius: 12px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  position: relative;
  padding: 40px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 251, 45, 0.35), transparent 70%);
  pointer-events: none;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.section h2,
.hero h1 {
  margin: 14px 0 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 28px;
  padding-top: 56px;
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  max-width: 11ch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text,
.section-text,
.story-panel p,
.version-panel p,
.requirement-card p,
.product-card p,
.gallery-card figcaption,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions,
.signal-strip,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.version-chip:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: var(--acid);
  color: var(--ink);
}

.button.tertiary {
  background: rgba(21, 21, 21, 0.08);
  color: var(--ink);
}

.signal-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.visual-main {
  height: 100%;
}

.visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating {
  position: absolute;
  max-width: 250px;
  padding: 18px;
}

.stat-callout {
  left: -14px;
  bottom: 26px;
  background: linear-gradient(180deg, var(--acid), #efffb4);
}

.stat-callout strong,
.offset strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
  line-height: 1;
}

.stat-callout span,
.stat-callout small,
.offset p {
  color: rgba(21, 21, 21, 0.8);
}

.offset {
  top: 34px;
  right: -18px;
  background: white;
}

.stats-grid,
.requirements-grid,
.brand-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card,
.mini-card,
.requirement-card,
.brand-card,
.contact-card,
.product-card,
.story-panel,
.gallery-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-panel {
  min-height: 280px;
  overflow: hidden;
}

.copy-panel,
.process-panel {
  padding: 24px;
}

.check-list,
.mini-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.mini-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.check-list li::before,
.mini-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.media-panel img,
.version-side img,
.gallery-card img,
.product-card img,
.contact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.process-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--acid);
  font-weight: 900;
}

.versions .section-heading {
  margin-bottom: 18px;
}

.version-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.version-chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.version-chip.is-active {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

.version-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.version-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.version-panel-heading {
  margin-bottom: 18px;
}

.version-panel-heading h3,
.product-card h3,
.contact-card h3,
.requirement-card h3,
.mini-card h4 {
  margin: 0 0 10px;
}

.version-grid,
.product-grid,
.gallery-grid,
.category-metrics,
.faq-list {
  display: grid;
  gap: 16px;
}

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

.mini-card {
  padding: 20px;
}

.version-side {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.version-side img {
  aspect-ratio: 5 / 6;
  border-radius: 20px;
}

.version-side p,
code {
  color: var(--muted);
}

code {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(21, 21, 21, 0.05);
  overflow-wrap: anywhere;
}

.category-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.metric-card span {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 16px;
  align-items: center;
}

.product-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

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

.faq-item {
  padding: 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.requirement-card {
  padding: 22px;
}

.gallery-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  aspect-ratio: 4 / 4;
}

.gallery-card.wide img {
  aspect-ratio: 4 / 3;
}

.gallery-card figcaption {
  padding: 16px;
}

.brand-grid {
  align-items: stretch;
}

.brand-card {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 16px;
}

.brand-card img {
  max-height: 70px;
  object-fit: contain;
}

.contact-card {
  padding: 18px;
}

.contact-card img {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  margin-bottom: 14px;
}

.contact-card a {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 1120px) {
  .hero,
  .version-layout,
  .gallery-grid,
  .story-grid,
  .product-grid,
  .faq-list,
  .requirements-grid,
  .stats-grid,
  .brand-grid,
  .contact-grid,
  .category-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .topbar {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 12px;
  }

  .section {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .stats-grid,
  .story-grid,
  .version-layout,
  .version-grid,
  .product-grid,
  .faq-list,
  .requirements-grid,
  .gallery-grid,
  .brand-grid,
  .contact-grid,
  .category-metrics {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .floating {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

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

  .product-card img {
    aspect-ratio: 4 / 3;
  }

  .share-row {
    align-items: stretch;
  }

  .share-row code,
  .share-row button {
    width: 100%;
  }
}
