:root {
  --bg: #060505;
  --bg-deep: #0d0906;
  --panel: rgba(22, 16, 11, 0.76);
  --panel-strong: rgba(29, 20, 13, 0.9);
  --panel-soft: rgba(18, 13, 9, 0.62);
  --line: rgba(206, 161, 92, 0.18);
  --accent: #d0a35f;
  --accent-soft: #f1cb8d;
  --text: #f7ecdb;
  --text-muted: rgba(247, 236, 219, 0.72);
  --text-faint: rgba(247, 236, 219, 0.48);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(170, 124, 63, 0.16), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(209, 163, 95, 0.1), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(209, 163, 95, 0.08), transparent 30%),
    linear-gradient(180deg, #0c0907 0%, #080707 38%, #050404 100%);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(214, 170, 96, 0.04) 47%, transparent 54%),
    linear-gradient(70deg, transparent 0 45%, rgba(214, 170, 96, 0.03) 52%, transparent 58%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.24) 0 0.8px, transparent 0.9px),
    radial-gradient(circle at 54% 76%, rgba(255, 255, 255, 0.18) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 0.8px);
}

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

code {
  padding: 0.1em 0.38em;
  border: 1px solid rgba(214, 170, 96, 0.18);
  border-radius: 999px;
  background: rgba(214, 170, 96, 0.08);
  color: var(--accent-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95em;
}

button,
a {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.section {
  margin-top: 28px;
}

.site-header,
.hero-copy,
.hero-stage,
.difference-card,
.motion-card,
.assistant-card,
.download-shell,
.workspace-card,
.site-footer {
  background: linear-gradient(180deg, rgba(22, 16, 11, 0.9), rgba(12, 10, 8, 0.72));
  border: 1px solid rgba(214, 170, 96, 0.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 999px;
}

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

.brand-mark {
  position: relative;
  width: 34px;
  height: 26px;
}

.brand-node,
.brand-link {
  position: absolute;
}

.brand-node {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(241, 203, 141, 0.45);
}

.brand-node-a { top: 2px; left: 2px; }
.brand-node-b { top: 14px; left: 14px; }
.brand-node-c { top: 4px; right: 0; }

.brand-link {
  height: 1px;
  background: linear-gradient(90deg, rgba(241, 203, 141, 0.14), rgba(241, 203, 141, 0.84));
  transform-origin: left center;
}

.brand-link-a {
  top: 6px;
  left: 7px;
  width: 16px;
  transform: rotate(34deg);
}

.brand-link-b {
  top: 16px;
  left: 18px;
  width: 12px;
  transform: rotate(-44deg);
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a:hover,
.text-button:hover,
.button-outline:hover {
  color: var(--accent-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(214, 170, 96, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button-solid {
  color: #17120b;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.button-solid:hover {
  box-shadow: 0 10px 24px rgba(209, 163, 95, 0.22);
}

.button-outline {
  background: rgba(255, 255, 255, 0.02);
}

.header-button {
  flex-shrink: 0;
}

.button-block {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-stage,
.download-shell {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 48px 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2.1rem, 4.3vw, 4.4rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
}

.hero-text,
.hero-list li,
.difference-card li,
.motion-card p,
.workspace-card p,
.download-note,
.download-card p,
.footer-copy,
.footer-year {
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  padding: 28px;
  overflow: hidden;
  --tilt-x: 0px;
  --tilt-y: 0px;
}

.gravity-field {
  position: absolute;
  inset: 0;
}

.orbit {
  position: absolute;
  border: 1px solid transparent;
  border-top-color: var(--line);
  border-radius: 999px;
  opacity: 0.9;
  animation: drift 16s ease-in-out infinite;
}

.orbit-a {
  top: 48px;
  left: 12px;
  width: 520px;
  height: 210px;
  transform: rotate(-14deg);
}

.orbit-b {
  top: 154px;
  left: 88px;
  width: 420px;
  height: 140px;
  transform: rotate(8deg);
  animation-delay: -4s;
}

.orbit-c {
  top: 278px;
  left: 28px;
  width: 430px;
  height: 180px;
  transform: rotate(-18deg);
  animation-delay: -8s;
}

.orbit-d {
  top: 410px;
  left: 122px;
  width: 300px;
  height: 110px;
  transform: rotate(12deg);
  animation-delay: -12s;
}

.star {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 16px rgba(241, 203, 141, 0.5);
}

.star-a { top: 104px; left: 114px; }
.star-b { top: 188px; left: 318px; }
.star-c { top: 268px; left: 162px; }
.star-d { top: 380px; left: 332px; }
.star-e { top: 468px; left: 218px; }

.workspace-surface {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid rgba(214, 170, 96, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 11, 8, 0.96), rgba(11, 9, 7, 0.8));
  transform: translate(var(--tilt-x), var(--tilt-y));
}

.surface-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(214, 170, 96, 0.12);
}

.surface-plan,
.surface-chips span,
.mini-label,
.difference-tag,
.motion-index,
.card-kicker,
.download-badge {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-plan,
.mini-label,
.difference-tag,
.motion-index,
.card-kicker {
  color: var(--accent-soft);
  font-size: 0.72rem;
}

.surface-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.surface-chips span {
  padding: 7px 10px;
  border: 1px solid rgba(214, 170, 96, 0.16);
  border-radius: 999px;
  font-size: 0.66rem;
  color: var(--text-faint);
}

.surface-body {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 184px;
  gap: 16px;
  padding: 16px;
}

.surface-sidebar,
.surface-graph,
.paper-pane {
  border: 1px solid rgba(214, 170, 96, 0.12);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.surface-sidebar {
  padding: 16px 14px;
}

.sidebar-item {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.sidebar-item.is-active {
  color: var(--text);
  border: 1px solid rgba(214, 170, 96, 0.18);
  background: rgba(214, 170, 96, 0.08);
}

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

.paper-pane {
  padding: 14px;
}

.paper-tab,
.paper-citation,
.paper-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-tab {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.paper-line {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.paper-line-title {
  width: 74%;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
}

.paper-line-wide { width: 100%; }
.paper-line-mid { width: 82%; }

.paper-highlight {
  background: linear-gradient(90deg, rgba(241, 203, 141, 0.44), rgba(241, 203, 141, 0.12));
}

.paper-citation {
  margin-top: 16px;
  color: #1b150d;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.paper-note {
  margin-top: 16px;
  color: var(--accent-soft);
  border: 1px solid rgba(214, 170, 96, 0.42);
  background: transparent;
}

.surface-graph {
  padding: 14px;
}

.graph-net {
  position: relative;
  height: 180px;
  margin-top: 14px;
}

.graph-link,
.graph-node {
  position: absolute;
}

.graph-link {
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 170, 96, 0.16), rgba(241, 203, 141, 0.88));
  transform-origin: left center;
}

.graph-link-a {
  top: 36px;
  left: 28px;
  width: 80px;
  transform: rotate(32deg);
}

.graph-link-b {
  top: 72px;
  left: 90px;
  width: 62px;
  transform: rotate(-26deg);
}

.graph-link-c {
  top: 116px;
  left: 26px;
  width: 88px;
  transform: rotate(-18deg);
}

.graph-link-d {
  top: 92px;
  left: 54px;
  width: 68px;
  transform: rotate(48deg);
}

.graph-node {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(241, 203, 141, 0.38);
}

.graph-node-a { top: 22px; left: 20px; }
.graph-node-b { top: 66px; left: 102px; }
.graph-node-c { top: 110px; left: 34px; }
.graph-node-d { top: 132px; left: 126px; }
.graph-node-e { top: 88px; left: 60px; }

.graph-caption {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.88rem;
  line-height: 1.55;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: min(252px, calc(100% - 52px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(214, 170, 96, 0.18);
  border-radius: var(--radius-md);
  background: rgba(21, 16, 11, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.floating-card-top {
  top: 36px;
  right: 34px;
}

.floating-card-bottom {
  bottom: 34px;
  left: 34px;
}

.floating-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.floating-card p {
  margin: 8px 0 0;
  color: var(--text-faint);
  line-height: 1.6;
}

.floating-label,
.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-label {
  color: var(--accent-soft);
  font-size: 0.72rem;
}

.section-head {
  max-width: 780px;
  margin-bottom: 18px;
}

.difference-grid,
.motion-grid,
.assistant-grid,
.workspace-grid,
.download-grid,
.download-steps {
  display: grid;
  gap: 18px;
}

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

.difference-card,
.motion-card,
.assistant-card,
.workspace-card,
.download-card {
  border-radius: var(--radius-lg);
}

.difference-card {
  padding: 28px;
}

.difference-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.difference-card h3 {
  max-width: 12ch;
  margin-top: 14px;
}

.difference-card-accent {
  background:
    radial-gradient(circle at top right, rgba(214, 170, 96, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(31, 22, 15, 0.92), rgba(13, 11, 8, 0.82));
}

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

.motion-card {
  padding: 26px;
}

.motion-card h3 {
  margin-top: 14px;
}

.motion-card p {
  margin: 16px 0 0;
}

.assistant-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

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

.assistant-card {
  padding: 26px;
}

.assistant-card-wide {
  grid-column: span 2;
}

.assistant-card h3 {
  margin-top: 12px;
}

.assistant-card p {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

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

.workspace-card {
  padding: 26px;
}

.workspace-card-wide {
  grid-column: span 2;
}

.workspace-card h3 {
  margin-top: 12px;
}

.workspace-card p {
  margin: 14px 0 0;
}

.download-shell {
  padding: 34px;
}

.download-note {
  margin: 18px 0 0;
}

.download-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.download-step {
  padding: 22px;
  border: 1px solid rgba(214, 170, 96, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.download-step h3 {
  margin-top: 12px;
}

.download-step p,
.download-hint,
.download-availability,
.download-card-value {
  color: var(--text-muted);
  line-height: 1.68;
}

.download-step-index {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(214, 170, 96, 0.16);
  background: var(--panel-strong);
}

.download-card.is-unavailable {
  background: linear-gradient(180deg, rgba(29, 20, 13, 0.72), rgba(11, 9, 7, 0.82));
}

.download-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  background: rgba(214, 170, 96, 0.08);
}

.download-availability {
  margin: -4px 0 0;
  color: var(--accent-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-card h3 {
  margin-top: 0;
}

.download-card p {
  margin: 0;
}

.download-card-meta {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(214, 170, 96, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.download-card-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.download-card-label {
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card-value {
  min-width: 0;
  font-size: 0.92rem;
  word-break: break-word;
}

.download-hint {
  font-size: 0.9rem;
}

.button-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.download-status {
  margin: 18px 0 0;
  color: var(--text-faint);
}

.download-status.is-updated {
  color: var(--accent-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.footer-title {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-copy {
  margin: 8px 0 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

.footer-year {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--orbit-rotate, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--orbit-rotate, 0deg));
  }
}

.orbit-a { --orbit-rotate: -14deg; }
.orbit-b { --orbit-rotate: 8deg; }
.orbit-c { --orbit-rotate: -18deg; }
.orbit-d { --orbit-rotate: 12deg; }

@media (max-width: 1120px) {
  .hero,
  .difference-grid,
  .motion-grid,
  .assistant-grid,
  .workspace-grid,
  .download-grid,
  .download-steps {
    grid-template-columns: 1fr;
  }

  .workspace-card-wide {
    grid-column: auto;
  }

  .assistant-card-wide {
    grid-column: auto;
  }

  .hero-stage {
    min-height: 560px;
  }

  .surface-body {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .surface-graph {
    grid-column: 1 / -1;
  }

  .graph-net {
    height: 130px;
  }
}

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

  .site-header,
  .site-footer {
    border-radius: var(--radius-lg);
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    display: flex;
  }

  .hero-copy,
  .download-shell,
  .download-step,
  .difference-card,
  .motion-card,
  .assistant-card,
  .workspace-card,
  .hero-stage {
    padding: 22px;
  }

  .hero-stage {
    min-height: 620px;
  }

  .surface-body,
  .surface-compare {
    grid-template-columns: 1fr;
  }

  .surface-sidebar {
    display: none;
  }

  .floating-card {
    width: calc(100% - 44px);
  }

  .download-card-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .floating-card-top {
    top: 28px;
    left: 22px;
    right: auto;
  }

  .floating-card-bottom {
    left: 22px;
    bottom: 22px;
  }
}
