/* ============================================================
   47NETWORK — MAIN STYLESHEET
   Brand: Space Black / Panel Indigo / Neon Cyan / Violet / Magenta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --space-black:   #050718;
  --panel-indigo:  #222243;
  --panel-indigo2: #1a1a38;
  --neon-cyan:     #42B7FA;
  --neon-violet:   #5C50D6;
  --neon-magenta:  #E159D9;
  --ember:         #ED835B;
  --white:         #f0f2ff;
  --muted:         #8888aa;

  --glass-bg:      rgba(34,34,67,0.35);
  --glass-border:  rgba(92,80,214,0.25);
  --glass-blur:    blur(18px);

  --grad-neon:     linear-gradient(90deg, #42B7FA, #5C50D6, #E159D9);
  --grad-hero:     linear-gradient(135deg, #42B7FA 0%, #5C50D6 45%, #E159D9 100%);
  --grad-ember:    linear-gradient(90deg, #ED835B, #E159D9);

  --font-display:  'Syne', sans-serif;
  --font-body:     'Space Grotesk', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --radius-card:   16px;
  --radius-sm:     8px;
  --transition:    150ms ease-out;
  --transition-md: 400ms ease-out;

  --nav-h:         72px;
  --max-w:         1280px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-violet) var(--panel-indigo2);
}

body {
  background: var(--space-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(2rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.display-lg {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 700;
  overflow-wrap: break-word;
}

.body-lg { font-size: 1.125rem; color: var(--muted); line-height: 1.8; }
.body-sm { font-size: 0.875rem; color: var(--muted); }
.mono    { font-family: var(--font-mono); font-size: 0.8rem; }

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section { padding: clamp(5rem, 10vw, 9rem) 0; }

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

/* ─── GLASS PANELS ───────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
}

/* HUD corner cuts */
.hud-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  position: relative;
  transition: transform var(--transition-md), box-shadow var(--transition-md), border-color var(--transition-md);
}

.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--neon-cyan);
  border-style: solid;
}

.hud-card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 3px 0 0 0;
}

.hud-card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px 0;
}

.hud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92,80,214,0.5);
  box-shadow: 0 24px 60px rgba(92,80,214,0.2), 0 0 0 1px rgba(66,183,250,0.1);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-md), backdrop-filter var(--transition-md);
}

.nav.scrolled {
  background: rgba(5,7,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px; height: 40px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 2rem;
  flex: 1;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(92,80,214,0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--grad-neon);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(5,7,24,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-item:hover {
  background: rgba(92,80,214,0.15);
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(34,34,67,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.75rem;
}

.lang-btn {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-mono);
}

.lang-btn.active {
  background: var(--neon-violet);
  color: #fff;
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-neon);
  color: #fff;
  box-shadow: 0 0 32px rgba(92,80,214,0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 48px rgba(92,80,214,0.55);
}

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  backdrop-filter: var(--glass-blur);
}

.btn-ghost:hover {
  border-color: rgba(66,183,250,0.4);
  box-shadow: 0 0 24px rgba(66,183,250,0.12);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-live { background: rgba(66,183,250,0.12); color: var(--neon-cyan); border: 1px solid rgba(66,183,250,0.25); }
.badge-beta { background: rgba(92,80,214,0.15); color: #9d94ff; border: 1px solid rgba(92,80,214,0.3); }
.badge-soon { background: rgba(237,131,91,0.12); color: var(--ember); border: 1px solid rgba(237,131,91,0.25); }
.badge-ro   { background: rgba(225,89,217,0.12); color: var(--neon-magenta); border: 1px solid rgba(225,89,217,0.25); }

.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--neon-cyan);
}

/* ─── GLOW ORBS ──────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ─── NEON DIVIDER ───────────────────────────────────────── */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-violet) 20%, var(--neon-cyan) 50%, var(--neon-magenta) 80%, transparent);
  opacity: 0.4;
  border: none;
  margin: 0;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible,
.no-js .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--panel-indigo2);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(92,80,214,0.12);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8125rem; color: var(--muted); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.875rem;
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

/* ─── PRODUCT ICON ───────────────────────────────────────── */
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.product-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(10px);
  opacity: 0.5;
  transform: scale(1.5);
}

/* ─── FEATURE LIST ───────────────────────────────────────── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(92,80,214,0.08);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✦';
  color: var(--neon-cyan);
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

/* ─── TAGS ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(92,80,214,0.12);
  color: #9d94ff;
  border: 1px solid rgba(92,80,214,0.2);
}

/* ─── STAT CARD ──────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.breadcrumb a:hover { color: var(--neon-cyan); }
.breadcrumb span { color: var(--neon-violet); }

/* ─── CANVAS ─────────────────────────────────────────────── */
canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--space-black); }
::-webkit-scrollbar-thumb { background: var(--neon-violet); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scan-line {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(600%); opacity: 0; }
}

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(66,183,250,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

/* ─── TRUST SECTION ──────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-card {
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.trust-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* ─── CODE BLOCK ─────────────────────────────────────────── */
.code-block {
  background: rgba(5,7,24,0.8);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
}

.code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.code-block .dots {
  display: flex; gap: 5px;
}

.code-block .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca41; }

