/* ==========================================================================
   OLT 360 // Optical Line Terminal Monitoring & Management System
   Bootstrap 5 Theme & High-Performance Canvas Scroll Animation
   ========================================================================== */

:root {
  --bg-deep: #04070d;
  --bg-canvas: #070b14;
  --surface-card: rgba(6, 11, 20, 0.88);
  --surface-card-hover: rgba(10, 18, 32, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.15);

  /* Telecom Telemetry Wavelength Accents */
  --accent-cyan: #00d2ff;
  --accent-blue: #38bdf8;
  --accent-emerald: #00f59b;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-framer: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Global Base & Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.top-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text-pure);
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.3));
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-pure);
  line-height: 1.1;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulse-beacon 2s infinite ease-in-out;
  display: inline-block;
}

.pulse-dot.cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.pulse-dot.amber {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.pulse-dot.purple {
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

@keyframes pulse-beacon {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.45;
  }
}

/* --------------------------------------------------------------------------
   Hero Section: Scroll-Driven 240-Frame Canvas Engine
   -------------------------------------------------------------------------- */
.hero-scroll-track {
  position: relative;
  height: 500vh;
  /* 500vh total scroll distance for fluid scrubbing */
  background-color: var(--bg-deep);
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* 2D Canvas scrubbing layer */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 50px rgba(0, 210, 255, 0.16));
}

/* Intro Background Video */
.intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-framer);
  opacity: 1;
}

.intro-video.fade-out {
  opacity: 0;
}

/* Cinematic Contrast Vignette Overlay */
.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(4, 7, 13, 0.15) 0%, rgba(4, 7, 13, 0.55) 60%, rgba(4, 7, 13, 0.94) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, 0.85) 0%, transparent 16%, transparent 84%, rgba(4, 7, 13, 0.95) 100%);
}

/* Subtle optical grid backdrop */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --------------------------------------------------------------------------
   Scroll-Driven Feature Panels Container & HUD Cards
   -------------------------------------------------------------------------- */
.hero-feature-panels-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Frosted Glass Telemetry Feature Card */
.hero-feature-card {
  position: absolute;
  max-width: 500px;
  width: calc(100% - 3rem);
  background: var(--surface-card);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(0, 210, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-framer), transform 0.5s var(--ease-framer), filter 0.5s var(--ease-framer);
  filter: blur(10px);
}

/* Position 1 & 3: Left Top */
.hero-feature-card.pos-left-top {
  top: 96px;
  left: 5%;
  transform: translateY(-20px) scale(0.96);
}

.hero-feature-card.pos-left-top.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

/* Position 2 & 4: Left Bottom */
.hero-feature-card.pos-left-bottom {
  bottom: 85px;
  left: 5%;
  transform: translateY(20px) scale(0.96);
}

.hero-feature-card.pos-left-bottom.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

/* Distinct Glowing Accent Variants */
.hero-feature-card[data-stage="1"] {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 40px rgba(0, 210, 255, 0.15);
}

.hero-feature-card[data-stage="2"] {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 40px rgba(56, 189, 248, 0.15);
}

