/* Coming Soon — STUDIO / NODE 01
   Ported from the Claude Design source `Coming Soon.dc.html`. */

:root {
  --bg: #07080a;
  --fg: oklch(0.93 0.005 250);

  /* UI accent (mint) — used by every static element in the source. */
  --accent: oklch(0.65 0.21 25);
  /* Deeper step of the same ramp. Large type only — at 3.1:1 it clears the
     threshold for big text but not for the 10px labels. */
  --accent-deep: oklch(0.50 0.16 18);
  /* Glyph-field accent — the design's `accentColor` prop default. */
  --accent-field: #f54748;

  --mute-72: oklch(0.72 0.01 250);
  --mute-66: oklch(0.66 0.01 250);
  --mute-62: oklch(0.62 0.01 250);
  --mute-60: oklch(0.6 0.01 250);
  --mute-58: oklch(0.58 0.01 250);
  --mute-56: oklch(0.56 0.01 250);

  --line-40: oklch(0.4 0.01 250);
  --line-35: oklch(0.35 0.01 250);
  --line-34: oklch(0.34 0.01 250);
  --track: oklch(0.26 0.01 250);

  --pad-y: clamp(16px, 3vh, 44px);
  --pad-x: clamp(20px, 3.5vw, 44px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}

body {
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--bg); }

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

/* ---------- layout ---------- */

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% 45%,
    rgba(7, 8, 10, 0) 30%,
    rgba(7, 8, 10, 0.72) 72%,
    rgba(7, 8, 10, 0.96) 100%
  );
}

.shell {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: var(--pad-y) var(--pad-x);
  gap: clamp(12px, 2.2vh, 24px);
  overflow: hidden;
}

/* ---------- header ---------- */

.head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-66);
}

.head-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-35);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-name { color: var(--fg); }

.head-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.4s steps(1, end) infinite;
}

/* ---------- main ---------- */

.main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(12px, 2.4vh, 34px);
  max-width: 1080px;
  min-height: 0;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute-62);
}

.rule {
  width: 42px;
  height: 1px;
  background: var(--line-40);
}

.cipher { color: var(--accent); }

.title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, min(8.4vw, 17vh), 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-em {
  font-style: italic;
  color: var(--accent-deep);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--mute-72);
  text-wrap: pretty;
}

@media (max-height: 460px) {
  .lede { display: none; }
}

/* ---------- progress ---------- */

.progress {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute-58);
}

.progress-value { color: var(--fg); }

.progress-track {
  position: relative;
  height: 3px;
  background: var(--track);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  background: var(--accent);
}

/* ---------- hold to decrypt ---------- */

.unlock {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hold {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 22px 13px 18px;
  border: 1px solid var(--line-34);
  border-radius: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: border-color 120ms linear;
}

.hold:hover { border-color: var(--mute-60); }

.hold:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.hold-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  opacity: 0.16;
}

.hold-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.hold-label {
  position: relative;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.secret {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--mute-60);
  min-height: 1em;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute-56);
}

.foot-meta {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  flex-wrap: wrap;
}

.foot-pulse {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-count {
  border: 1px solid var(--line-40);
  padding: 2px 7px;
  color: var(--fg);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .hold { transition: none; }
}
