/* AuriaBIM — landing v1
   Proportions follow the golden ratio: Fibonacci spacing, a √φ type scale
   and φ-split layouts. Light "drafting paper" theme with gold, rosé and sage. */

:root {
  --paper: #F7F4EE;
  --paper-2: #F0ECE3;
  --paper-3: #E7E1D5;
  --card: #FFFFFF;
  --ink: #17181B;
  --ink-2: #4A4C52;
  --ink-3: #8B8D93;
  --line: rgba(23, 24, 27, 0.09);
  --line-2: rgba(23, 24, 27, 0.16);
  --gold: #B08A43;
  --gold-2: #D4AF62;
  --gold-soft: #F4E8CB;
  --rose: #EDB3C0;
  --sage: #A6CBAE;

  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --s-3: 8px;
  --s-4: 13px;
  --s-5: 21px;
  --s-6: 34px;
  --s-7: 55px;
  --s-8: 89px;
  --s-9: 144px;
  --r-1: 8px;
  --r-2: 13px;
  --r-3: 21px;
  --sh-1: 0 1px 2px rgba(23, 24, 27, 0.05), 0 3px 8px rgba(23, 24, 27, 0.04);
  --sh-2: 0 1px 2px rgba(23, 24, 27, 0.04), 0 8px 21px rgba(23, 24, 27, 0.07), 0 21px 55px rgba(23, 24, 27, 0.08);
  --max: 1320px;
  --gutter: clamp(16px, 4.2vw, 55px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

em {
  font-style: italic;
}

::selection {
  background: var(--gold-soft);
}

/* ------------------------------------------------------------ buttons & controls */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 14px/1 var(--f-sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.solid {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 6px 18px rgba(23, 24, 27, 0.18);
}

.btn.solid:hover {
  background: #26272b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 10px 28px rgba(23, 24, 27, 0.24);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line-2);
  color: var(--ink);
}

.btn.ghost:hover {
  background: #fff;
}

.btn.lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.btn.xl {
  height: 58px;
  padding: 0 30px;
  font-size: 16px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(23, 24, 27, 0.055);
}

.seg button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font: 500 13px/1 var(--f-sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, box-shadow 0.25s;
}

.seg button:hover {
  color: var(--ink);
}

.seg button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 24, 27, 0.18);
}

.seg.small button {
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 22px;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track, rgba(23, 24, 27, 0.14));
}

input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--track, rgba(23, 24, 27, 0.14));
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(23, 24, 27, 0.2);
}

input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
}

input[type='range']:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 68px;
  padding: 0 var(--gutter);
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}

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

.mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.wordmark {
  font: 400 27px/1 var(--f-display);
  letter-spacing: -0.01em;
}

.wordmark em {
  color: var(--gold);
}

.wordmark.small {
  font-size: 21px;
}

.bim {
  margin-left: 5px;
  padding: 3px 6px 2px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.nav-links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 8px;
}

/* ------------------------------------------------------------ hero */

