:root {
  color-scheme: dark;
  --bg: #05090d;
  --surface: rgba(11, 18, 25, .82);
  --stroke: rgba(137, 167, 190, .17);
  --ink: #eef4f8;
  --muted: #8c9ba8;
  --faint: #5e6a75;
  --violet: #8a5cff;
  --cyan: #22d3ee;
  --mint: #72e6a1;
  --amber: #ffc857;
  --rose: #ff668a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 38%, rgba(34, 211, 238, .035), transparent 32rem),
    linear-gradient(180deg, #05090d 0%, #04070a 100%);
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(84px);
  opacity: .08;
}

.ambient-a { top: -20rem; left: -16rem; background: var(--violet); }
.ambient-b { right: -18rem; bottom: -22rem; background: var(--cyan); }

.shell {
  position: relative;
  width: min(100% - 40px, 440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(54px, 10vh, 110px) 0 34px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.presence {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto -6px;
  isolation: isolate;
}

.halo {
  position: absolute;
  inset: 50%;
  width: 120px;
  height: 120px;
  margin: -60px;
  border-radius: 50%;
  opacity: .42;
  filter: blur(12px);
  animation: breathe 5.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.halo-violet {
  background: radial-gradient(circle, rgba(138, 92, 255, .42), rgba(138, 92, 255, 0) 69%);
  transform: translate(-14px, 8px) scale(.96);
}

.halo-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, .43), rgba(34, 211, 238, 0) 68%);
  transform: translate(15px, -8px) scale(.84);
  animation-delay: -2.1s;
}

.halo-amber {
  background: radial-gradient(circle, rgba(255, 200, 87, .25), rgba(255, 200, 87, 0) 66%);
  transform: translate(3px, 12px) scale(.62);
  animation-delay: -3.7s;
}

.presence-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 16px rgba(157, 237, 255, .72);
}

.identity { text-align: center; }

.identity h1 {
  margin: 0;
  font-size: clamp(44px, 12vw, 58px);
  line-height: 1;
  font-weight: 350;
  letter-spacing: -.045em;
  color: rgba(244, 248, 251, .78);
  text-shadow: 0 0 30px rgba(132, 215, 255, .11);
}

.identity p {
  margin: 13px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.spectral-line {
  width: 100%;
  height: 28px;
  margin: 31px 0 28px;
  overflow: visible;
}

.spectral-line path {
  fill: none;
  stroke: url(#spectrum);
  stroke-width: .9;
  stroke-linecap: round;
  opacity: .38;
}

.spectral-line .line-light {
  stroke-width: 1.15;
  opacity: .68;
  stroke-dasharray: 170 470;
  animation: light-travel 8s ease-in-out infinite alternate;
}

.download {
  min-height: 72px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(15, 24, 33, .98), rgba(8, 14, 20, .98)) padding-box,
    linear-gradient(105deg, rgba(138, 92, 255, .66), rgba(34, 211, 238, .66), rgba(255, 200, 87, .58), rgba(255, 102, 138, .6)) border-box;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform 150ms ease, box-shadow 180ms ease, filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.download span { font-size: 15px; font-weight: 620; }
.download small { color: var(--muted); font-size: 11px; }
.download:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 22px 62px rgba(0, 0, 0, .34), 0 0 26px rgba(34, 211, 238, .055); }
.download:active { transform: scale(.985); }
.download:focus-visible, button:focus-visible { outline: 2px solid rgba(34, 211, 238, .72); outline-offset: 4px; }

.diagnostics {
  margin-top: 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.diagnostic {
  min-height: 31px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.probe-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 0 transparent;
  transition: background 180ms ease, box-shadow 220ms ease;
}

.diagnostic output { color: var(--faint); font-variant-numeric: tabular-nums; }
.diagnostic[data-state="ok"] .probe-mark { background: var(--mint); box-shadow: 0 0 12px rgba(114, 230, 161, .45); }
.diagnostic[data-state="error"] .probe-mark { background: var(--rose); box-shadow: 0 0 12px rgba(255, 102, 138, .38); }
.diagnostic[data-state="checking"] .probe-mark { background: var(--cyan); animation: status-pulse 1.7s ease-in-out infinite; }

.diagnostic-summary {
  min-height: 29px;
  margin-top: 5px;
  padding-top: 9px;
  border-top: 1px solid rgba(137, 167, 190, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 11px;
}

button {
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(137, 167, 190, .2);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(15, 24, 33, .9);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:active { transform: scale(.97); }

noscript, footer {
  color: var(--faint);
  font-size: 10px;
  text-align: center;
}

noscript { margin-top: 16px; }
footer { margin-top: auto; padding-top: 32px; letter-spacing: .08em; }
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--muted); }

.policy-shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.policy-shell h1 { margin: 0 0 10px; font-size: clamp(30px, 7vw, 44px); font-weight: 560; }
.policy-shell h2 { margin: 34px 0 10px; font-size: 18px; font-weight: 620; }
.policy-shell p, .policy-shell li { color: var(--muted); line-height: 1.65; }
.policy-shell a { color: #8fdde0; }
.policy-shell .back { display: inline-block; margin-bottom: 38px; text-decoration: none; }
.policy-shell .quiet { color: var(--faint); font-size: 12px; }

.deletion-form {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--surface);
}

.deletion-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.deletion-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--raised);
  font: inherit;
}
.deletion-form input:focus { border-color: rgba(34, 211, 238, .58); box-shadow: 0 0 18px rgba(34, 211, 238, .08); }
.deletion-form button { width: 100%; min-height: 48px; margin-top: 12px; color: var(--ink); }
.deletion-form button:disabled { opacity: .55; }
#deletion-status { min-height: 24px; margin: 14px 0 0; font-size: 12px; }

@keyframes breathe {
  0%, 100% { opacity: .32; scale: .93; }
  50% { opacity: .54; scale: 1.08; }
}

@keyframes light-travel {
  from { stroke-dashoffset: 180; opacity: .42; }
  to { stroke-dashoffset: -360; opacity: .8; }
}

@keyframes status-pulse {
  0%, 100% { opacity: .45; box-shadow: 0 0 5px rgba(34, 211, 238, .24); }
  50% { opacity: 1; box-shadow: 0 0 13px rgba(34, 211, 238, .55); }
}

@media (max-height: 690px) {
  .shell { padding-top: 28px; }
  .presence { width: 118px; height: 118px; }
  .halo { width: 96px; height: 96px; margin: -48px; }
  .spectral-line { margin-top: 22px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .download { transition: none; }
}
