/* ============================================================
   CoreGuardian.AI — Coming Soon Page
   Style: Cyberpunk / Dark OLED + HUD Aesthetic
   Fonts: Hammersmith One · DM Sans · DM Mono
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:             #0A1A13;
  --bg-surface:     rgba(10, 26, 19, 0.82);
  --green-bright:   #7DFF8A;
  --green-mid:      #4ADB6A;
  --green-dim:      rgba(125, 255, 138, 0.08);
  --green-glow:     rgba(125, 255, 138, 0.18);
  --teal:           #00D4AA;
  --teal-dim:       rgba(0, 212, 170, 0.08);
  --teal-glow:      rgba(0, 212, 170, 0.25);
  --white:          #FFFFFF;
  --white-dim:      rgba(255, 255, 255, 0.60);
  --white-faint:    rgba(255, 255, 255, 0.06);
  --white-muted:    rgba(255, 255, 255, 0.25);
  --border:         rgba(125, 255, 138, 0.15);
  --border-focus:   var(--green-bright);
  --error:          #FF5C6E;
  --error-dim:      rgba(255, 92, 110, 0.12);

  --font-head:      'Hammersmith One', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'DM Mono', monospace;

  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:        cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       150ms;
  --dur-base:       260ms;
  --dur-slow:       420ms;

  --nav-h:          64px;
  --foot-h:         48px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  cursor: crosshair;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--green-bright);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 2px;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* ── Grid Background ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(125, 255, 138, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 138, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* ── Radial Glow ───────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    rgba(0, 212, 170, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── Scan Line ─────────────────────────────────────────────── */
.scanline {
  position: fixed;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  z-index: 50;
  animation: scanDown 8s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes scanDown {
  from { top: -2px; }
  to   { top: 100dvh; }
}

/* ── Particle Field ────────────────────────────────────────── */
.particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -4px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--green-bright);
  opacity: 0;
  animation: floatUp var(--dur, 12s) var(--delay, 0s) linear infinite;
}

@keyframes floatUp {
  0%   { opacity: 0;   transform: translateY(0)     translateX(0); }
  8%   { opacity: 0.7; }
  88%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translateY(-100dvh) translateX(var(--drift, 0px)); }
}

/* ── HUD Corner Brackets ───────────────────────────────────── */
.corner {
  position: fixed;
  width: 28px;
  height: 28px;
  z-index: 5;
  opacity: 0.4;
  pointer-events: none;
}
.corner.tl { top: 24px;    left: 24px;  border-top:    1px solid var(--green-bright); border-left:   1px solid var(--green-bright); }
.corner.tr { top: 24px;    right: 24px; border-top:    1px solid var(--green-bright); border-right:  1px solid var(--green-bright); }
.corner.bl { bottom: 24px; left: 24px;  border-bottom: 1px solid var(--green-bright); border-left:   1px solid var(--green-bright); }
.corner.br { bottom: 24px; right: 24px; border-bottom: 1px solid var(--green-bright); border-right:  1px solid var(--green-bright); }

/* ── Top Navigation Bar ────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 26, 19, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  animation: fadeDown 0.9s var(--ease-out) 0.2s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(125, 255, 138, 0.35));
}

.top-bar-name {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  user-select: none;
}

.top-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Pulse Dot ─────────────────────────────────────────────── */
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

/* ── Main Wrapper ──────────────────────────────────────────── */
.wrapper {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 24px calc(var(--foot-h) + 40px);
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Stagger FadeUp Utility ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo-wrap {
  margin-bottom: 36px;
  animation: logoReveal 1.4s var(--ease-out) 0.4s both;
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.7); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 28px rgba(125, 255, 138, 0.45))
    drop-shadow(0 0 60px rgba(0, 212, 170, 0.2));
  animation: logoFloat 6s ease-in-out 2s infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
    filter:
      drop-shadow(0 0 28px rgba(125, 255, 138, 0.45))
      drop-shadow(0 0 60px rgba(0, 212, 170, 0.2));
  }
  50% {
    transform: translateY(-9px);
    filter:
      drop-shadow(0 0 44px rgba(125, 255, 138, 0.65))
      drop-shadow(0 0 88px rgba(0, 212, 170, 0.32));
  }
}

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp 0.9s var(--ease-out) 0.8s both;
}

/* ── Headline ──────────────────────────────────────────────── */
.headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 6.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 14px;
  animation: fadeUp 0.9s var(--ease-out) 1s both;
}

.headline span {
  color: var(--green-bright);
  display: inline-block;
  animation: headlineGlow 4s ease-in-out 2.5s infinite;
}

@keyframes headlineGlow {
  0%, 100% {
    color: var(--green-bright);
    text-shadow: none;
  }
  50% {
    color: #AFFFB7;
    text-shadow:
      0 0 18px rgba(125, 255, 138, 0.55),
      0 0 40px rgba(125, 255, 138, 0.2);
  }
}

/* ── Sub-headline ──────────────────────────────────────────── */
.sub-headline {
  font-family: var(--font-head);
  font-size: clamp(20px, 3.5vw, 38px);
  color: var(--teal);
  margin-bottom: 28px;
  animation: fadeUp 0.9s var(--ease-out) 1.1s both;
}

/* ── Descriptor ────────────────────────────────────────────── */
.descriptor {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 44px;
  animation: fadeUp 0.9s var(--ease-out) 1.3s both;
}

/* ── Pillars ───────────────────────────────────────────────── */
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
  animation: fadeUp 0.9s var(--ease-out) 1.6s both;
  padding: 0;
}

.pillar {
  border: 1px solid var(--border);
  background: var(--white-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white-muted);
  text-transform: uppercase;
  transition:
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring);
  cursor: default;
  user-select: none;
}