.hero {
  --warm: 0.4;
  position: relative;
  height: 100svh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 70% 60%, rgba(255, 206, 140, calc(0.1 + var(--warm) * 0.34)), transparent 72%),
    radial-gradient(ellipse 40% 45% at 20% 30%, rgba(237, 179, 192, 0.12), transparent 70%),
    linear-gradient(180deg, #FCFAF6 0%, var(--paper) 100%);
  transition: background 0.6s;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 66% 58%, #000 25%, transparent 88%);
  mask-image: radial-gradient(ellipse 70% 72% at 66% 58%, #000 25%, transparent 88%);
  opacity: 0.7;
  pointer-events: none;
}

.stage {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero.ready .hero-canvas {
  opacity: 1;
}

.hero-canvas canvas {
  touch-action: none;
  cursor: grab;
}

.hero-canvas canvas:active {
  cursor: grabbing;
}

.hero[data-view='planta'] .hero-canvas canvas,
.hero[data-view='corte'] .hero-canvas canvas {
  cursor: move;
}

.hero-annot,
.hero-tags {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-46%);
  width: min(36vw, 540px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-5);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.hero h1 {
  margin: 0;
  font: 400 clamp(54px, 6.3vw, 104px) / 0.93 var(--f-display);
  letter-spacing: -0.018em;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.nowrap {
  white-space: nowrap;
}

.underline {
  position: absolute;
  left: -2%;
  bottom: -0.1em;
  width: 104%;
  height: 0.22em;
  overflow: visible;
}

.underline path {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.4s 0.5s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.lede {
  margin: var(--s-6) 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.32vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-6);
}

.fine {
  margin: var(--s-5) 0 0;
  font: 400 12.5px/1.5 var(--f-mono);
  color: var(--ink-3);
}

/* Presence tags: a pill above each collaborator in 3D, a cursor in plan/section. */
.tag {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -100%);
  padding: 5px 10px 5px 9px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font: 500 11.5px/1 var(--f-sans);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 24, 27, 0.18);
}

.tag-pill span {
  opacity: 0.82;
  font-weight: 400;
}

.tag-cursor {
  display: none;
  position: absolute;
  left: -3px;
  top: -3px;
  width: 20px;
  height: 20px;
  color: var(--c);
  filter: drop-shadow(0 2px 3px rgba(23, 24, 27, 0.25));
}

.tag.as-cursor .tag-cursor {
  display: block;
}

.tag.as-cursor .tag-pill {
  transform: translate(14px, 14px);
}

/* Plan and section annotations drawn over the model */
.hero-annot {
  opacity: 0;
  transition: opacity 0.5s;
}

.hero.annotating .hero-annot {
  opacity: 1;
}

.hero-annot text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.a-name {
  font: 500 12.5px var(--f-sans);
  fill: var(--ink);
}

.a-area {
  font: 400 10.5px var(--f-mono);
  fill: var(--ink-2);
}

.a-leaf {
  stroke: var(--ink);
  stroke-width: 1.4;
}

.a-swing {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 0.9;
}

.a-dim {
  stroke: var(--ink-2);
  stroke-width: 0.8;
}

.a-tick {
  stroke: var(--ink);
  stroke-width: 1.4;
}

.a-dimtext {
  font: 500 11px var(--f-mono);
  fill: var(--ink);
}

.a-scale rect {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 0.8;
}

.a-scale rect.dark {
  fill: var(--ink);
}

.a-scale text {
  font: 400 10px var(--f-mono);
  fill: var(--ink-2);
}

.a-level {
  stroke: var(--ink-3);
  stroke-width: 0.9;
  stroke-dasharray: 4 3;
}

.a-mark {
  fill: var(--gold);
}

/* Tooltip with element data */
.hero-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  min-width: 190px;
  padding: 11px 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.hero-tip.on {
  opacity: 1;
}

.hero-tip b {
  display: block;
  margin-bottom: 5px;
  font: 600 13px/1.2 var(--f-sans);
}

.hero-tip span {
  display: block;
  font: 400 11.5px/1.55 var(--f-mono);
  color: var(--ink-2);
}

/* AI log */
.hero-log {
  position: absolute;
  z-index: 6;
  right: var(--gutter);
  top: 92px;
  width: min(390px, calc(100% - 32px));
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  font: 400 12px/1.5 var(--f-mono);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero-log.open {
  opacity: 1;
  transform: none;
}

.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font: 500 12px/1 var(--f-sans);
  color: var(--ink-2);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(176, 138, 67, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(176, 138, 67, 0);
  }
}

.hero-log ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-log li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
  animation: logIn 0.35s var(--ease);
}

.hero-log li code {
  color: var(--ink);
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-log li code::before {
  content: '› ';
  color: var(--gold);
}

.hero-log li span {
  flex: none;
  color: #3F8F6B;
}

@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.log-done {
  margin: 8px 0 0;
  color: var(--gold);
  font-weight: 500;
}

.log-done:empty {
  display: none;
}

.hero-hint {
  position: absolute;
  z-index: 4;
  left: 70%;
  bottom: 104px;
  transform: translateX(-50%);
  margin: 0;
  font: 400 11.5px/1 var(--f-mono);
  color: var(--ink-3);
  white-space: nowrap;
  transition: opacity 0.6s;
}

.hero.touched .hero-hint,
.hero.is-building .hero-hint {
  opacity: 0;
}

/* Dock */
.dock {
  position: absolute;
  z-index: 5;
  left: 70%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dock-main,
.dock-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--sh-2);
}

