/* === DESIGN TOKENS === */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* TCS Signal Palette — dark, cold, authoritative */
  --color-bg:           #080a09;
  --color-surface:      #0d0f0d;
  --color-surface-2:    #111411;
  --color-border:       #1a1f1a;
  --color-border-lit:   #233023;

  --color-text:         #c8d4c8;
  --color-text-muted:   #637063;
  --color-text-faint:   #2e3a2e;

  /* Signal green — radar, terminal, alive */
  --color-signal:        #2dff6e;
  --color-signal-dim:    #1a9940;
  --color-signal-faint:  #0d3d1a;
  --color-signal-glow:   rgba(45, 255, 110, 0.12);
  --color-signal-glow-strong: rgba(45, 255, 110, 0.22);

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
}

/* === LAYOUT === */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg);
}

/* === CANVAS BACKGROUND === */
#signal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

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

/* === VIGNETTE === */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(8,10,9,0.6) 70%,
    rgba(8,10,9,0.95) 100%
  );
  pointer-events: none;
}

/* === MAIN CONTENT === */
.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
  max-width: 720px;
}

/* === LOGO MARK === */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.logo-svg {
  width: clamp(48px, 8vw, 72px);
  height: auto;
  filter: drop-shadow(0 0 18px var(--color-signal));
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-text);
  filter: drop-shadow(0 0 10px var(--color-signal-glow));
}

/* === HEADLINE === */
.headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1rem + 5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.7s forwards;
}

.headline em {
  font-style: normal;
  color: var(--color-signal);
  text-shadow: 0 0 40px var(--color-signal-glow-strong);
}

/* === SUBLINE === */
.subline {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  max-width: 52ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.1s forwards;
}

/* === STATUS STRIP === */
.status-strip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-signal-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.5s forwards;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-signal);
  box-shadow: 0 0 8px var(--color-signal), 0 0 20px var(--color-signal-glow-strong);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* === NOTIFY FORM === */
.notify-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 1.8s forwards;
}

.notify-form {
  display: flex;
  gap: var(--space-2);
  width: 100%;
  max-width: 400px;
}

.notify-input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border-lit);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.notify-input::placeholder {
  color: var(--color-text-faint);
}

.notify-input:focus {
  border-color: var(--color-signal-dim);
  box-shadow: 0 0 0 3px var(--color-signal-faint);
}

.notify-btn {
  background: var(--color-signal-faint);
  border: 1px solid var(--color-signal-dim);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-signal);
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
  white-space: nowrap;
}

.notify-btn:hover {
  background: rgba(45, 255, 110, 0.15);
  box-shadow: 0 0 20px var(--color-signal-glow);
  transform: translateY(-1px);
}

.notify-btn:active {
  transform: translateY(0);
}

.notify-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}

.notify-success {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-signal);
  letter-spacing: 0.08em;
}

/* === FOOTER COORDINATES === */
.footer-coords {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 2.2s forwards;
  white-space: nowrap;
}

/* Footer spans */
.footer-short { display: none; }
.footer-full  { display: inline; }

/* Subline spans */
.subline-short { display: none; }
.subline-full  { display: inline; }

/* === CORNER MARKS === */
.corner {
  position: fixed;
  z-index: 10;
  width: 20px;
  height: 20px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}
.corner--tl { top: var(--space-6); left: var(--space-6); border-top: 1px solid var(--color-signal-dim); border-left: 1px solid var(--color-signal-dim); }
.corner--tr { top: var(--space-6); right: var(--space-6); border-top: 1px solid var(--color-signal-dim); border-right: 1px solid var(--color-signal-dim); }
.corner--bl { bottom: var(--space-6); left: var(--space-6); border-bottom: 1px solid var(--color-signal-dim); border-left: 1px solid var(--color-signal-dim); }
.corner--br { bottom: var(--space-6); right: var(--space-6); border-bottom: 1px solid var(--color-signal-dim); border-right: 1px solid var(--color-signal-dim); }

/* === SCAN LINE === */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.03) 3px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* === MOBILE === */
@media (max-width: 480px) {
  .notify-form {
    flex-direction: column;
  }
  .headline {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .corner { display: none; }
  .footer-coords {
    font-size: 0.6rem;
    white-space: nowrap;
    text-align: center;
    bottom: var(--space-4);
  }
  .footer-full  { display: none; }
  .footer-short { display: inline; }
  .status-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    line-height: 1.8;
  }
  .subline-full  { display: none; }
  .subline-short { display: inline; }
}
