/* ==========================================================================
   REDEFIINE // STEALTH INFRASTRUCTURE DESIGN SYSTEM
   Tone: Surgical Monochromatic, Cold Titanium, Razor-Sharp Geometry
   Strict Rule: Zero Rounded Corners (border-radius: 0)
   ========================================================================== */

:root {
  /* Color Palette - Cold Monochromatic */
  --bg-core: #060709;
  --bg-card: rgba(10, 12, 16, 0.82);
  --bg-card-hover: rgba(14, 17, 23, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-sharp: rgba(255, 255, 255, 0.20);
  --border-active: #FFFFFF;

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #5A6577;
  --text-dim: #333D4B;

  /* Dynamic Accent Theme (Randomly set on load from [Orange, Sky, Yellow]) */
  --accent-theme: #38E1FF;
  --accent-theme-rgb: 56, 225, 255;
  --accent-theme-glow: rgba(56, 225, 255, 0.45);

  --accent-beacon: var(--accent-theme);

  /* Button Specific - High Contrast Sharp Tactile */
  --btn-bg: #FFFFFF;
  --btn-text: #000000;
  --btn-hover-bg: #F1F5F9;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion & Dynamics */
  --ease-sharp: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-sharp);
  --transition-smooth: 0.35s var(--ease-sharp);

  /* Dynamic Mouse Variables (Updated via script.js) */
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  /* Strict sharp corners across the entire interface */
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   AMBIENT BACKGROUND & SURGICAL GRID
   ========================================================================== */

.ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(650px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.038),
      transparent 70%);
  transition: opacity 0.5s ease;
}

.background-grid {
  display: none;
}

.grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(6, 7, 9, 0.85) 100%);
  z-index: 1;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.page-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 5.5rem 3.5rem 2.5rem 3.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Fixed Glassmorphic Top Nav */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(6, 7, 9, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-wordmark-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}

.wordmark-svg {
  display: block;
  overflow: visible;
  height: 28px;
  width: 120px;
}

.brand-svg-text {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 26px;
  fill: #FFFFFF;
  letter-spacing: 0.04em;
}

/* Kinetic Rotators (Sleek, Non-colliding, Flush with Cap-Height) */
@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.rot-tri {
  animation: spin-cw 4.5s linear infinite;
  transform-origin: 75.6px 6.8px;
}

.rot-sq {
  animation: spin-ccw 5.5s linear infinite;
  transform-origin: 83.6px 6.8px;
}

.brand-wordmark-link:hover .rot-tri {
  animation-duration: 2.2s;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.brand-wordmark-link:hover .rot-sq {
  animation-duration: 2.6s;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-beacon);
  box-shadow: 0 0 8px var(--accent-beacon);
  animation: pulse-beacon 2.5s infinite ease-in-out;
}

@keyframes pulse-beacon {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-beacon);
  }
}

/* ==========================================================================
   HERO & SPATIAL CARD (SHARP ANTIGRAVITY ENGINE)
   ========================================================================== */

.hero-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  padding: 2.5rem 0;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  padding: 4.2rem 4.8rem;
  box-shadow:
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
  will-change: transform;
}

.hero-card:hover {
  border-color: var(--border-sharp);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}

/* Card Header Coordinates */
.card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2.6rem;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Eyebrow / Premise */
.eyebrow-container {
  margin-bottom: 1.4rem;
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  opacity: 0.95;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  display: inline-block;
  text-transform: uppercase;
}

/* Main Headline - Maximum Dominance & Visual Punch */
.main-headline {
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
}

.headline-primary {
  color: var(--text-primary);
}

.headline-accent {
  color: #FFFFFF;
}

/* Dynamic Unified Accent System */
.theme-accent-fill {
  fill: var(--accent-theme) !important;
  transition: fill 0.3s ease;
}

.theme-accent-text {
  color: var(--accent-theme) !important;
  -webkit-text-fill-color: var(--accent-theme) !important;
  text-shadow: 0 0 35px var(--accent-theme-glow);
  font-weight: 700;
  display: inline-block;
  transition: color 0.3s ease;
}

/* ==========================================================================
   SHARP WAITLIST CTA FORM & ANTIGRAVITY BUTTON
   ========================================================================== */

.cta-form {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin-bottom: 2.2rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(4, 5, 7, 0.92);
  border: 1px solid var(--border-sharp);
  padding: 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper:focus-within {
  border-color: var(--border-active);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(255, 255, 255, 0.08);
}

.input-prefix {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
  user-select: none;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 1.1rem 1rem;
  letter-spacing: -0.01em;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

/* Sharp Antigravity Waitlist Button */
.cta-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid #FFFFFF;
  padding: 0 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.cta-submit-btn:hover {
  background: #000000;
  color: #FFFFFF;
  box-shadow:
    0 0 0 1px #FFFFFF,
    0 4px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cta-submit-btn:active {
  transform: translateY(1px);
}

.cta-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.cta-submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Feedback message */
.feedback-message {
  min-height: 24px;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.feedback-message.show {
  opacity: 1;
  transform: translateY(0);
}

.feedback-message.success {
  color: #34D399;
}

.feedback-message.error {
  color: #F87171;
}

/* Trust Badge */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.lock-icon {
  stroke: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.08);
}

.domain-tag {
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (ANTIGRAVITY MOBILE OPTIMIZATION)
   ========================================================================== */

@media (max-width: 900px) {
  .page-container {
    padding: 5.5rem 2rem 2.5rem 2rem;
  }

  .nav-content {
    padding: 0 2rem;
  }

  .hero-card {
    padding: 3.2rem 2.4rem;
  }

  .main-headline {
    font-size: 3.1rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  /* Sticky Mobile Nav Bar */
  .sticky-nav {
    height: 58px;
  }

  .nav-content {
    padding: 0 1.25rem;
  }

  .brand-cluster {
    gap: 0.6rem;
  }

  .wordmark-svg {
    height: 24px;
    width: auto;
  }

  .brand-badge {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.08em;
  }

  .status-indicator {
    font-size: 0.64rem;
    gap: 0.45rem;
  }

  /* Mobile Spatial Hero Card */
  .page-container {
    padding: 4.8rem 1.15rem 2rem 1.15rem;
  }

  .hero-viewport {
    padding: 1rem 0;
  }

  .hero-card {
    padding: 2.2rem 1.35rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
  }

  .card-meta-bar {
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
  }

  .meta-tag {
    font-size: 0.62rem;
  }

  .eyebrow-container {
    margin-bottom: 1.1rem;
  }

  .eyebrow-text {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .main-headline {
    font-size: clamp(2.1rem, 7.8vw, 2.75rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
  }

  /* Form Vertical Ergonomic Stacking */
  .input-wrapper {
    flex-direction: column;
    background: transparent;
    border: none;
    gap: 0.75rem;
  }

  #email-input {
    width: 100%;
    height: 54px;
    background: rgba(10, 13, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 0 1.2rem;
    font-size: 0.95rem;
    color: #FFFFFF;
  }

  #email-input:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
  }

  .input-prefix {
    display: none !important;
  }

  .cta-submit-btn {
    width: 100%;
    height: 54px;
    padding: 0 1.5rem;
    justify-content: center;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }

  /* Mobile Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1.5rem;
    font-size: 0.68rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-card {
    transform: none !important;
  }

  .ambient-spotlight {
    display: none !important;
  }
}