:root {
  --bg: #07080d;
  --bg-soft: #0d0f17;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f8;
  --text-muted: #9aa0b4;
  --text-dim: #6b7188;
  --focus: #8b6bff;
  --focus-soft: #b49dff;
  --calm: #4ed1c4;
  --calm-soft: #8be6dc;
  --accent-warm: #ffb37a;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  --dur-micro: 160ms;
  --dur-interactive: 180ms;
  --dur-reveal: 700ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1vw + 0.5rem, 17px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-interactive) var(--ease);
}

a:hover {
  color: var(--focus-soft);
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.aura {
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 15%, rgba(139, 107, 255, 0.25), transparent 70%),
    radial-gradient(35% 35% at 85% 30%, rgba(78, 209, 196, 0.18), transparent 72%),
    radial-gradient(50% 50% at 50% 95%, rgba(255, 179, 122, 0.12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  transition: background var(--dur-reveal) var(--ease);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.6);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--focus-soft), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--calm-soft), transparent 55%),
    var(--bg);
  box-shadow: 0 0 18px rgba(139, 107, 255, 0.6);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
  color: var(--text-muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(60px, 10vw, 140px) var(--gutter) clamp(60px, 8vw, 120px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow,
.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.accent {
  background: linear-gradient(120deg, var(--focus-soft), var(--calm-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.2vw + 0.5rem, 20px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--dur-interactive) var(--ease),
              background var(--dur-interactive) var(--ease),
              border-color var(--dur-interactive) var(--ease),
              color var(--dur-interactive) var(--ease);
}

.button-primary {
  background: linear-gradient(120deg, var(--focus), var(--calm));
  color: #0b0c14;
  font-weight: 600;
}

.button-primary:hover {
  transform: translateY(-2px);
  color: #0b0c14;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.button-ghost:hover {
  background: var(--surface);
  border-color: var(--focus-soft);
  color: var(--text);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 460px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-metrics dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-metrics dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-inline: auto;
}

.orb,
.orb-core {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-focus {
  inset: 5% 40% 40% 5%;
  background: radial-gradient(circle at 35% 35%, var(--focus-soft), var(--focus) 45%, transparent 70%);
  opacity: 0.75;
  animation: float 9s ease-in-out infinite;
}

.orb-calm {
  inset: 35% 5% 5% 40%;
  background: radial-gradient(circle at 40% 40%, var(--calm-soft), var(--calm) 45%, transparent 70%);
  opacity: 0.7;
  animation: float 11s ease-in-out infinite reverse;
}

.orb-core {
  inset: 28% 28% 28% 28%;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, rgba(255,255,255,0.2) 30%, transparent 65%);
  mix-blend-mode: screen;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6%, -4%); }
}

.wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  opacity: 0;
  animation: wave 4s linear infinite;
}

.wave-2 { animation-delay: 1.3s; }
.wave-3 { animation-delay: 2.6s; }

@keyframes wave {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}

.section-title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  max-width: 22ch;
}

.section-lead {
  color: var(--text-muted);
  max-width: 62ch;
  margin: -16px 0 40px;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.concept-lead {
  font-size: clamp(18px, 1.4vw + 0.5rem, 22px);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

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

.concept-list li {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.concept-list strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.section-app {
  border-top: 1px solid var(--border);
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 36px);
  align-items: end;
  margin-top: 48px;
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--dur-interactive) var(--ease);
}

.phone:hover {
  transform: translateY(-4px);
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  border-radius: 999px;
  background: #05060a;
  z-index: 2;
  pointer-events: none;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #07080d;
}

.phone-featured .phone-frame {
  transform: translateY(-20px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(139, 107, 255, 0.3) inset,
    0 0 60px -10px rgba(139, 107, 255, 0.4);
}

.phone figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px;
}

.phone-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--focus-soft);
  background: rgba(139, 107, 255, 0.12);
  border: 1px solid rgba(139, 107, 255, 0.3);
  border-radius: 999px;
}

.phone figcaption p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-flow {
  border-top: 1px solid var(--border);
}

.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-interactive) var(--ease),
              transform var(--dur-interactive) var(--ease);
}

.flow-step:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.flow-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--focus-soft);
  margin-bottom: 14px;
}

.flow-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.flow-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.flow-step em {
  color: var(--calm-soft);
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
}

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

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-interactive) var(--ease),
              background var(--dur-interactive) var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.card-model {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--focus-soft);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.section-scenarios {
  border-top: 1px solid var(--border);
}

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-lg);
}

.demo-stage {
  position: relative;
  min-height: 380px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(80% 80% at 50% 45%, var(--demo-bg, #191a27), #07080d 100%);
  transition: background var(--dur-reveal) var(--ease);
  overflow: hidden;
}

.demo-lamp {
  position: absolute;
  inset: 50% auto auto 50%;
  width: clamp(180px, 28vw, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--demo-lamp, #ffffff), transparent 65%);
  filter: blur(6px);
  opacity: var(--demo-lamp-opacity, 0.6);
  transition: background var(--dur-reveal) var(--ease),
              opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.demo-readout {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.demo-mode {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.demo-mode-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 36ch;
}

.demo-controls {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.slider-value {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.slider-hint {
  font-size: 12.5px;
  color: var(--text-dim);
}

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--focus) 0%, var(--focus) var(--value, 50%), rgba(255,255,255,0.1) var(--value, 50%), rgba(255,255,255,0.1) 100%);
  outline: none;
}

.slider:nth-child(2) input[type="range"] {
  background: linear-gradient(90deg, var(--calm) 0%, var(--calm) var(--value, 50%), rgba(255,255,255,0.1) var(--value, 50%), rgba(255,255,255,0.1) 100%);
}

.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease);
}

.slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
}

.demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.preset {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: color var(--dur-interactive) var(--ease),
              border-color var(--dur-interactive) var(--ease),
              background var(--dur-interactive) var(--ease);
}

.preset:hover {
  color: var(--text);
  border-color: var(--focus-soft);
}

.preset.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

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

.scenario {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.scenario h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}

.scenario-goal {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--calm-soft);
  margin: 0 0 14px;
}

.scenario p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.section-science {
  border-top: 1px solid var(--border);
}

.science-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.science-grid p {
  font-size: clamp(17px, 1.2vw + 0.5rem, 20px);
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

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

.science-list li {
  position: relative;
  padding: 14px 18px 14px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14.5px;
}

.science-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(120deg, var(--focus-soft), var(--calm-soft));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
  .hero-visual { order: -1; max-width: 360px; }
  .concept-grid,
  .science-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hardware-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-controls { border-left: none; border-top: 1px solid var(--border); }
  .phones { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .phone-featured .phone-frame { transform: none; }
}

@media (max-width: 760px) {
  .site-header { padding: 16px 20px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hardware-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .phones { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

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