:root {
  --brand-primary: #f7c045;
  --brand-primary-dark: #d4af37;
  --brand-highlight: #ffeb99;
  --brand-shadow: #8b5a2b;
  --brand-shadow-dark: #5e3a1a;
  --color-primary: var(--brand-primary);
  --color-primary-strong: var(--brand-shadow-dark);
  --color-accent: var(--brand-shadow);
  --color-accent-soft: #fff6da;
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f4f8;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-soft: #64748b;
  --color-border: #cbd5e1;
  --color-border-soft: #e2e8f0;
  --color-focus: var(--brand-shadow-dark);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-card: 8px;
  --radius-control: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 42%, #f4f6f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(247, 192, 69, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 192, 69, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

a {
  color: inherit;
}

svg {
  display: block;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--brand-shadow-dark);
  background: var(--color-primary);
  border-radius: var(--radius-control);
  font-weight: 700;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-strong);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--color-primary-strong);
  background: var(--color-accent-soft);
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a,
.author-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--color-text-muted);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.author-link:hover {
  color: var(--color-primary-strong);
  background: var(--color-accent-soft);
}

.author-link {
  justify-content: center;
  color: var(--color-text-soft);
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.hero-section {
  position: relative;
  height: min(720px, calc(100svh - 132px));
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 64px;
  background: #111827;
}

.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 24, 18, 0.72) 40%, rgba(94, 58, 26, 0.18) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16) 0%, rgba(94, 58, 26, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-content .eyebrow {
  color: var(--brand-highlight);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 640px;
  margin: 0;
  color: #ffffff;
  font-size: 60px;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.75;
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
  margin-top: 34px;
}

.action-card {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  touch-action: manipulation;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-card-primary {
  color: var(--brand-shadow-dark);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.action-card-primary .action-icon {
  background: rgba(94, 58, 26, 0.14);
}

.action-card-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.action-card-secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.action-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.action-card-secondary .action-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.action-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-text {
  display: grid;
  gap: 2px;
}

.action-text strong {
  font-size: 18px;
  line-height: 1.3;
}

.action-text span {
  color: inherit;
  opacity: 0.84;
  font-size: 14px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  margin-left: 8px;
  content: "↓";
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 650px;
  margin-top: 18px;
}

.hero-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.section-block {
  padding: 82px 0;
}

.section-band {
  padding: 82px 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.62);
}

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

.section-heading-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.boundary-copy h2,
.updates-layout h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.boundary-copy p,
.updates-layout p {
  margin: 14px 0 0;
  color: var(--color-text-muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scenario-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.scenario-card-emphasis {
  border-color: var(--brand-primary);
  box-shadow: 0 20px 42px rgba(139, 90, 43, 0.14);
}

.scenario-card-invited {
  background: #f8fafc;
  box-shadow: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.scenario-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-primary-strong);
  background: var(--color-accent-soft);
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
}

.scenario-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--brand-shadow-dark);
  background: var(--brand-highlight);
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-muted {
  color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.stage-label {
  margin: 0 0 6px;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 750;
}

.scenario-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.25;
}

.scenario-card > p:not(.stage-label) {
  margin: 14px 0 0;
  color: var(--color-text-muted);
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.feature-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--color-accent);
  border-radius: 50%;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  touch-action: manipulation;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--brand-shadow-dark);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.button-primary:hover {
  background: var(--brand-primary-dark);
}

.button-outline {
  color: var(--color-primary-strong);
  background: #ffffff;
  border-color: var(--brand-primary-dark);
}

.button-outline:hover {
  background: var(--color-accent-soft);
}

.button-muted {
  color: #334155;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.button-muted:hover {
  background: #cbd5e1;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.timeline-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--color-primary-strong);
  background: var(--color-accent-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.timeline h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
}

.timeline p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
}

.boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.boundary-cards {
  display: grid;
  gap: 16px;
}

.boundary-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.boundary-card h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 21px;
}

.boundary-card p {
  margin: 10px 0 0;
  color: var(--color-text-muted);
}

.updates-section {
  padding-bottom: 72px;
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
}

.update-notes {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 22px;
}

.update-notes span {
  display: block;
  padding: 10px 12px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-control);
  font-size: 14px;
}

.qr-card {
  width: 280px;
  margin: 0;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.qr-card img {
  width: 100%;
  max-width: 230px;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
}

.qr-card figcaption {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  color: var(--color-text-muted);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 14px;
}

.footer-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--color-primary-strong);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}

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

@media (max-width: 980px) {
  .workflow-layout,
  .boundary-layout,
  .updates-layout {
    grid-template-columns: 1fr;
  }

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

  .updates-layout {
    gap: 28px;
  }

  .qr-card {
    width: min(100%, 280px);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .hero-section {
    padding: 48px 0 56px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.12;
  }

  .hero-lede {
    font-size: 17px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 88px;
  }

  .section-block,
  .section-band {
    padding: 60px 0;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2,
  .boundary-copy h2,
  .updates-layout h2 {
    font-size: 30px;
  }

  .scenario-card {
    padding: 20px;
  }

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

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .action-card {
    padding: 16px;
  }

  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .scenario-card h3 {
    font-size: 22px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .header-inner {
    min-height: 52px;
  }

  .hero-section {
    height: calc(100svh - 104px);
    min-height: 0;
    padding: 18px 0;
  }

  h1 {
    max-width: 560px;
    font-size: 32px;
    line-height: 1.1;
  }

  .hero-lede {
    max-width: 580px;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin-top: 14px;
  }

  .action-card {
    min-height: 72px;
    padding: 12px;
  }

  .action-icon {
    width: 40px;
    height: 40px;
  }

  .action-text strong {
    font-size: 16px;
  }

  .action-text span {
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 10px;
  }

  .hero-meta span {
    min-height: 30px;
    font-size: 13px;
  }

  .text-link {
    min-height: 44px;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