.dock-sub {
  display: none;
  animation: logIn 0.3s var(--ease);
}

.hero[data-view='planta'] .only-plan,
.hero[data-view='corte'] .only-section {
  display: flex;
}

.views button {
  min-width: 64px;
}

.sun {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 10px;
  height: 38px;
  border-left: 1px solid var(--line);
}

.sun svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sun input {
  width: 118px;
  --track: linear-gradient(90deg, #BFD2E6, #FFF3D9 45%, #F2C77A 80%, #E59A6E);
}

.hour {
  width: 38px;
  font: 500 12px/1 var(--f-mono);
  color: var(--ink);
}

.golden-badge {
  display: none;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8A6A2E;
  font: 500 10.5px/1 var(--f-mono);
  white-space: nowrap;
}

.hero.golden .golden-badge {
  display: inline-block;
  animation: logIn 0.4s var(--ease);
}

.replay {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #F7E9C6, #EBCB85);
  color: #4A3A18;
  font: 500 13px/1 var(--f-sans);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 67, 0.35);
  transition: filter 0.2s, transform 0.2s var(--ease);
}

.replay:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.live {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 4px;
  font: 500 12px/1 var(--f-sans);
  color: var(--ink-2);
  white-space: nowrap;
}

.faces {
  display: flex;
}

.faces i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: 600 11px/1 var(--f-sans);
  font-style: normal;
}

.faces i:first-child {
  margin-left: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3FB27F;
  box-shadow: 0 0 0 3px rgba(63, 178, 127, 0.18);
}

.range-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font: 500 12.5px/1 var(--f-sans);
  color: var(--ink-2);
}

.range-label output {
  min-width: 56px;
  font: 500 12px/1 var(--f-mono);
  color: var(--ink);
}

.range-label input {
  width: 160px;
}

/* ------------------------------------------------------------ strip */

.strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.strip-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.strip span {
  padding: 18px 28px;
  font: 400 22px/1 var(--f-display);
  color: var(--ink-2);
  white-space: nowrap;
}

.strip span::after {
  content: '✦';
  margin-left: 56px;
  font-size: 12px;
  color: var(--gold);
  vertical-align: middle;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------ sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(89px, 11vw, 144px) var(--gutter);
}

[id] {
  scroll-margin-top: 72px;
}

.band-warm {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-block: 1px solid var(--line);
}

.sec-head {
  max-width: 780px;
  margin-bottom: var(--s-7);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 var(--s-5);
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0;
  font: 400 clamp(40px, 5vw, 70px) / 1 var(--f-display);
  letter-spacing: -0.012em;
}

.section h2 em {
  color: var(--ink-2);
}

.sec-head > p:not(.kicker) {
  margin: var(--s-5) 0 0;
  max-width: 38em;
  font-size: 18px;
  color: var(--ink-2);
}

.card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.card-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  font: 500 14px/1 var(--f-sans);
}

.muted {
  font: 400 12px/1 var(--f-mono);
  color: var(--ink-3);
}

.bar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Views */
.views-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--s-5);
}

.plan-card {
  grid-row: span 2;
}

.views-grid .card {
  display: flex;
  flex-direction: column;
}

.views-grid .drawing-wrap {
  flex: 1;
  display: grid;
  place-items: center;
}

.card.wide {
  grid-column: 1 / -1;
}

.drawing-wrap {
  padding: var(--s-5);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 21px 21px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 21px 21px,
    #FDFCFA;
  background-blend-mode: normal;
}

.drawing-wrap svg {
  width: 100%;
  height: auto;
}

.drawing-wrap .drawing text {
  font-family: var(--f-sans);
}

.drawing .d-area,
.drawing .d-dim {
  font-family: var(--f-mono);
}

.sheet-wrap {
  padding: clamp(12px, 3vw, 34px);
  background: var(--paper-2);
}

.sheet {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(23, 24, 27, 0.08), 0 14px 40px rgba(23, 24, 27, 0.12);
}

.sheet text {
  font-family: var(--f-sans);
}

.sheet .s-title,
.sheet .s-brand {
  font-family: var(--f-display);
}

.sheet .s-sub,
.sheet .s-val {
  font-family: var(--f-mono);
}

