:root {
  --base: #e0e0e8;
  --light: #f0f0f6;
  --white: #ffffff;
  --near-white: #f7f7fc;
  --shadow: #bebec5;
  --soft-vein: #d0d0d8;
  --ink: #4a4a56;
  --emphasis: #3a3a4e;
  --body: #55556a;
  --ghost: #9090a8;
  --alternate-ghost: #8888a0;
  --void: #2e2e3a;
}

/* Compliance language from DESIGN.md: (Google Interaction (JS Motifs:** Motifs:* Interactive elements respond **magnetic** *magnetic* approaches within `120px` IntersectionObserver` trigger entrance animations. Panels begin `opacity: */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--body);
  background: var(--base);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-feature-settings: "tnum" 1, "zero" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.marble-field,
.marble-zone::before,
.marble-panel::before,
.vein-window::before {
  background:
    linear-gradient(17deg, transparent 40%, rgba(190,190,197,0.15) 40.5%, rgba(190,190,197,0.15) 41%, transparent 41.5%),
    linear-gradient(73deg, transparent 55%, rgba(190,190,197,0.10) 55.3%, rgba(190,190,197,0.10) 55.8%, transparent 56%),
    linear-gradient(132deg, transparent 30%, rgba(160,160,172,0.08) 30.4%, rgba(160,160,172,0.08) 31%, transparent 31.3%),
    linear-gradient(198deg, transparent 65%, rgba(190,190,197,0.12) 65.2%, rgba(190,190,197,0.12) 65.7%, transparent 66%);
  background-size: 800px 600px;
}

.marble-field {
  position: fixed;
  inset: -4%;
  pointer-events: none;
  opacity: 0.72;
  filter: blur(3px);
  animation: marble-breathe 60s linear infinite;
  z-index: -2;
}

.zone {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem);
}

.stream-header {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dashboard-zone { min-height: 200vh; }

.inference-zone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-inline: 2rem;
}

.drift-zone {
  min-height: 50vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.marble-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  filter: blur(3px);
  animation: marble-breathe 60s linear infinite reverse;
  pointer-events: none;
}

.raised-panel,
.float-stone,
.float-pill,
.soft-label,
.thought-pulse,
.menu-orb,
.end-orb {
  background: var(--base);
  box-shadow: 8px 8px 16px var(--shadow), -8px -8px 16px var(--white);
}

.sunken-panel,
.cursor-well {
  background: var(--base);
  box-shadow: inset 6px 6px 12px var(--shadow), inset -6px -6px 12px var(--white);
}

.hero-panel {
  position: relative;
  width: min(60vw, 860px);
  min-width: min(92vw, 460px);
  border-radius: 34px;
  padding: clamp(2rem, 5vw, 5.5rem);
  z-index: 2;
}

.eyebrow,
h2 {
  margin: 0 0 1rem;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 1px 1px 2px var(--light);
}

.eyebrow {
  color: var(--alternate-ghost);
  font-size: clamp(0.76rem, 1.2vw, 0.95rem);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 2px 2px 4px var(--light);
}

p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 2px var(--light);
}

.hero-copy {
  max-width: 50rem;
  margin: 2rem 0;
  color: var(--body);
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.thought-pulse {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  animation: pulse-shadow 4s ease-in-out infinite;
}

.thought-pulse span {
  display: block;
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: 1.6rem;
  animation: pulse-mark 4s ease-in-out infinite;
}

.menu-orb {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  z-index: 10;
  display: grid;
  place-content: center;
  gap: 5px;
}

.menu-orb span {
  width: 20px;
  height: 2px;
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 1px 1px 2px var(--light);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}

.raised-panel:hover { box-shadow: 12px 12px 24px var(--shadow), -12px -12px 24px var(--near-white); }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }

.compact-readout { display: flex; flex-direction: column; justify-content: space-between; }

.display-number {
  margin: auto 0 1rem;
  color: var(--ink);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1;
  opacity: 0.88;
  text-shadow: 2px 2px 4px var(--light);
}

