/* ═══ FUTURISTIC LAYER — shared by every page ═══
   Loaded after each page's own <style>, so it only adds / refines. Colors reuse the brand gold + navy. */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --fx-gold: #D4AF37;
  --fx-gold-lt: #E8C547;
  --fx-cyan: #5be7ff;
  --fx-navy: #0B1E3A;
  --fx-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fx-chamfer: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* ── Scroll progress bar ── */
.fx-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1000;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--fx-gold), var(--fx-cyan));
  box-shadow: 0 0 12px var(--fx-gold), 0 0 24px rgba(91,231,255,.5);
  pointer-events: none;
}

/* ── Fine HUD grid + scanlines over the whole page (never blocks clicks) ── */
.fx-overlay {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image:
    linear-gradient(rgba(91,231,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,231,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
}
.fx-scan {
  position: fixed; left: 0; right: 0; top: 0; height: 120px; z-index: 91; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91,231,255,.045), transparent);
  animation: fxScan 9s linear infinite;
}
@keyframes fxScan { from { transform: translateY(-140px); } to { transform: translateY(100vh); } }

/* ── Cursor glow (mouse devices only) ── */
.fx-cursor {
  position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.7);
  box-shadow: 0 0 18px rgba(212,175,55,.35), inset 0 0 10px rgba(91,231,255,.15);
  opacity: 0; transition: opacity .3s, width .2s, height .2s, margin .2s, border-color .2s;
  mix-blend-mode: screen;
}
.fx-cursor.on { opacity: 1; }
.fx-cursor.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--fx-cyan); }
.fx-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 1001; pointer-events: none;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--fx-gold-lt); box-shadow: 0 0 10px var(--fx-gold); opacity: 0; transition: opacity .3s;
}
.fx-cursor-dot.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .fx-cursor, .fx-cursor-dot { display: none; } }

/* ── Navigation: glowing edge, HUD feel ── */
nav { border-bottom-color: rgba(212,175,55,.28) !important; }
nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--fx-gold), var(--fx-cyan), var(--fx-gold), transparent);
  background-size: 200% 100%; animation: fxEdge 6s linear infinite; opacity: .8;
}
@keyframes fxEdge { to { background-position: 200% 0; } }
.nav-logo::before {
  content: ''; display: inline-block; width: 9px; height: 9px; margin-right: .55rem; vertical-align: middle;
  background: var(--fx-gold); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212,175,55,.2), 0 0 14px var(--fx-gold);
  animation: fxPulse 2.2s ease-in-out infinite;
}
@keyframes fxPulse { 50% { box-shadow: 0 0 0 7px rgba(212,175,55,0), 0 0 22px var(--fx-gold-lt); } }
.nav-links a { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--fx-gold); box-shadow: 0 0 10px var(--fx-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-dropdown-menu { border-radius: 0 !important; clip-path: var(--fx-chamfer); border-color: rgba(91,231,255,.25) !important; }

/* ── Buttons: chamfered corners, shimmer sweep, glow ── */
.btn-primary, .btn-ghost, .btn-dark, .nav-cta, .pkg-cta, .plan-cta, .btn, .cta-btn, button[type=submit] {
  position: relative; overflow: hidden; border-radius: 0 !important; clip-path: var(--fx-chamfer);
  letter-spacing: .04em;
}
.btn-primary, .nav-cta, .btn-dark { box-shadow: 0 0 0 1px rgba(232,197,71,.6), 0 8px 28px -6px rgba(212,175,55,.55); }
.btn-primary::after, .nav-cta::after, .btn-dark::after, .pkg-cta::after, .plan-cta::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .7s;
}
.btn-primary:hover::after, .nav-cta:hover::after, .btn-dark:hover::after, .pkg-cta:hover::after, .plan-cta:hover::after { left: 130%; }
.btn-ghost { background: rgba(255,255,255,.03) !important; backdrop-filter: blur(6px); }
.btn-ghost:hover { box-shadow: inset 0 0 20px rgba(212,175,55,.2); }