/* Flow */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1.618fr 1fr;
  gap: var(--s-5);
  align-items: start;
}

.step {
  position: relative;
  padding: var(--s-6) var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--card);
  box-shadow: var(--sh-1);
}

.step-feature {
  box-shadow: var(--sh-2);
}

.step-n {
  font: 500 12px/1 var(--f-mono);
  color: var(--gold);
}

.step h3 {
  margin: 10px 0 8px;
  font: 400 34px/1 var(--f-display);
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.illus {
  margin-top: var(--s-5);
}

.illus svg {
  width: 100%;
  height: auto;
}

.viab {
  margin-top: var(--s-5);
}

.viab-draw svg {
  width: 100%;
  height: auto;
  margin: 6px 0;
}

.viab-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.viab-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font: 500 12.5px/1.3 var(--f-sans);
  color: var(--ink-2);
}

.viab-controls input {
  grid-column: 1 / -1;
  width: 100%;
}

.viab-controls output {
  font: 500 13px/1.3 var(--f-mono);
  color: var(--ink);
}

.viab-stats,
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: var(--s-5) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--line);
}

.viab-stats div,
.stats div {
  padding: 12px 14px;
  background: #fff;
}

.viab-stats dt,
.stats dt {
  font: 400 11px/1.3 var(--f-mono);
  color: var(--ink-3);
}

.viab-stats dd,
.stats dd {
  margin: 4px 0 0;
  font: 400 24px/1.1 var(--f-display);
  color: var(--ink);
}

/* Tower */
.tower-card {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: #fff;
  box-shadow: var(--sh-2);
}

.tower-canvas {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 70%, rgba(255, 214, 150, 0.22), transparent 70%),
    linear-gradient(180deg, #FCFAF6, var(--paper));
}

.tower-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.tower-ui {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: var(--s-6);
  border-left: 1px solid var(--line);
}

.range-label.stacked {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding: 0;
}

.range-label.stacked input,
.range-label.stacked .seg {
  grid-column: 1 / -1;
  width: 100%;
}

.range-label.stacked .seg button {
  flex: 1;
}

.tower-ui .stats {
  grid-template-columns: 1fr;
  margin-top: auto;
}

/* Collaboration */
.collab-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--s-6);
  align-items: center;
}

.collab-stage {
  position: relative;
  padding: var(--s-5);
  background: #FDFCFA;
}

.collab-plan svg {
  width: 100%;
  height: auto;
}

.collab-cursor {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}

.collab-cursor svg {
  width: 20px;
  height: 20px;
  color: var(--c);
  filter: drop-shadow(0 2px 3px rgba(23, 24, 27, 0.25));
}

.collab-cursor span {
  position: absolute;
  left: 14px;
  top: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font: 500 11px/1 var(--f-sans);
  white-space: nowrap;
}

.collab-select {
  position: absolute;
  border: 1.5px solid var(--c);
  border-radius: 3px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  pointer-events: none;
  transition: all 0.8s var(--ease);
}

.sync {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sh-1);
  font: 500 12px/1 var(--f-sans);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3FB27F;
  transition: background 0.3s;
}

.sync.offline .sync-dot {
  background: #D99A2B;
}

.sync.syncing .sync-dot {
  background: #5B8DEF;
  animation: pulse 1s infinite;
}

.roles {
  display: grid;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.roles li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}

.role-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--c);
  font-size: 17px;
}

.roles b {
  font: 400 24px/1.1 var(--f-display);
}

.roles p {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* AI band */
.band-ink {
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(212, 175, 98, 0.16), transparent 70%),
    #141518;
  color: #EEE9DF;
}

.band-ink .section h2 em,
.band-ink .sec-head > p:not(.kicker) {
  color: #B9B4AA;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: var(--s-6);
  align-items: start;
}

.ai-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.ai-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.03);
}

.ai-flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 53px;
  bottom: -11px;
  width: 1px;
  height: 11px;
  background: rgba(212, 175, 98, 0.5);
}

.ai-flow li > :first-child {
  grid-row: span 2;
  align-self: center;
}

.ai-flow b {
  font: 500 15px/1.3 var(--f-sans);
  color: #fff;
}

.ai-flow li > span:last-child {
  font-size: 13.5px;
  color: #A9A49A;
}

