:root {
  --bg: #fbfbfd;
  --bg-subtle: #f3f5f8;
  --surface: #ffffff;
  --ink: #0b0f19;
  --ink-secondary: #4e5969;
  --ink-muted: #86909c;
  --line: rgba(11, 15, 25, 0.08);
  --line-strong: rgba(11, 15, 25, 0.14);
  --sky: #0ea5e9;
  --sky-bright: #38bdf8;
  --sky-soft: rgba(14, 165, 233, 0.09);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 24px 64px -20px rgba(11, 15, 25, 0.10), 0 2px 8px rgba(11, 15, 25, 0.04);
  --shadow-card: 0 12px 36px -16px rgba(11, 15, 25, 0.07), 0 1px 2px rgba(11, 15, 25, 0.03);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(11, 15, 25, 0.10);
}

.brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease);
}

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

.topbar-cta {
  font-size: 13px;
  font-weight: 560;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.topbar-cta:hover {
  background: #1c2434;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 88px 0 96px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  box-shadow: 0 1px 3px rgba(11, 15, 25, 0.03);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-bright);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.eyebrow-pill .sep {
  color: var(--ink-muted);
}

.hero-title {
  margin: 26px 0 18px;
  font-size: clamp(2.65rem, 6.2vw, 4.65rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.hero-sub {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
  color: var(--ink-secondary);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 560;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(11, 15, 25, 0.42);
}

.btn-primary:hover {
  background: #1a2233;
  transform: translateY(-1.5px);
  box-shadow: 0 16px 30px -12px rgba(11, 15, 25, 0.48);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(11, 15, 25, 0.28);
  transform: translateY(-1.5px);
}

.btn-sky {
  background: var(--sky);
  color: #ffffff;
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

.btn-sky:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  height: 50px;
  font-size: 15px;
}

.btn-arrow {
  font-size: 14px;
  opacity: 0.78;
}

/* Cinema Hero Showcase */
.cinema-frame {
  width: 100%;
  margin: 56px 0 0;
}

.cinema-bezel {
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #eef1f6 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.cinema-bezel video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 19px;
  background: #0c0e14;
}

.cinema-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.caption-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.caption-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* Sections */
.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-tinted {
  background: var(--bg-subtle);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Bento Gallery */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}

.bento-wide { grid-column: span 8; }
.bento-narrow { grid-column: span 4; }
.bento-medium { grid-column: span 5; }
.bento-large { grid-column: span 7; }

.bento-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.theme-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.theme-btn {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.theme-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(11, 15, 25, 0.08);
}

.media-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
}

.media-desktop {
  aspect-ratio: 16 / 10;
  background: #0e1117;
}

.media-desktop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.media-desktop img.is-visible {
  opacity: 1;
}

.media-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #f4f6fa 0%, #eaedf3 100%);
  flex: 1;
}

.media-phone img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(11, 15, 25, 0.14);
  object-fit: contain;
}

.media-tablet {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #f4f6fa 0%, #eaedf3 100%);
  flex: 1;
}

.media-tablet img {
  width: 100%;
  max-height: 460px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(11, 15, 25, 0.12);
  object-fit: contain;
}

/* Swiss Grid Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.principle {
  padding: 32px 26px 8px 0;
  border-right: 1px solid var(--line);
  margin-right: 26px;
}

.principle:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.principle-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--sky);
  margin-bottom: 18px;
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

/* Download Atelier */
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.release-facts {
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-facts dt {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.release-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.invite-banner {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(14, 165, 233, 0.22);
  box-shadow: 0 8px 24px -16px rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.invite-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 620;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.invite-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 640;
}

.invite-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Download Console Card */
.download-console {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.platform-tab {
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 560;
  color: var(--ink-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.platform-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(11, 15, 25, 0.08);
}

.console-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.console-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.console-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.file-size {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.variant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.variant-row.is-hidden {
  display: none;
}

.variant-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  font-weight: 520;
  color: var(--ink-secondary);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.variant-chip.is-active {
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--sky-soft);
  color: var(--sky);
}

.mirror-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 560;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

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

.mirror-pill {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.mirror-pill span {
  font-size: 13.5px;
  font-weight: 600;
}

.mirror-pill small {
  font-size: 11px;
  color: var(--ink-muted);
}

.mirror-pill.is-active {
  border-color: var(--sky);
  background: var(--sky-soft);
}

.mirror-pill.is-active span,
.mirror-pill.is-active small {
  color: var(--sky);
}

.platform-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.checksum-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.checksum-box summary {
  cursor: pointer;
  font-weight: 550;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checksum-box summary::-webkit-details-marker {
  display: none;
}

.checksum-box summary::after {
  content: "+";
  font-size: 15px;
  color: var(--ink-muted);
}

.checksum-box[open] summary::after {
  content: "−";
}

.checksum-content {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checksum-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checksum-row span {
  font-size: 11px;
  color: var(--ink-muted);
}

.checksum-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  word-break: break-all;
  color: var(--ink);
}

.checksum-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--sky);
}

.text-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--ink-secondary);
}

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

/* Subtle Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .bento-wide, .bento-narrow, .bento-medium, .bento-large {
    grid-column: span 12;
  }
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .principle {
    border-right: 0;
    margin-right: 0;
    padding: 24px 0 0;
  }
  .download-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }
  .nav {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .br-desktop {
    display: none;
  }
  .section {
    padding: 76px 0;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .invite-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mirror-pills {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
