:root {
  color-scheme: dark;
  --bg: #080909;
  --panel: #141615;
  --panel-strong: #1b1e1c;
  --text: #f4f1e8;
  --muted: #a8a095;
  --line: rgba(244, 241, 232, 0.16);
  --gold: #f0b84b;
  --gold-soft: rgba(240, 184, 75, 0.16);
  --cyan: #18d1d1;
  --green: #36d987;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: rgba(8, 9, 9, 0.6);
  backdrop-filter: blur(16px);
}

.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 9, 0.86);
}

.brand,
.nav-links,
.hero-actions,
.control-row,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(240, 184, 75, 0.8);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.86rem;
  box-shadow: 0 0 28px rgba(240, 184, 75, 0.22);
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.header-action:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-action {
  min-width: max-content;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 72px) 72px;
}

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

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

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 9, 9, 0.95) 0%, rgba(8, 9, 9, 0.82) 36%, rgba(8, 9, 9, 0.28) 72%),
    linear-gradient(180deg, rgba(8, 9, 9, 0.08) 0%, rgba(8, 9, 9, 0.38) 72%, #080909 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(3.1rem, 13vw, 11rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 52px rgba(240, 184, 75, 0.28);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.quote-block {
  max-width: 760px;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.quote-block blockquote {
  margin-bottom: 10px;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
}

.quote-block figcaption,
.hero-lead,
.section-heading p,
.note-card p,
.manifesto-section p,
.site-footer {
  color: var(--muted);
}

.quote-block figcaption {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.control-row button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.control-row button::after {
  position: absolute;
  inset: -1px;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.28) 42%, transparent 72%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.button {
  padding: 0 18px;
}

.button:hover,
.control-row button:hover {
  transform: translateY(-2px);
}

.control-row button:active {
  transform: translateY(0) scale(0.98);
}

.control-row button.is-clicked {
  animation: button-click-pop 320ms ease-out;
}

.control-row button.is-clicked::after {
  animation: button-click-sheen 320ms ease-out;
}

.button.primary,
.control-row button[data-action="set"] {
  border-color: rgba(240, 184, 75, 0.86);
  background: var(--gold);
  color: #11100c;
}

.button.secondary,
.control-row button {
  background: rgba(244, 241, 232, 0.05);
  color: var(--text);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.calibrator-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 92px 0;
}

.section-heading p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.calibrator {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 184, 75, 0.12), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
}

.meter-head strong {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.meter {
  overflow: hidden;
  height: 18px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.meter span {
  display: block;
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 420ms ease;
}

.reality-line {
  min-height: 36px;
  margin: 26px 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.control-row {
  flex-wrap: wrap;
  gap: 12px;
}

.control-row button {
  min-width: 126px;
  padding: 0 15px;
}

@keyframes button-click-pop {
  0% {
    box-shadow: 0 0 0 rgba(240, 184, 75, 0);
    transform: translateY(0) scale(1);
  }

  38% {
    border-color: rgba(240, 184, 75, 0.95);
    box-shadow: 0 0 0 4px rgba(240, 184, 75, 0.16), 0 0 26px rgba(240, 184, 75, 0.22);
    transform: translateY(0) scale(0.965);
  }

  100% {
    box-shadow: 0 0 0 rgba(240, 184, 75, 0);
    transform: translateY(0) scale(1);
  }
}

@keyframes button-click-sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .control-row button,
  .meter span {
    transition: none;
  }

  .control-row button.is-clicked,
  .control-row button.is-clicked::after {
    animation: none;
  }
}

.notes-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0 92px;
}

.note-card {
  min-height: 216px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.note-card span {
  display: block;
  margin-bottom: 56px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.note-card p {
  margin-bottom: 0;
}

.manifesto-section {
  padding: 86px 0 100px;
  border-top: 1px solid var(--line);
}

.manifesto-section p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-media {
    object-position: 64% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 9, 9, 0.96), rgba(8, 9, 9, 0.76)),
      linear-gradient(180deg, rgba(8, 9, 9, 0.06), rgba(8, 9, 9, 0.86));
  }

  .calibrator-section,
  .notes-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-action {
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding: 104px 20px 58px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5.4rem);
    line-height: 0.92;
  }

  .quote-block {
    padding-left: 15px;
  }

  .section-shell {
    width: min(100% - 32px, 1120px);
  }

  .calibrator-section,
  .manifesto-section {
    padding: 66px 0;
  }

  .control-row button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(100% - 32px, 1120px);
    padding: 18px 0;
  }
}