.files-mini {
  display: flex;
  gap: 3px;
}

.files-mini i {
  padding: 4px 4px 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #E6DFD1;
  font: 500 9.5px/1 var(--f-mono);
  font-style: normal;
}

.ai-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 500 12px/1 var(--f-mono);
}

.ai-badge.gold {
  background: linear-gradient(135deg, #F2DDA3, #C99B45);
  color: #2B220E;
}

.ai-badge.light {
  background: #F7F4EE;
  color: var(--ink);
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-3);
  background: #0D0E10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.term-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34363B;
}

.term-head span {
  margin-left: 8px;
  font: 400 12px/1 var(--f-mono);
  color: #8C877D;
}

.terminal pre {
  min-height: 330px;
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font: 400 13px/1.75 var(--f-mono);
  color: #D9D3C6;
  white-space: pre-wrap;
}

.terminal .t-user {
  color: #fff;
}

.terminal .t-tool {
  color: #E8C47C;
}

.terminal .t-out {
  color: #8E897F;
}

.terminal .t-ok {
  color: #7FD1A5;
}

.terminal .caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #E8C47C;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.note {
  margin: var(--s-6) 0 0;
  font: 400 13px/1.5 var(--f-mono);
  color: #B9B4AA;
}

/* Formats */
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.files span {
  position: relative;
  padding: 26px 30px 22px;
  border: 1px solid var(--line-2);
  border-radius: 6px 22px 6px 6px;
  background: #fff;
  box-shadow: var(--sh-1);
  font: 500 clamp(20px, 2.2vw, 28px) / 1 var(--f-mono);
  letter-spacing: 0.04em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.files span::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-radius: 0 22px 0 8px;
  background: linear-gradient(225deg, var(--paper) 50%, var(--paper-3) 50%);
}

.files span:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: var(--sh-2);
}

.feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
}

.feats li {
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-2);
}

.feats b {
  display: block;
  font: 400 24px/1.15 var(--f-display);
}

.feats span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* Devices */
.devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  max-width: 900px;
  margin: 0 auto;
}

.devices figure {
  margin: 0;
  text-align: center;
}

.devices svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.devices figcaption {
  margin-top: 10px;
  font: 400 13px/1 var(--f-mono);
  color: var(--ink-2);
}

/* Final */
.final {
  text-align: center;
}

.final h2 {
  margin-bottom: var(--s-6);
  font-size: clamp(48px, 7vw, 104px);
}

.final .fine {
  margin-top: var(--s-5);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: var(--s-6) var(--gutter);
  border-top: 1px solid var(--line);
  font: 400 12.5px/1 var(--f-mono);
  color: var(--ink-3);
}

.foot .bim {
  margin-right: auto;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(21px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1440px) and (min-width: 980px) {
  .dock {
    left: auto;
    right: var(--gutter);
    transform: none;
    align-items: flex-end;
  }

  .hero-hint {
    left: auto;
    right: var(--gutter);
    transform: none;
  }

  .sun input {
    width: 92px;
  }
}

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

  .nav-cta {
    margin-left: auto;
  }

  .live,
  .golden-badge {
    display: none !important;
  }
}

@media (max-width: 979px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    padding: 104px var(--gutter) 0;
  }

  .stage {
    position: relative;
    height: 74svh;
    min-height: 460px;
  }

  .dock,
  .hero-hint {
    left: 50%;
  }

  .dock {
    bottom: 14px;
    width: calc(100% - 24px);
  }

  .dock-main {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
  }

  .sun {
    border-left: 0;
  }

  .hero-hint {
    display: none;
  }

  .hero-log {
    top: 12px;
    right: 12px;
  }

  .views-grid,
  .flow-grid,
  .tower-card,
  .collab-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    grid-row: auto;
  }

  .tower-ui {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 620px) {
  .nav-cta .ghost {
    display: none;
  }

  .nav .btn {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .cta-row .btn {
    flex: 1;
    justify-content: center;
  }

  .replay {
    order: 3;
    width: 100%;
  }

  .viab-controls,
  .feats {
    grid-template-columns: 1fr;
  }

  .viab-stats,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .range-label input {
    width: 110px;
  }

  .dock-sub {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
  }
}

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

  .strip-track {
    animation: none;
  }
}
