/* raphaelsepulveda.com — Coming Soon
   Hi-tech / observatory / terminal aesthetic. */

:root {
  --bg:        #000000;
  --surface-1: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --fg:        #f4f4f5;
  --fg-2:      #a1a1aa;
  --fg-3:      #52525b;
  --fg-4:      #27272a;
  --ok:        oklch(0.78 0.15 145);

  --accent:      oklch(0.82 0.28 27.5);
  --accent-dim:  oklch(0.55 0.196 27.5);
  --accent-glow: oklch(0.82 0.28 27.5 / 0.35);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#root { min-height: 100%; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "cv01"; }
.dim  { color: var(--fg-3); }
.accent { color: var(--accent); }
.ok   { color: var(--ok); }
.err  { color: oklch(0.7 0.18 25); }
.small { font-size: 11px; }

/* ── page shell ───────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

/* ── backgrounds ──────────────────────────────────────────── */
.bg-particles {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("assets/particles-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: -3;
  filter: contrast(1.05) brightness(0.95);
  mask-image: radial-gradient(ellipse 130% 90% at 50% 70%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 130% 90% at 50% 70%, #000 30%, transparent 90%);
}

.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -2;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 85%);
}

.bg-vignette {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 30%, rgba(0,0,0,0.7) 90%),
    radial-gradient(circle at 20% 20%, var(--accent-glow), transparent 40%);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.bg-scan {
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ── corner crosshairs ───────────────────────────────────── */
.crosshair {
  position: fixed;
  width: 22px; height: 22px;
  color: var(--fg-3);
  z-index: 5;
  pointer-events: none;
}
.ch-tl { top: 16px; left: 16px; }
.ch-tr { top: 16px; right: 16px; }
.ch-bl { bottom: 16px; left: 16px; }
.ch-br { bottom: 16px; right: 16px; }

/* ── topbar ──────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 56px;
}

/* ── main grid ───────────────────────────────────────────── */
.main {
  display: grid;
  align-items: center;
  padding: 32px 56px 48px;
  gap: 64px;
}
.layout-stack .main {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.layout-stack .hero {
  text-align: center;
  margin: 0 auto;
}
.layout-stack .kicker { justify-content: center; }
.layout-stack .tagline { margin-left: auto; margin-right: auto; }
.layout-stack .status-block {
  border-left: none;
  border-top: 2px solid var(--accent);
  border-radius: 4px 4px 0 0;
  text-align: left;
}
.layout-stack .signup { margin-left: auto; margin-right: auto; }

.hero { max-width: 760px; }
.layout-stack .hero { max-width: 920px; }

/* ── kicker ──────────────────────────────────────────────── */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  margin-bottom: 32px;
}
.bracket .b-l, .bracket .b-r {
  color: var(--accent);
  margin: 0 6px;
}
.bracket .b-c { color: var(--accent); }

/* ── name ────────────────────────────────────────────────── */
.name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--fg);
  position: relative;
  display: inline-block;
  text-wrap: balance;
}

.name.glitch .name-l1,
.name.glitch .name-l2 {
  position: absolute; inset: 0;
  pointer-events: none;
  font-weight: inherit;
}
.name.glitch .name-l1 {
  color: var(--accent);
  animation: glitch-l 4.5s infinite steps(1);
  mix-blend-mode: screen;
  opacity: 0.6;
  filter: blur(0.3px);
}
.name.glitch .name-l2 {
  color: oklch(0.7 0.18 25);
  animation: glitch-r 5.2s infinite steps(1);
  mix-blend-mode: screen;
  opacity: 0.45;
}
@keyframes glitch-l {
  0%, 92%, 100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-2px, 1px); clip-path: inset(20% 0 60% 0); }
  94% { transform: translate(-1px, -2px); clip-path: inset(60% 0 20% 0); }
  95% { transform: translate(-3px, 0); clip-path: inset(40% 0 40% 0); }
  96% { transform: translate(0, 0); }
}
@keyframes glitch-r {
  0%, 90%, 100% { transform: translate(0,0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(2px, -1px); clip-path: inset(70% 0 10% 0); }
  92% { transform: translate(1px, 1px); clip-path: inset(10% 0 70% 0); }
  93% { transform: translate(2px, 0); clip-path: inset(45% 0 35% 0); }
  94% { transform: translate(0, 0); }
}

/* ── role ────────────────────────────────────────────────── */
.role {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  margin-bottom: 24px;
}
.role-prefix { margin-right: 8px; color: var(--accent); }

/* ── status block ────────────────────────────────────────── */
.status-block {
  margin-bottom: 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface-1);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
}
.status-block::before {
  content: "";
  position: absolute;
  top: 8px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* progress */
.progress { display: flex; flex-direction: column; gap: 10px; }
.progress-head, .progress-foot {
  display: flex; justify-content: space-between;
  font-size: 11px;
}
.progress-track {
  height: 4px;
  background: var(--fg-4);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.3s ease;
}

/* ── signup ──────────────────────────────────────────────── */
.signup {
  margin-bottom: 36px;
  max-width: 560px;
}
.signup-row {
  display: flex; align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}
.signup-prompt {
  display: flex; align-items: center;
  padding: 0 12px 0 14px;
  color: var(--accent);
  font-size: 14px;
}
.signup-input {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg);
  padding: 14px 8px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-mono);
}
.signup-input::placeholder { color: var(--fg-3); }
.signup-btn {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--accent);
  padding: 0 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  font-family: var(--font-mono);
  white-space: nowrap;
}
.signup-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #000;
}
.signup-btn:disabled { cursor: default; opacity: 0.85; }
.state-done .signup-btn { color: var(--ok); }
.signup-foot {
  margin-top: 10px;
  font-size: 11px;
}

/* ── footbar ─────────────────────────────────────────────── */
.footbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 56px 32px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-top: 1px dashed var(--line);
}
.foot-r { text-align: right; }

/* status dot */
.status-dot {
  position: relative;
  width: 8px; height: 8px;
  display: inline-block;
}
.dot-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.dot-pulse {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .topbar, .main, .footbar { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .footbar { grid-template-columns: 1fr; text-align: left; }
  .foot-c, .foot-r { text-align: left; }
  .crosshair { display: none; }
}