.pillar:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(125, 255, 138, 0.07);
  box-shadow: 0 0 16px rgba(125, 255, 138, 0.12), inset 0 0 12px rgba(125, 255, 138, 0.04);
  transform: translateY(-2px);
}

/* ── Coming Soon ───────────────────────────────────────────── */
.coming-soon-wrap {
  margin-bottom: 44px;
  animation: fadeUp 0.9s var(--ease-out) 1.8s both;
}

.coming-soon-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--white-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.05);
  padding: 14px 36px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 0.22em;
  color: var(--teal);
  position: relative;
  overflow: hidden;
}

/* Sweep shimmer on badge */
.coming-soon-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 170, 0.12),
    transparent
  );
  animation: badgeSweep 3s linear 2.5s infinite;
}

@keyframes badgeSweep {
  from { left: -110%; }
  to   { left: 210%; }
}

/* Badge dot indicator */
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}

/* ── Horizontal Rule ───────────────────────────────────────── */
.h-rule {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-bright), transparent);
  margin: 0 auto 44px;
  animation: fadeUp 0.9s var(--ease-out) 1.9s both;
}

/* ── Notify Section ────────────────────────────────────────── */
.notify-section {
  width: 100%;
  max-width: 440px;
  animation: fadeUp 0.9s var(--ease-out) 2s both;
}

.notify-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

/* ── Form ──────────────────────────────────────────────────── */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ── Field Wrap ────────────────────────────────────────────── */
.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--white-muted);
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.field-wrap:focus-within .field-label {
  color: var(--green-bright);
}

/* ── Inputs ────────────────────────────────────────────────── */
.notify-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  outline: none;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  border-radius: 2px;
  min-height: 48px; /* Touch target ≥ 44px */
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
  -webkit-appearance: none;
  touch-action: manipulation;
}

.notify-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-weight: 300;
}

.notify-input:hover {
  border-color: rgba(125, 255, 138, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.notify-input:focus {
  border-color: var(--green-bright);
  background: rgba(125, 255, 138, 0.04);
  box-shadow: 0 0 0 3px rgba(125, 255, 138, 0.08), 0 0 14px rgba(125, 255, 138, 0.1);
}

.notify-input.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
  background: rgba(255, 92, 110, 0.04);
}

/* ── Field Errors ──────────────────────────────────────────── */
.field-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--error);
  min-height: 1em;
  padding-left: 2px;
  animation: fadeUp 0.25s var(--ease-out) both;
}

.submit-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--error);
  letter-spacing: 0.06em;
  text-align: center;
  min-height: 1em;
}

/* ── Submit Button ─────────────────────────────────────────── */
@keyframes spinCW {
  to { transform: rotate(360deg); }
}

.notify-btn {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-height: 52px; /* Touch target ≥ 44px */
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--green-bright);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-fast);
  touch-action: manipulation;
}

/* Shimmer on button hover */
.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--dur-base);
}

.notify-btn:hover:not(:disabled) {
  background: #AFFFB7;
  box-shadow: 0 0 24px rgba(125, 255, 138, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.notify-btn:hover::before {
  opacity: 1;
  animation: shimmerSlide 1s linear infinite;
}

@keyframes shimmerSlide {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

.notify-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(125, 255, 138, 0.25);
}

.notify-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-label {
  position: relative;
  z-index: 1;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 26, 19, 0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spinCW 0.65s linear infinite;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.notify-btn.is-loading .btn-spinner {
  display: block;
}

.notify-btn.is-loading .btn-label {
  opacity: 0.7;
}

/* ── Focus visible ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.notify-input:focus-visible {
  outline: none;
}

/* ── Success Confirmation ──────────────────────────────────── */
.notify-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.confirm-badge {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--teal);
  border: 1px solid rgba(0, 212, 170, 0.3);
  background: rgba(0, 212, 170, 0.06);
  padding: 14px 32px;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.1);
  animation: confirmGlow 3s ease-in-out infinite;
}

@keyframes confirmGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(0, 212, 170, 0.1); }
  50%       { box-shadow: 0 0 36px rgba(0, 212, 170, 0.22); }
}

.confirm-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--white-muted);
}

/* ── Bottom Footer Bar ─────────────────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(10, 26, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  user-select: none;
}

/* ── Selection ─────────────────────────────────────────────── */
::selection {
  background: rgba(125, 255, 138, 0.22);
  color: var(--white);
}

/* ── Responsive: Mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  .top-bar {
    padding: 0 20px;
  }

  .top-bar-name {
    font-size: 12px;
  }

  .corner.tl, .corner.tr, .corner.bl, .corner.br {
    display: none; /* clean on small screens */
  }

  .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .coming-soon-badge {
    padding: 12px 24px;
    letter-spacing: 0.14em;
  }
}

/* ── Responsive: Tablet ────────────────────────────────────── */
@media (min-width: 640px) {
  .wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ── Responsive: Desktop ───────────────────────────────────── */
@media (min-width: 1024px) {
  .corner {
    width: 36px;
    height: 36px;
  }
  .corner.tl { top: 28px;    left: 28px; }
  .corner.tr { top: 28px;    right: 28px; }
  .corner.bl { bottom: 28px; left: 28px; }
  .corner.br { bottom: 28px; right: 28px; }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Keep opacity visible for all animated elements */
  .logo-wrap,
  .eyebrow,
  .headline,
  .sub-headline,
  .descriptor,
  .pillars,
  .coming-soon-wrap,
  .h-rule,
  .notify-section,
  .top-bar,
  .notify-confirm {
    opacity: 1 !important;
    transform: none !important;
  }

  .particle-field,
  .scanline {
    display: none;
  }

  body::before {
    animation: none;
    background-position: 0 0;
  }
}