/* ── Mono "system label" typography ── */
.section-tag-label, .section-label, .hero-badge, .stat-label, .trust-label, .shield-tag, .force-source, .pkg-tier,
.score-dashboard-title, .plan-tier, .score-dim-tag, .blog-card-date {
  font-family: var(--fx-mono) !important; letter-spacing: .14em !important;
}
.section-label::before, .section-tag-label::before { content: '// '; opacity: .55; }

/* ── Headline gradient glow on dark sections ── */
.section-title.on-dark, .alpha-score .section-title, .differentiator blockquote, .page-hero h1, .hero h1 em {
  text-shadow: 0 0 40px rgba(212,175,55,.25);
}
.hero h1 em, .page-hero h1 span, .section-title span {
  background: linear-gradient(95deg, #ffd37a, #ffa23e 45%, #5be7ff 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Cards: HUD corner brackets + mouse-follow spotlight + 3D tilt ── */
.fx-card {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform .25s ease-out, box-shadow .3s, border-color .3s;
}
.fx-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,55,.18), transparent 55%);
}
.fx-card:hover::before { opacity: 1; }
.fx-card:hover { box-shadow: 0 0 0 1px rgba(212,175,55,.45), 0 20px 50px -18px rgba(11,30,58,.6), 0 0 36px -8px rgba(212,175,55,.35); }
.fx-brackets { position: absolute; inset: 8px; z-index: 2; pointer-events: none; opacity: .35; transition: opacity .3s, inset .3s; }
.fx-card:hover .fx-brackets { opacity: 1; inset: 5px; }
.fx-brackets i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--fx-gold); }
.fx-brackets i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.fx-brackets i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.fx-brackets i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.fx-brackets i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* ── Index-only: hero HUD ── */
.hero-hud { position: absolute; z-index: 2; inset: 0; pointer-events: none; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hud-rings {
  position: absolute; right: 12%; top: 50%; width: min(620px, 55vw); aspect-ratio: 1; transform: translateY(-50%);
}
.hud-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(91,231,255,.35); animation: fxSpin 40s linear infinite; }
.hud-rings span:nth-child(2) { inset: 9%; border: 1px solid rgba(212,175,55,.35); animation-duration: 28s; animation-direction: reverse; border-top-color: transparent; border-bottom-color: transparent; }
.hud-rings span:nth-child(3) { inset: 20%; border: 2px dotted rgba(255,210,122,.35); animation-duration: 55s; }
.hud-rings span:nth-child(4) { inset: 33%; border: 1px solid rgba(91,231,255,.25); border-left-color: transparent; animation-duration: 18s; }
.hud-rings::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(91,231,255,.28), transparent 25%);
  animation: fxSpin 6s linear infinite;
  mask-image: radial-gradient(circle, transparent 28%, #000 29%, #000 62%, transparent 63%);
  -webkit-mask-image: radial-gradient(circle, transparent 28%, #000 29%, #000 62%, transparent 63%);
}
@keyframes fxSpin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hud-rings { right: -20%; opacity: .5; } }