.marble-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  filter: blur(2px);
  animation: marble-breathe 60s linear infinite;
}

.marble-panel > * { position: relative; }

.vein-window {
  position: relative;
  height: 130px;
  border-radius: 18px;
  margin: 1rem 0;
  box-shadow: inset 6px 6px 12px var(--shadow), inset -6px -6px 12px var(--white);
  overflow: hidden;
}

.vein-window::before {
  content: "";
  position: absolute;
  inset: -20%;
  filter: blur(2px);
  animation: marble-breathe 60s linear infinite reverse;
}

.cursor-well {
  min-height: 110px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: 2rem;
}

.cursor-well span { animation: blink 1.1s steps(2, start) infinite; }

.label-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.soft-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark-module {
  background: var(--void);
  box-shadow: 8px 8px 16px var(--shadow), -8px -8px 16px var(--white), inset 1px 1px 1px rgba(247,247,252,0.08);
}

.dark-module h2 { color: var(--alternate-ghost); text-shadow: none; }
.dark-module p { color: var(--soft-vein); text-shadow: none; }

.inference-well {
  width: 100%;
  margin: 0 auto;
  border-radius: 32px;
  padding: clamp(2rem, 6vw, 6rem);
  color: var(--body);
}

.inference-well h2 {
  max-width: 900px;
  margin-bottom: 2rem;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.01em;
}

.inference-well p:not(.eyebrow) {
  max-width: 760px;
  color: var(--ink);
}

.drift-note {
  position: absolute;
  top: 20%;
  color: var(--ghost);
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.end-orb {
  width: clamp(110px, 14vw, 170px);
  height: clamp(110px, 14vw, 170px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.4rem);
  animation: float-drift 20s ease-in-out infinite;
}

.float-stone,
.float-pill {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--ghost);
  font-family: "Orbitron", sans-serif;
  animation: float-drift 20s ease-in-out infinite;
}

.float-stone {
  width: 86px;
  height: 86px;
  border-radius: 50%;
}

.float-pill {
  min-width: 128px;
  height: 48px;
  border-radius: 999px;
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stone-one { left: 9%; top: 22%; }
.stone-two { right: 12%; bottom: 18%; animation-delay: -8s; }
.pill-one { right: 18%; top: 18%; animation-delay: -3s; }

.reveal-panel {
  opacity: 0;
  transform: translateY(20px);
}

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

.sunken-panel.reveal-panel { box-shadow: inset 0 0 0 rgba(190,190,197,0), inset 0 0 0 rgba(255,255,255,0); }
.sunken-panel.reveal-panel.is-visible { box-shadow: inset 6px 6px 12px var(--shadow), inset -6px -6px 12px var(--white); }

.magnetic,
.magnetic-heading { will-change: transform; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

@keyframes marble-breathe {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 800px 600px, -600px 500px, 500px -700px, -800px -600px; }
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(1.5deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
  75% { transform: translateY(-14px) rotate(0.5deg); }
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 8px 8px 16px var(--shadow), -8px -8px 16px var(--white); }
  50% { box-shadow: 14px 14px 28px var(--shadow), -14px -14px 28px var(--near-white); }
}

@keyframes pulse-mark {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 1199px) {
  .dashboard-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1.5rem; }
  .span-3, .span-4 { grid-column: span 4; }
  .span-5, .span-6 { grid-column: span 8; }
  .hero-panel { width: min(82vw, 820px); }
}

@media (max-width: 767px) {
  .zone { padding: 4.5rem 0.75rem; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: 1; }
  .panel { min-height: 250px; }
  .hero-panel { width: calc(100vw - 1.5rem); min-width: 0; border-radius: 26px; }
  .pulse-row { align-items: flex-start; flex-direction: column; }
  .inference-zone { padding-inline: 0.75rem; }
  .float-stone, .float-pill { display: none; }
}
