:root {
  --ink: #f4f0e7;
  --muted: #8e91a1;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(12, 14, 26, 0.72);
  --accent: #d8ff53;
  --accent-soft: rgba(216, 255, 83, 0.13);
  --space: #060711;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--space);
  font-family: "Manrope", sans-serif;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.site-header {
  height: 82px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-mark { position: relative; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; left: -5px; top: 11px; width: 34px; border-top: 1px solid var(--ink); transform: rotate(-25deg); }
.brand-mark i { position: absolute; width: 5px; height: 5px; right: 1px; top: 2px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }

.header-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 11px "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.status-light { width: 6px; height: 6px; border-radius: 50%; background: #646776; transition: 0.3s ease; }
.status-light.active { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

main { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 42px; }
.hero { display: grid; grid-template-columns: 0.8fr 1.8fr 1fr; align-items: end; margin-bottom: 52px; }
.eyebrow { align-self: start; margin: 10px 0 0; color: #6f7180; font: 10px "DM Mono", monospace; letter-spacing: 0.15em; }
.eyebrow span { color: var(--accent); }
h1 { margin: 0; font-size: clamp(48px, 6.2vw, 92px); font-weight: 500; line-height: 0.95; letter-spacing: -0.065em; }
h1 em { color: var(--accent); font-style: normal; }
.intro { margin: 0 0 4px 32px; max-width: 360px; color: #a5a6b1; font-size: 14px; line-height: 1.75; }

.console { min-height: 470px; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.75fr); border: 1px solid var(--line); background: rgba(7, 8, 18, 0.62); backdrop-filter: blur(10px); }
.orbit-panel { position: relative; min-height: 470px; overflow: hidden; border-right: 1px solid var(--line); cursor: crosshair; }
.orbit-panel::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; }
.panel-label { position: absolute; z-index: 4; color: #727584; font: 9px "DM Mono", monospace; letter-spacing: .14em; }
.top-left { top: 22px; left: 25px; }.top-right { top: 22px; right: 25px; }.bottom-left { bottom: 20px; left: 25px; }.bottom-right { bottom: 20px; right: 25px; }
.corner { position: absolute; width: 14px; height: 14px; border-color: rgba(216,255,83,.55); z-index: 3; }
.corner-tl { left: 10px; top: 10px; border-left: 1px solid; border-top: 1px solid; }.corner-tr { right: 10px; top: 10px; border-right: 1px solid; border-top: 1px solid; }.corner-bl { left: 10px; bottom: 10px; border-left: 1px solid; border-bottom: 1px solid; }.corner-br { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }

.rings { position: absolute; left: 47%; top: 50%; width: 320px; height: 320px; transform: translate(-50%, -50%); opacity: .55; }
.ring { position: absolute; inset: 50%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 300px; height: 300px; }.ring-two { width: 210px; height: 210px; border-style: dashed; }.ring-three { width: 118px; height: 118px; }
.axis { position: absolute; background: rgba(255,255,255,.08); }.axis-x { height: 1px; width: 100%; top: 50%; }.axis-y { width: 1px; height: 100%; left: 50%; }
.planet { position: absolute; left: 47%; top: 50%; width: 76px; height: 76px; transform: translate(-50%,-50%); }
.planet-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(216,255,83,.16), transparent 68%); }
.planet-body { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #f4ffbd 0, #d6ff4f 18%, #728521 58%, #171c08 100%); box-shadow: inset -13px -8px 25px rgba(0,0,0,.55), 0 0 34px rgba(216,255,83,.15); }
.planet-body::after { content: ""; position: absolute; width: 116px; height: 25px; border: 1px solid rgba(216,255,83,.7); border-radius: 50%; top: 27px; left: -20px; transform: rotate(-14deg); }

.field-message { position: absolute; z-index: 4; left: 47%; top: 76%; transform: translateX(-50%); text-align: center; transition: opacity .3s ease, transform .3s ease; }
.field-message strong { display: block; margin: 6px 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; }.field-message small { color: #747786; font-size: 10px; }.field-icon { color: var(--accent); font-size: 15px; }
.orbit-panel.active .field-message { opacity: 0; transform: translate(-50%, 10px); }

.drifter { position: absolute; z-index: 8; left: 50%; top: 50%; width: 12px; height: 12px; opacity: 0; transform: translate(-50%,-50%); pointer-events: none; transition: opacity .25s ease; }
.orbit-panel.active .drifter { opacity: 1; }
.drifter-core { position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 24px var(--accent); }
.drifter-trail { position: absolute; right: 8px; top: 5px; width: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent)); transform-origin: right; }

.control-panel { display: flex; flex-direction: column; padding: 26px 30px 24px; background: linear-gradient(150deg, rgba(255,255,255,.035), transparent 48%); }
.control-heading { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: #b7b9c3; font: 10px "DM Mono", monospace; letter-spacing: .16em; }.control-index { color: var(--accent); }
.timer-block { padding: 31px 0 27px; border-bottom: 1px solid var(--line); }
.control-label { display: block; color: #777a89; font: 9px "DM Mono", monospace; letter-spacing: .15em; }
.timer { margin-top: 11px; font: 500 clamp(32px, 3vw, 45px) "DM Mono", monospace; letter-spacing: .04em; }
.timer-caption { display: block; margin-top: 4px; color: #595c6b; font: 8px "DM Mono", monospace; word-spacing: 19px; }
.setting { padding: 25px 0 22px; border-bottom: 1px solid var(--line); }
.setting-line { display: flex; justify-content: space-between; align-items: center; color: #858895; font: 9px "DM Mono", monospace; letter-spacing: .12em; }
.setting-line output { color: var(--accent); }
input[type="range"] { width: 100%; margin: 20px 0 7px; height: 2px; appearance: none; background: linear-gradient(90deg, var(--accent) 0 0, #343746 0); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border: 2px solid #090b12; outline: 1px solid var(--accent); border-radius: 50%; background: var(--accent); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #4f5260; font: 7px "DM Mono", monospace; letter-spacing: .12em; }
.system-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.system-row small { display: block; margin-top: 5px; color: #616473; font-size: 9px; }
.switch-indicator { width: 31px; height: 16px; padding: 3px; border: 1px solid #373a49; border-radius: 20px; transition: .3s ease; }.switch-indicator i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #606372; transition: .3s ease; }.switch-indicator.active { border-color: var(--accent); background: var(--accent-soft); }.switch-indicator.active i { transform: translateX(15px); background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.launch-button { width: 100%; min-height: 58px; margin-top: auto; padding: 0 18px; display: grid; grid-template-columns: 25px 1fr 25px; place-items: center; border: 0; background: var(--accent); color: #0b0d0a; font: 700 11px "DM Mono", monospace; letter-spacing: .12em; cursor: pointer; transition: transform .2s ease, background .2s ease; }.launch-button:hover { transform: translateY(-2px); background: #e5ff81; }.launch-button:active { transform: translateY(0); }.launch-button.running { color: var(--ink); background: rgba(255,255,255,.08); outline: 1px solid rgba(216,255,83,.5); }.button-icon { font-size: 10px; }.button-code { justify-self: end; font-size: 16px; }
.privacy-note { display: flex; gap: 8px; margin: 15px 0 0; color: #575a68; font-size: 8px; line-height: 1.5; }.privacy-note span { color: var(--accent); }
footer { min-height: 70px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; color: #4d505e; border-top: 1px solid var(--line); font: 8px "DM Mono", monospace; letter-spacing: .12em; }.footer-center { color: #6c6f7d; }.footer-center::before { content: ""; display: inline-block; width: 28px; margin: 0 9px 2px 0; border-top: 1px solid #454856; }.footer-center::after { content: ""; display: inline-block; width: 28px; margin: 0 0 2px 9px; border-top: 1px solid #454856; }footer b { color: var(--accent); }

@media (max-width: 900px) {
  main { padding-top: 48px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .intro { margin-left: 0; }
  .console { grid-template-columns: 1fr; }
  .orbit-panel { border-right: 0; border-bottom: 1px solid var(--line); min-height: 440px; }
  .control-panel { min-height: 440px; }
}

@media (max-width: 560px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .header-status span:last-child { display: none; }
  main { width: calc(100% - 24px); padding-top: 36px; }
  .hero { margin-bottom: 34px; }
  h1 { font-size: 50px; }
  .orbit-panel { min-height: 390px; }
  .rings { left: 50%; width: 270px; height: 270px; transform: translate(-50%,-50%) scale(.84); }
  .planet { left: 50%; }
  .field-message { left: 50%; }
  footer { padding: 20px 18px; gap: 12px; flex-wrap: wrap; }
  .footer-center { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