.hud-panel {
  position: absolute; z-index: 3; font-family: var(--fx-mono); font-size: .68rem; letter-spacing: .08em; color: #cfeff7;
  background: rgba(8,22,44,.55); border: 1px solid rgba(91,231,255,.35); padding: .7rem .9rem; min-width: 190px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); clip-path: var(--fx-chamfer);
  box-shadow: 0 0 24px rgba(91,231,255,.15);
  animation: fxFloat 5s ease-in-out infinite;
}
.hud-panel b { display: block; color: var(--fx-gold-lt); font-weight: 700; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .16em; }
.hud-panel div { display: flex; justify-content: space-between; gap: 1.2rem; padding: .12rem 0; }
.hud-panel em { font-style: normal; color: var(--fx-cyan); }
.hud-panel .ok { color: #6dffb0; }
.hud-panel.p1 { right: 6%; top: 24%; }
.hud-panel.p2 { right: 4%; bottom: 9%; animation-delay: -2.5s; }
.hud-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6dffb0; box-shadow: 0 0 8px #6dffb0; margin-right: .4rem; animation: fxBlink 1.4s infinite; }
@keyframes fxBlink { 50% { opacity: .25; } }
@keyframes fxFloat { 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .hud-panel.p2 { display: none; } }
@media (max-width: 700px) { .hud-panel { display: none; } }
.hero-content { z-index: 4 !important; min-width: 0; }
.hero h1, .hero-sub { overflow-wrap: anywhere; }

/* ── Index-only: ticker marquee ── */
.fx-ticker { overflow: hidden; background: #071528; border-bottom: 1px solid rgba(91,231,255,.2); font-family: var(--fx-mono); font-size: .72rem; letter-spacing: .1em; color: rgba(207,239,247,.75); white-space: nowrap; }
.fx-ticker-track { display: inline-flex; gap: 3rem; padding: .7rem 0; animation: fxMarquee 38s linear infinite; }
.fx-ticker:hover .fx-ticker-track { animation-play-state: paused; }
.fx-ticker span::before { content: '◆'; color: var(--fx-gold); margin-right: .7rem; font-size: .6rem; }
.fx-ticker em { font-style: normal; color: #6dffb0; }
@keyframes fxMarquee { to { transform: translateX(-50%); } }

/* ── Index-only: alpha score dashboard upgrade ── */
.score-dashboard { position: relative; overflow: hidden; clip-path: var(--fx-chamfer); border-color: rgba(91,231,255,.3) !important; box-shadow: 0 0 40px -10px rgba(91,231,255,.3); }
.score-dashboard::before {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--fx-cyan), transparent); box-shadow: 0 0 14px var(--fx-cyan);
  animation: fxSweep 4.5s ease-in-out infinite;
}
@keyframes fxSweep { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.score-dim-bar { background: linear-gradient(90deg, var(--fx-gold), var(--fx-cyan)) !important; box-shadow: 0 0 10px rgba(91,231,255,.6); }
.alpha-total { clip-path: var(--fx-chamfer); }
.alpha-total-val { font-family: var(--fx-mono) !important; text-shadow: 0 0 24px rgba(212,175,55,.6); }

/* ── Glass stats bar ── */
.hero-stats { clip-path: var(--fx-chamfer); border-radius: 0 !important; border-color: rgba(91,231,255,.35) !important; box-shadow: 0 0 30px rgba(91,231,255,.12); }
.stat-value, .result-metric, .metric-num, .hero-stat-val { font-family: var(--fx-mono) !important; text-shadow: 0 0 22px rgba(255,162,62,.45); }

/* ── Footer: status line ── */
.fx-status {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--fx-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: #6dffb0 !important;
}
.fx-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6dffb0; box-shadow: 0 0 10px #6dffb0; animation: fxBlink 1.4s infinite; }

/* ── Decode-text effect target ── */
[data-fx-decode] { font-variant-ligatures: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-scan, .hud-rings span, .hud-rings::after, .hud-panel, .fx-ticker-track, nav::after, .nav-logo::before,
  .score-dashboard::before, .fx-status::before, .hud-dot { animation: none !important; }
  .fx-cursor, .fx-cursor-dot { display: none; }
}

/* ── Inner-page heroes: image + HUD layer (added by futuristic.js) ── */
.fx-subhero { position: relative; overflow: hidden; isolation: isolate; min-height: 440px; }
.fx-subhero > :not(.fx-subhud) { position: relative; z-index: 4; }
.fx-subhud { z-index: 1; }
.fx-herobg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 1; animation: fxKen 24s ease-in-out infinite alternate;
}
.fx-herobg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,30,58,.78) 0%, rgba(11,30,58,.45) 50%, rgba(11,30,58,.12) 100%),
              linear-gradient(0deg, rgba(11,30,58,.6), transparent 30%);
}
@keyframes fxKen { to { transform: scale(1.07); } }
.fx-subhud .hud-panel.p1 { top: auto; bottom: 14%; }
@media (prefers-reduced-motion: reduce) { .fx-herobg { animation: none; } }

/* Brand logo image */
.nav-logo::before { display: none !important; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; display: block; }
footer .nav-logo img { height: 46px; }
