/*!
 * Elite Fiber (elitefiber.com) — Optical Infrastructure, OSP Buildouts & Redundant DIA
 */

/* ==========================================================================
   1. LOCAL SELF-HOSTED WEB FONTS (.WOFF2)
   ========================================================================== */
@font-face {
  font-family: 'EF Display';
  src: url('/fonts/ef-display-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EF Sans';
  src: url('/fonts/ef-sans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EF Sans';
  src: url('/fonts/ef-sans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EF Mono';
  src: url('/fonts/ef-mono-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. DESIGN TOKENS & MODERN CSS RESET
   ========================================================================== */
:root {
  --bg-trench: #040811;
  --bg-vault: #091122;
  --bg-card: rgba(11, 20, 38, 0.85);
  --bg-card-hover: rgba(16, 29, 54, 0.94);
  --laser-cyan: #00F0FF;
  --laser-blue: #38BDF8;
  --fiber-emerald: #10B981;
  --smf-amber: #F59E0B;
  --dwdm-violet: #8B5CF6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-laser: rgba(0, 240, 255, 0.42);
  --font-display: 'EF Display', system-ui, -apple-system, sans-serif;
  --font-sans: 'EF Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'EF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-trench);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-trench);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--laser-cyan);
  color: #040811;
}

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

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

/* ==========================================================================
   3. OPTICAL GRID & DWDM SPECTRUM ACCENTS
   ========================================================================== */
.bg-optical-grid {
  background-color: var(--bg-trench);
  background-image:
    radial-gradient(circle at 16% 14%, rgba(0, 240, 255, 0.08), transparent 38%),
    radial-gradient(circle at 84% 20%, rgba(16, 185, 129, 0.08), transparent 42%),
    radial-gradient(circle at 50% 88%, rgba(245, 158, 11, 0.06), transparent 45%),
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

.font-mono-tech {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.text-optical-gradient {
  background: linear-gradient(125deg, #FFFFFF 0%, #7DD3FC 34%, #00F0FF 65%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-bottom: 0.16em;
  padding-right: 0.08em;
  overflow: visible;
}

/* DWDM Wavelength Top Spectrum Bar */
.optical-spectrum-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #00F0FF 0%, #10B981 36%, #F59E0B 72%, #8B5CF6 100%);
}

/* ==========================================================================
   4. LAYOUT SHELL & CONTAINERS
   ========================================================================== */
.container-shell {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fiber-card-shell {
  position: relative;
  background: linear-gradient(165deg, rgba(11, 19, 36, 0.92) 0%, rgba(5, 9, 19, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow:
    0 28px 75px -20px rgba(0, 0, 0, 0.85),
    0 0 45px -15px rgba(0, 240, 255, 0.09),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.noc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(4, 8, 17, 0.78);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  border: 1px solid var(--border-laser);
  background: #060C1A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-lockup:hover .brand-emblem {
  transform: scale(1.04);
  border-color: var(--laser-cyan);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  line-height: 1.15;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--laser-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-right: 0.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--laser-cyan);
}

/* ==========================================================================
   6. HERO SECTION & INTERACTIVE OPTICAL RING TOPOLOGY
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2.75rem 2.25rem 2.5rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 3.5rem 3rem 3rem;
  }
}

.optical-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #34D399;
  margin-bottom: 1.25rem;
}

.laser-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--fiber-emerald);
  box-shadow: 0 0 10px var(--fiber-emerald);
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 4.2vw, 3.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.74;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 1.6rem;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Spec Badges */
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #E2E8F0;
}

.spec-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--laser-cyan);
}

/* Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.btn-laser {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #00F0FF 0%, #0EA5E9 100%);
  color: #030711;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px -8px rgba(0, 240, 255, 0.55);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-laser:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 14px 32px -6px rgba(0, 240, 255, 0.7);
}

.btn-noc-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.2rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.btn-noc-secondary:hover {
  border-color: var(--laser-cyan);
  color: var(--laser-cyan);
  background: rgba(18, 30, 54, 0.95);
}

/* Right Column: Optical Ring & OSP Schematic Card */
.otdr-card {
  background: rgba(6, 11, 23, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.85);
}

.otdr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.mode-switch-group {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.45rem;
  padding: 0.18rem;
  gap: 0.2rem;
}

.mode-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 0.3rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.mode-btn.active {
  background: var(--laser-cyan);
  color: #030711;
  font-weight: 600;
}

.otdr-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.otdr-metric {
  background: rgba(12, 20, 38, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
}

.otdr-metric-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.otdr-metric-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--laser-cyan);
  font-weight: 500;
}

/* ==========================================================================
   7. THREE CORE CAPABILITY PILLARS
   ========================================================================== */
.section-block {
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 2.25rem;
}

@media (min-width: 980px) {
  .section-block {
    padding: 3.25rem 3rem;
  }
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--laser-cyan);
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  color: #FFFFFF;
  line-height: 1.22;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 860px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.95rem;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-laser);
  background: var(--bg-card-hover);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.65rem;
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laser-cyan);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.service-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.66;
  margin-bottom: 1.25rem;
}

.service-specs {
  list-style: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-specs li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-specs li::before {
  content: "▸";
  color: var(--laser-cyan);
}

/* ==========================================================================
   8. ARCHITECTURE & RESILIENCE HIGHLIGHTS
   ========================================================================== */
.resilience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 780px) {
  .resilience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resilience-item {
  background: rgba(8, 14, 27, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 3px solid var(--laser-cyan);
  border-radius: 0.65rem;
  padding: 1.25rem 1.35rem;
}

.resilience-item.tier-emerald {
  border-left-color: var(--fiber-emerald);
}

.resilience-item.tier-amber {
  border-left-color: var(--smf-amber);
}

.resilience-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--laser-cyan);
  margin-bottom: 0.25rem;
}

.resilience-item.tier-emerald .resilience-tag {
  color: #34D399;
}

.resilience-item.tier-amber .resilience-tag {
  color: #FBBF24;
}

.resilience-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.resilience-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* ==========================================================================
   9. FOOTER & TOAST
   ========================================================================== */
.noc-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 15, 0.92);
  padding: 1.65rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toast-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.65rem;
  background: #091326;
  border: 1px solid var(--laser-cyan);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  pointer-events: none;
}

.toast-banner.active {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .noc-header {
    padding: 1.1rem 1.25rem;
  }
  .hero-grid, .section-block {
    padding: 1.85rem 1.25rem;
  }
  .nav-links {
    display: none;
  }
}