.code-keyword { color: #e159d9; }
.code-string  { color: #42b7fa; }
.code-comment { color: #555577; }
.code-func    { color: #9d94ff; }
.code-num     { color: #ed835b; }

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5,7,24,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    gap: 0.25rem;
  }

  .nav-links.mobile-open .nav-link { padding: 0.875rem 1rem; }

  /* Show nav-right items inside mobile menu */
  .nav-links.mobile-open ~ .nav-right {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: auto;
    left: 0; right: 0;
    background: rgba(5,7,24,0.97);
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.75rem;
  }

  .trust-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── UTILITY ────────────────────────────────────────────── */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-1 { z-index: 1; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.grid { display: grid; }

/* ─── ANNOUNCEMENT BANNER ────────────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, rgba(92,80,214,0.15), rgba(66,183,250,0.1), rgba(225,89,217,0.15));
  border-bottom: 1px solid rgba(92,80,214,0.2);
  padding: 0.625rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  position: relative;
  z-index: 999;
}

.announcement-bar a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar strong { color: var(--white); }

/* ─── SEARCH OVERLAY SCROLLBAR ───────────────────────────── */
#sr::-webkit-scrollbar { width: 4px; }
#sr::-webkit-scrollbar-track { background: transparent; }
#sr::-webkit-scrollbar-thumb { background: var(--neon-violet); border-radius: 2px; }

/* ─── TABLE ──────────────────────────────────────────────── */
table { border-collapse: collapse; }
th { font-weight: 600; }

/* ─── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SELECTION ──────────────────────────────────────────── */
::selection {
  background: rgba(92,80,214,0.35);
  color: var(--white);
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  .nav, .cursor-dot, .cursor-ring, #cookie-banner, #search-overlay { display: none !important; }
  body { background: white; color: black; }
}

/* ── BTN SIZES ───────────────────────────────────────────── */
.btn-lg { padding: .875rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem;     font-size: .8rem; }

/* ── PRODUCT ICON (shared across pages) ──────────────────── */
.product-icon {
  font-size: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}

/* ── NAV DROPDOWN ARROW ROTATE ───────────────────────────── */
.nav-dropdown:hover .nav-link svg,
.nav-dropdown:focus-within .nav-link svg { transform: rotate(180deg); }

/* ── PULSE ANIMATION ─────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* ── BADGE RO ────────────────────────────────────────────── */
.badge-ro {
  background: rgba(237,131,91,.1);
  border-color: rgba(237,131,91,.3);
  color: var(--ember);
}

/* ── REVEAL DELAYS ───────────────────────────────────────── */
.reveal-delay-4 { transition-delay: .5s; }
.reveal-delay-5 { transition-delay: .65s; }

/* ── HOVER GLOW UTILS ────────────────────────────────────── */
.hud-card { transform-style: preserve-3d; }

/* ── NEON DIVIDER ────────────────────────────────────────── */
.neon-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(66,183,250,.25) 20%,
    rgba(92,80,214,.4) 50%,
    rgba(225,89,217,.25) 80%,
    transparent 100%);
  margin: 0;
}

/* ── SHARED LAYOUT UTILITIES (v3 additions) ──────────────── */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header { margin-bottom: 3.5rem; }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-label { justify-content: center; }

.cyan { color: var(--neon-cyan); }

/* ── BLOG STYLES ─────────────────────────────────────────── */
.blog-grid article {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.25s ease;
}
.blog-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(66,183,250,0.3);
  box-shadow: 0 24px 48px rgba(92,80,214,0.12);
}

/* ── CASE STUDY STYLES ───────────────────────────────────── */
.cs-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ── ENHANCED HUD CARD HOVER ─────────────────────────────── */
.hud-card.interactive {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.25s ease;
}
.hud-card.interactive:hover {
  transform: translateY(-5px);
  border-color: rgba(66,183,250,0.28);
  box-shadow: 0 20px 40px rgba(92,80,214,0.12);
}

/* ── SCROLL INDICATOR ────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: scrollBob 2.5s ease-in-out infinite;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-indicator-track {
  width: 22px;
  height: 36px;
  border: 1px solid rgba(92,80,214,0.4);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.scroll-indicator-dot {
  width: 4px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 99px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 5px; opacity: 1; }
  80%  { top: 20px; opacity: 0.3; }
  100% { top: 5px; opacity: 1; }
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(4px); }
}

/* ── GRADIENT TEXT ANIMATED ──────────────────────────────── */
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-text-live {
  background: linear-gradient(270deg, #42B7FA, #5C50D6, #E159D9, #ED835B, #42B7FA);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease infinite;
}

/* ── STATUS PAGE PULSE ────────────────────────────────────── */
.status-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-pulse.green {
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: statusPulse 2.5s ease-out infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ── PAGE HERO MIN-HEIGHT ─────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

/* ── ANCHOR OFFSET (sticky nav) ──────────────────────────── */
:target::before {
  content: '';
  display: block;
  height: calc(var(--nav-h) + 2rem);
  margin-top: calc(-1 * (var(--nav-h) + 2rem));
  pointer-events: none;
}

/* ── FORM FOCUS GLOW ──────────────────────────────────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(66,183,250,0.5) !important;
  box-shadow: 0 0 0 3px rgba(66,183,250,0.08) !important;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--neon-cyan); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb span:last-child { opacity: 1; color: var(--white); }

/* ── NAV ACTIVE INDICATOR ─────────────────────────────────── */
.nav-link.active {
  color: var(--white) !important;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--neon-cyan);
  border-radius: 1px;
}

/* ── MOBILE NAV DROPDOWN IN MOBILE MENU ──────────────────── */
@media (max-width: 768px) {
  .nav-links.mobile-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(92,80,214,0.06);
    border: 1px solid rgba(92,80,214,0.1);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: none;
  }
  .nav-links.mobile-open .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
}

/* ── ANNOUNCE BAR CLOSE ───────────────────────────────────── */
.announce-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
  transition: opacity 0.15s;
}
.announce-close:hover { opacity: 1; }
.announce-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.announce-link {
  margin-left: 0.5rem;
  font-weight: 600;
}
