:root {
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-stage: #0b0c10;
  --bg-stage-elevated: #16171d;

  --ink: #1d1d1f;
  --ink-muted: #515154;
  --ink-on-dark: #f5f5f7;
  --ink-on-dark-muted: #a1a1a6;

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-on-dark: #2997ff;

  --hairline: rgba(29, 29, 31, 0.1);
  --hairline-dark: rgba(245, 245, 247, 0.14);

  --text-heading: clamp(1.75rem, 3vw, 2.5rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --container-max: 1120px;
  --stage-max: 1160px;
  --header-height: 52px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-medium: 220ms;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--ink);
  color: var(--bg);
  border-radius: 980px;
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-medium) var(--ease-out),
              border-color var(--duration-medium) var(--ease-out),
              backdrop-filter var(--duration-medium) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline);
}

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

.brand-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.mobile-drawer {
  display: none;
}

/* Hero */
.hero {
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background-color: var(--bg);
}

.hero-header {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 18px auto 0;
  max-width: 65ch;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-muted);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  border: 0;
  border-radius: 980px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.985);
}

.hero-status {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
}

.hero-stage {
  width: min(var(--stage-max), calc(100% - 48px));
  margin: clamp(32px, 4vw, 48px) auto 0;
}

.frame-16x10 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 64px rgba(29, 29, 31, 0.1);
}

.frame-16x10 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared Section Rhythm */
section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section {
  padding-block: clamp(72px, 8vw, 120px);
}

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

.section-dark {
  background-color: var(--bg-stage);
  color: var(--ink-on-dark);
}

.section-header {
  max-width: 720px;
}

.section-header-centered {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 14px 0 0;
  max-width: 65ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.section-header-centered .section-lead {
  margin-inline: auto;
}

.section-dark .section-lead {
  color: var(--ink-on-dark-muted);
}

/* Product Pillars */
.pillar-list {
  margin-top: clamp(40px, 5vw, 64px);
}

.pillar-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--hairline);
}

.pillar-row:last-child {
  padding-bottom: 0;
}

.pillar-row.is-reversed .pillar-copy {
  order: 2;
}

.pillar-row.is-reversed .pillar-media {
  order: 1;
}

.status-label {
  margin: 0 0 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
}

.pillar-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pillar-desc {
  margin: 12px 0 0;
  max-width: 65ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.pillar-media .frame-16x10 {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(29, 29, 31, 0.08);
}

.workbench-controls {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-start;
}

.segmented-control-light {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 980px;
  background-color: #e8e8ed;
}

.tab-btn-light {
  padding: 7px 14px;
  border: 0;
  border-radius: 980px;
  background-color: transparent;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.tab-btn-light:hover {
  color: var(--ink);
}

.tab-btn-light.is-active {
  background-color: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(29, 29, 31, 0.1);
}

.workbench-stage-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  transition: transform var(--duration-fast) var(--ease-out);
}

.workbench-stage-trigger .frame-16x10 {
  transition: border-color var(--duration-fast) var(--ease-out);
}

.workbench-stage-trigger:hover .frame-16x10 {
  border-color: rgba(29, 29, 31, 0.24);
}

.workbench-stage-trigger .stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workbench-caption {
  margin: 12px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* World Showcase (Dark Cinema Stage) */
.showcase-controls {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 980px;
  background-color: var(--bg-stage-elevated);
  border: 1px solid var(--hairline-dark);
}

.tab-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 980px;
  background-color: transparent;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.tab-btn:hover {
  color: var(--ink-on-dark);
}

.tab-btn.is-active {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.showcase-stage {
  margin-top: 32px;
}

.stage-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  overflow: hidden;
  background-color: #050608;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.stage-trigger:hover {
  border-color: rgba(245, 245, 247, 0.3);
}

.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity var(--duration-medium) var(--ease-out);
}

.stage-image.is-fading {
  opacity: 0.35;
}

.stage-meta {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.showcase-caption {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.showcase-caption strong {
  color: var(--ink-on-dark);
  font-weight: 600;
  margin-right: 10px;
}

.showcase-counter {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-on-dark-muted);
}

.thumb-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.thumb-btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink-on-dark-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.thumb-btn:hover,
.thumb-btn.is-active {
  color: var(--ink-on-dark);
}

.thumb-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline-dark);
  opacity: 0.72;
  transition: opacity var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.thumb-btn:hover .thumb-frame,
.thumb-btn.is-active .thumb-frame {
  opacity: 1;
  border-color: rgba(245, 245, 247, 0.52);
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Pricing / Business Model */
.pricing-grid {
  margin-top: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pricing-tier {
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 20px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--hairline);
}

.pricing-tier-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.pricing-title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.pricing-summary {
  margin: 8px 0 0;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.pricing-items {
  margin: 20px 0 0;
  padding-left: 20px;
  font-size: var(--text-body);
  color: var(--ink);
}

.pricing-items li + li {
  margin-top: 10px;
}

/* Company & Footer */
.site-footer {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: 40px;
}

.footer-heading {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.footer-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.footer-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.7;
}

.footer-meta + .footer-meta {
  margin-top: 6px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.copyright {
  margin: 0;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

/* Lightbox Dialog */
.lightbox {
  max-width: min(1240px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--hairline-dark);
  border-radius: 18px;
  background-color: var(--bg-stage);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.lightbox::backdrop {
  background-color: rgba(11, 12, 16, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline-dark);
}

.lightbox-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-on-dark);
}

.lightbox-close {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--hairline-dark);
  border-radius: 980px;
  background-color: transparent;
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-body img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
}

/* Legal Pages */
.legal-main {
  padding-block: clamp(48px, 6vw, 88px);
}

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

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-title {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 12px 0 0;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.legal-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.legal-section p,
.legal-section ul {
  margin: 0;
  max-width: 65ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.legal-section ul {
  margin-top: 10px;
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section p + p {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .pillar-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pillar-row.is-reversed .pillar-copy,
  .pillar-row.is-reversed .pillar-media {
    order: initial;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .container,
  .hero-stage,
  .legal-container {
    width: calc(100% - 32px);
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 95;
    padding: 16px 20px 24px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
  }

  .mobile-drawer.is-open {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mobile-drawer .nav-link {
    font-size: var(--text-body);
    padding-block: 6px;
  }

  .frame-16x10,
  .stage-trigger,
  .workbench-stage-trigger {
    border-radius: 14px;
  }

  .segmented-control,
  .segmented-control-light {
    border-radius: 14px;
  }

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

  .stage-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .nav-link,
  .btn-primary,
  .tab-btn,
  .tab-btn-light,
  .stage-trigger,
  .workbench-stage-trigger,
  .workbench-stage-trigger .frame-16x10,
  .stage-image,
  .thumb-btn,
  .thumb-frame,
  .footer-link,
  .lightbox-close {
    transition: none;
  }
}
