/* ==========================================================================
   STRATUM — Coming Soon
   Design tokens: blueprint navy ground, cyan-white synthesis beam accent.
   ========================================================================== */

:root {
  /* Color */
  --bg-void: #05070b;
  --bg-panel: #0b0f16;
  --line-blueprint: rgba(90, 200, 220, 0.18);
  --line-blueprint-strong: rgba(120, 225, 240, 0.55);
  --cyan: #00eaff;
  --cyan-soft: #7fe9ff;
  --ink: #e9eef3;
  --ink-muted: #8b97a6;
  --ink-faint: #556170;
  --border-hair: rgba(160, 210, 225, 0.14);

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --loader-fade: 0.8s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LOADER OVERLAY
   ========================================================================== */

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(10, 22, 30, 0.9) 0%, var(--bg-void) 75%),
    var(--bg-void);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--loader-fade) var(--ease-out),
              visibility 0s linear var(--loader-fade);
}

.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transform: translate3d(0, 0, 0);
}

.dt-svg {
  width: min(46vw, 260px);
  height: auto;
  overflow: visible;
}

.dt-line {
  fill: none;
  stroke: var(--cyan-soft);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.dt-datum {
  stroke: var(--ink-faint);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.6;
}

/* Structural draw-in: stroke-dashoffset only (compositor-friendly with will-change) */
.dt-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dtDraw 2.6s var(--ease-out) infinite;
  will-change: stroke-dashoffset, opacity;
}

.dt-delay-1 { animation-delay: 0.35s; }
.dt-delay-2 { animation-delay: 0.7s; }

@keyframes dtDraw {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  28%  { opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  82%  { stroke-dashoffset: 0; opacity: 0.55; }
  100% { stroke-dashoffset: 0; opacity: 0.85; }
}

.dt-brace {
  stroke-width: 1;
  stroke-dasharray: 3 3;
  animation: dtPulseOpacity 3.2s ease-in-out infinite;
  will-change: opacity;
}

@keyframes dtPulseOpacity {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.55; }
}

.dt-node {
  fill: var(--cyan);
  opacity: 0.9;
  animation: dtNodePulse 1.8s ease-in-out infinite;
  will-change: opacity, transform;
  transform-box: fill-box;
  transform-origin: center;
}

.dt-node-b { animation-delay: 0.6s; }

@keyframes dtNodePulse {
  0%, 100% { opacity: 0.3; transform: scale3d(1, 1, 1); }
  50%      { opacity: 1;   transform: scale3d(1.6, 1.6, 1); }
}

/* Scanning plane: transform + opacity ONLY — GPU compositable, no layout cost */
.dt-scan-group {
  transform: translate3d(0, 0, 0);
  animation: dtScanSweep 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

@keyframes dtScanSweep {
  0%   { transform: translate3d(0, 16px, 0); }
  50%  { transform: translate3d(0, 336px, 0); }
  100% { transform: translate3d(0, 16px, 0); }
}

.dt-scan-plane { mix-blend-mode: screen; }
.dt-scan-core  { mix-blend-mode: screen; }

.loader-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.loader-dots::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: dtDots 1.4s steps(4, end) infinite;
}

@keyframes dtDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */

.landing-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.55) 0%, rgba(4, 6, 10, 0.8) 55%, rgba(2, 3, 5, 0.94) 100%),
    url("assets/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-out) 0.15s;
}

.landing-container.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Faint architectural grid over the wallpaper for AAA text contrast + brand cohesion */
.landing-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blueprint) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.12;
  pointer-events: none;
}

.hud-frame {
  position: fixed;
  inset: 20px;
  pointer-events: none;
  z-index: 2;
}

.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-blueprint-strong);
}
.hud-corner--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-corner--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-corner--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-corner--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 48px 0;
}

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

.brand-mark {
  color: var(--cyan);
  font-size: 14px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.28em;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border: 1px solid var(--border-hair);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(0, 234, 255, 0.8);
  animation: dtNodePulse 2s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cyan-soft);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0 0 26px;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(0, 234, 255, 0.08);
}

.lede {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 44px;
  font-weight: 400;
}

/* Subscription form */
.waitlist-form {
  width: 100%;
  max-width: 460px;
}

.input-shell {
  display: flex;
  align-items: stretch;
  background: rgba(10, 14, 20, 0.55);
  border: 1px solid var(--border-hair);
  border-radius: 10px;
  padding: 5px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.input-shell:focus-within {
  border-color: rgba(0, 234, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 234, 255, 0.08), 0 0 24px rgba(0, 234, 255, 0.12);
}

.input-shell input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
}

.input-shell input::placeholder {
  color: var(--ink-faint);
}

.input-shell button {
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: var(--cyan);
  color: #04141a;
  border: none;
  border-radius: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}

.input-shell button:hover {
  background: var(--cyan-soft);
  box-shadow: 0 0 22px rgba(0, 234, 255, 0.35);
}

.input-shell button:active {
  transform: scale3d(0.97, 0.97, 1);
}

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.form-note.is-success {
  color: var(--cyan-soft);
}

.form-note.is-error {
  color: #ff8a8a;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding: 28px 48px 34px;
  border-top: 1px solid var(--border-hair);
  background: rgba(3, 5, 8, 0.35);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col--rights {
  margin-left: auto;
  text-align: right;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-value {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}

a.footer-value:hover {
  color: var(--cyan-soft);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .site-header { padding: 24px 20px 0; }
  .status-pill span:not(.status-dot) { display: none; }
  .hero { padding: 32px 20px; }
  .lede { font-size: 15px; }
  .input-shell { flex-direction: column; border-radius: 12px; }
  .input-shell button { padding: 13px 16px; justify-content: center; margin-top: 4px; border-radius: 8px; }
  .site-footer { flex-direction: column; padding: 22px 20px 26px; gap: 16px; }
  .footer-col--rights { margin-left: 0; text-align: left; }
  .hud-frame { inset: 12px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .dt-draw, .dt-brace, .dt-node, .dt-scan-group, .status-dot, .loader-dots::after {
    animation: none !important;
  }
  .dt-draw { stroke-dashoffset: 0; opacity: 0.85; }
  .dt-scan-plane, .dt-scan-core { opacity: 0.5; }
  .loader-overlay, .landing-container {
    transition-duration: 0.01ms !important;
  }
}