.hero-feature-card[data-stage="3"] {
  border-color: rgba(0, 245, 155, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 40px rgba(0, 245, 155, 0.15);
}

.hero-feature-card[data-stage="4"] {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 40px rgba(245, 158, 11, 0.15);
}

/* Typography inside card */
.hero-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.hero-feature-card[data-stage="2"] .hero-card-eyebrow {
  color: var(--accent-blue);
}

.hero-feature-card[data-stage="3"] .hero-card-eyebrow {
  color: var(--accent-emerald);
}

.hero-feature-card[data-stage="4"] .hero-card-eyebrow {
  color: var(--accent-amber);
}

.hero-card-title {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.hero-card-subhead {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.hero-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-card-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-mid);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.hero-card-pill.cyan {
  color: var(--accent-cyan);
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.08);
}

.hero-card-pill.blue {
  color: var(--accent-blue);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.hero-card-pill.emerald {
  color: var(--accent-emerald);
  border-color: rgba(0, 245, 155, 0.35);
  background: rgba(0, 245, 155, 0.08);
}

.hero-card-pill.purple {
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
}

.hero-card-pill.amber {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

/* --------------------------------------------------------------------------
   Minimalist Telemetry HUD & Scrubber (Bottom-Right Pinned)
   -------------------------------------------------------------------------- */
.hero-hud-bottom {
  position: absolute;
  bottom: 2rem;
  right: 5%;
  left: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  pointer-events: none;
  min-width: 270px;
}

.hud-meta-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hud-scrub-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.hud-scrub-progress {
  height: 100%;
  width: 0.4%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width 0.05s linear;
}

.hud-prompt-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: hud-bounce 2s infinite ease-in-out;
}

@keyframes hud-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-feature-card {
    max-width: 440px;
    padding: 1.4rem 1.6rem;
  }

  .hero-card-title {
    font-size: 1.45rem;
  }

  .hero-feature-card.pos-left-top {
    top: 86px;
    left: 4%;
  }

  .hero-feature-card.pos-left-bottom {
    bottom: 75px;
    left: 4%;
  }

  .hero-hud-bottom {
    right: 4%;
    min-width: 230px;
  }
}

@media (max-width: 767.98px) {
  .top-navbar {
    padding: 0.6rem 1rem;
  }

  .brand-title {
    font-size: 0.85rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-scroll-track {
    height: 400vh;
  }

  .hero-feature-card {
    width: calc(100% - 2rem);
    max-width: none;
    padding: 1.25rem 1.4rem;
  }

  .hero-feature-card.pos-left-top {
    top: 76px;
    left: 1rem;
    right: 1rem;
  }

  .hero-feature-card.pos-left-bottom {
    bottom: 84px;
    left: 1rem;
    right: 1rem;
  }

  .hero-card-title {
    font-size: 1.25rem;
  }

  .hero-card-subhead {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .hero-hud-bottom {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
    align-items: center;
    min-width: auto;
  }
}

/* --------------------------------------------------------------------------
   Static Launching Soon Mode Customizations
   -------------------------------------------------------------------------- */
.brand-logo-img {
  height: 35px;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .brand-logo-img {
    height: 20px;
  }
}

.nav-system-title {
  color: var(--text-pure);
  font-size: clamp(0.55rem, 2.5vw, 1.3rem);
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.2;
}

/* Premium Launch Showcase (Non-Box Design) */
.launch-showcase {
  position: relative;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-framer);
  max-width: 750px;

  /* Themed Dark Frosted Background (Anti-box shape) */
  background: rgb(4 15 10 / 0%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3.5rem 5rem;
  border-radius: 8px;
  border: 1px solid rgb(16 185 129 / 1%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(16, 185, 129, 0.05);
}

.launch-showcase.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Distinct Positions */
.launch-showcase.pos-left-top {
  top: 15%;
  left: 5%;
  text-align: left;
}

.launch-showcase.pos-left-bottom {
  bottom: 15%;
  left: 5%;
  text-align: left;
}

.launch-subhead {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.launch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.launch-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(165, 180, 252, 0.15));
}

.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: rgb(16 185 129 / 42%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s var(--ease-framer);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15), inset 0 0 15px rgba(16, 185, 129, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glow:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-glow i {
  color: var(--accent-emerald, #10b981);
  transition: transform 0.3s ease;
}

.btn-glow:hover i {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Premium Modal Customizations (Emerald Theme)
   -------------------------------------------------------------------------- */
.premium-modal {
  --modal-accent: #10b981;
  --modal-accent-glow: rgba(16, 185, 129, 0.4);
  --modal-bg-glow: rgba(16, 185, 129, 0.05);
  background: rgba(4, 15, 10, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px var(--modal-bg-glow);
  color: var(--text-pure);
}

.premium-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.premium-modal .modal-title {
  color: var(--modal-accent);
  letter-spacing: 0.1em;
}

.premium-modal .modal-title i {
  color: var(--modal-accent) !important;
}

.premium-modal .form-label i {
  color: var(--modal-accent) !important;
}

.premium-input,
.premium-input-group {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.premium-input:focus {
  background: var(--modal-bg-glow) !important;
  border-color: var(--modal-accent) !important;
  box-shadow: 0 0 15px var(--modal-accent-glow) !important;
}

.premium-input-group {
  color: var(--modal-accent) !important;
  font-weight: bold;
}

.custom-radio:checked {
  background-color: var(--modal-accent);
  border-color: var(--modal-accent);
  box-shadow: 0 0 10px var(--modal-accent-glow);
}

.premium-submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
  color: #fff;
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fixed Footer */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: linear-gradient(to top, rgba(4, 7, 13, 0.9) 0%, rgba(4, 7, 13, 0) 100%);
  pointer-events: none;
}

.fixed-footer span {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* Light Theme Modal Backdrop Overlay */
.modal-backdrop {
  background-color: rgb(255 255 255 / 20%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show {
  opacity: 1 !important;
}