/* Nova Trading — shared foreground hero system
   Keeps photography beside the copy and gives every hero one restrained
   SVG "signal orbit". Loaded last so legacy background-hero rules cannot
   put the image behind the text again. */

:root {
  --hero-system-bg: #071522;
  --hero-system-panel: #0b2032;
  --hero-system-cyan: #69cdf6;
  --hero-system-copy: #aebdca;
  --hero-system-line: rgba(105, 205, 246, .25);
}

/* ── Shared SVG signal orbit ─────────────────────────────── */
.hero-signal {
  display: block;
  pointer-events: none;
  overflow: visible;
  color: var(--hero-signal-accent, var(--hero-system-cyan));
}
.hero-signal-ring,
.hero-signal-cable,
.hero-signal-charge {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.hero-signal-ring {
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: .24;
}
.hero-signal-cable {
  stroke: rgba(255, 255, 255, .15);
  stroke-width: 1;
}
.hero-signal-charge {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .075 .925;
  filter: drop-shadow(0 0 6px currentColor);
}
.hero-signal-orbit-node {
  fill: currentColor;
  filter: drop-shadow(0 0 8px currentColor);
  transform-box: view-box;
  transform-origin: 320px 320px;
}
.hero-signal-pulse {
  fill: #fff;
  opacity: .75;
  filter: drop-shadow(0 0 8px currentColor);
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-signal .hero-signal-ring,
  .hero-signal .hero-signal-cable {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .hero-signal .hero-signal-charge,
  .hero-signal .hero-signal-orbit-node,
  .hero-signal .hero-signal-pulse { opacity: 0; }
  .hero-signal.is-signal-active .hero-signal-ring,
  .hero-signal.is-signal-active .hero-signal-cable {
    animation: hero-signal-draw 1.15s cubic-bezier(.2, .7, .2, 1) forwards;
  }
  .hero-signal.is-signal-active .hero-signal-charge {
    opacity: 1;
    animation: hero-signal-flow 6.5s linear 1.05s infinite;
  }
  .hero-signal.is-signal-active .hero-signal-orbit-node {
    opacity: 1;
    animation: hero-signal-orbit 19s linear 1.05s infinite;
  }
  .hero-signal.is-signal-active .hero-signal-pulse {
    opacity: .75;
    animation: hero-signal-pulse 3s ease-in-out 1.05s infinite;
  }
  @keyframes hero-signal-draw { to { stroke-dashoffset: 0; } }
  @keyframes hero-signal-flow { to { stroke-dashoffset: -1; } }
  @keyframes hero-signal-orbit { to { transform: rotate(360deg); } }
  @keyframes hero-signal-pulse {
    50% { opacity: .28; transform: scale(.68); }
  }
}

/* ── Product and guide pages ─────────────────────────────── */
.hero-page.hero-split {
  --hero-signal-accent: #71cff5;
  min-height: max(680px, calc(100svh - 72px)) !important;
  display: flex !important;
  align-items: center !important;
  padding: 132px 0 78px !important;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 30%, rgba(32, 127, 184, .18), transparent 28%),
    linear-gradient(145deg, #071522 0%, #0a1a29 58%, #07121d 100%) !important;
  color: #fff;
}
.hero-page.hero-split::before {
  content: none !important;
  display: none !important;
  background: none !important;
  animation: none !important;
}
.hero-page.hero-split::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px) 0 0 / 88px 88px;
  mask-image: linear-gradient(to bottom, #000, transparent 96%);
}
.hero-page.hero-split > .si {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 96px);
}
.hero-page.hero-split > .si::after { display: none !important; }
.hero-page-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 700px;
}
.hero-page.hero-split .breadcrumb { margin-bottom: 24px; }
.hero-page.hero-split h1,
.hero-page.hero-split > .si h1 {
  max-width: 11ch !important;
  margin: 0 0 24px !important;
  color: #fff !important;
  font-size: clamp(2.85rem, 4.85vw, 5.45rem) !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
}
.hero-page.hero-split h1 .gold,
.hero-page.hero-split h1 em { color: #7ed5f7 !important; }
.hero-page.hero-split .hero-page-copy > p,
.hero-page.hero-split .hero-page-copy > [style*="font-size:1rem"] {
  max-width: 58ch !important;
  margin-bottom: 30px !important;
  color: var(--hero-system-copy) !important;
  font-size: clamp(.94rem, 1.05vw, 1.06rem) !important;
  line-height: 1.78 !important;
}
.hero-page.hero-split .badge {
  background: rgba(8, 28, 44, .7) !important;
  border-color: rgba(126, 213, 247, .24) !important;
}
.hero-page.hero-split .badge-gold { color: #9addf8 !important; }
.hero-page.hero-split .btn-primary { background: #fff; color: #071522; }

.hero-product-media {
  position: relative;
  width: min(100%, 650px);
  margin: 0 auto;
  isolation: isolate;
}
.hero-product-media > .hero-signal {
  position: absolute;
  z-index: 0;
  inset: -9%;
  width: 118%;
  height: 118%;
}
.hero-product-frame {
  position: relative;
  z-index: 1;
  width: 86%;
  margin: 0 auto;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 48% 48% 22px 48%;
  background: var(--hero-system-panel);
  box-shadow: 0 38px 96px rgba(0,0,0,.36);
}
.hero-product-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 14, 24, .68), transparent 42%);
}
.hero-product-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.04);
}
.hero-product-frame figcaption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100% - 54px);
  padding: 11px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(4, 15, 25, .62);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  text-align: center;
}
.hero-product-frame figcaption strong,
.hero-product-frame figcaption span { display: block; }
.hero-product-frame figcaption strong {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  line-height: 1.1;
}
.hero-product-frame figcaption span {
  margin-top: 4px;
  color: rgba(255,255,255,.58);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ── Homepage: video becomes a foreground media stage ────── */
.hero.site-split-hero {
  --hero-signal-accent: #f5a15c;
  min-height: max(720px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  padding: 126px 0 64px;
  background:
    radial-gradient(circle at 74% 28%, rgba(232, 103, 14, .16), transparent 27%),
    #101418;
}
.hero.site-split-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 88px 88px;
  pointer-events: none;
}
.site-split-hero .home-hero-layout {
  max-width: 1420px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  grid-template-areas: 'copy media' 'proof proof';
  gap: 38px clamp(42px, 6vw, 96px);
  align-items: center;
  padding-inline: clamp(24px, 4.5vw, 68px);
}
.home-hero-copy { grid-area: copy; min-width: 0; }
.home-hero-stage {
  grid-area: media;
  position: relative;
  width: min(100%, 650px);
  margin: 0 auto;
  isolation: isolate;
}
.site-split-hero .hero-media {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 86%;
  margin: 0 auto;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 48% 48% 22px 48%;
  background: #171d22;
  box-shadow: 0 38px 96px rgba(0,0,0,.4);
}
.site-split-hero .hero-media::after {
  background: linear-gradient(to top, rgba(7,11,14,.52), transparent 44%);
}
.home-hero-media-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100% - 54px);
  padding: 11px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7, 11, 14, .64);
  backdrop-filter: blur(12px);
  text-align: center;
}
.home-hero-media-label strong,
.home-hero-media-label span { display: block; }
.home-hero-media-label strong { font-family: 'Fraunces', serif; font-size: 1.08rem; }
.home-hero-media-label span { margin-top: 4px; color: rgba(255,255,255,.58); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-video-control {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(7,11,14,.66);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 700 .6rem/1 'DM Sans', sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero-video-control[hidden] { display: none; }
.hero-video-control:hover { background: rgba(7,11,14,.88); }
.hero-video-control-dot { width: 7px; height: 7px; border-radius: 50%; background: #f09a58; box-shadow: 0 0 8px rgba(240,154,88,.7); }
.video-paused .hero-video-control-dot { background: #fff; box-shadow: none; }
.site-split-hero .home-hero-stage > .hero-signal {
  position: absolute;
  z-index: 0;
  inset: -9%;
  width: 118%;
  height: 118%;
}
.site-split-hero .hero h1,
.site-split-hero h1 { font-size: clamp(2.8rem, 4.7vw, 5.2rem); }
.site-split-hero .hero-lede { color: var(--hero-system-copy); }
.home-hero-proof {
  grid-area: proof;
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
  gap: 24px 36px;
  align-items: center;
}
.site-split-hero .hero-stats { max-width: none; }
.site-split-hero .hero-ticker { margin-top: 0; justify-content: flex-end; }
.site-split-hero .hero-effects { z-index: 0; opacity: .55; }
.site-split-hero .hero-effects span { display: none; }

/* ── Cable page: keep its blue identity, use the same SVG ─── */
.cable-hero .cable-hero-media > .hero-signal {
  position: absolute;
  z-index: 0;
  inset: -8%;
  width: 116%;
  height: 116%;
}
.cable-hero .cable-photo-frame { position: relative; z-index: 1; }

/* ── Standalone pages ─────────────────────────────────────── */
.about-hero,
.brands-page .brands-hero,
.contact-hero {
  --hero-signal-accent: #71cff5;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 28%, rgba(36, 139, 195, .16), transparent 28%),
    linear-gradient(145deg, #071522, #0a1b2b 58%, #07131e) !important;
}
.about-hero::before,
.brands-page .brands-hero::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.about-hero::after,
.brands-page .brands-hero::after,
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 88px 88px;
}
.about-hero > .hero-signal,
.brands-hero > .hero-signal,
.contact-hero > .hero-signal {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-150px, -6vw, -50px);
  width: min(56vw, 760px);
  height: min(56vw, 760px);
  transform: translateY(-50%);
  opacity: .72;
}
.about-hero > .si,
.brands-hero__inner,
.contact-hero > .si { position: relative; z-index: 1; }

.about-hero { min-height: max(720px, calc(100svh - 72px)); padding: 132px 0 72px; }
.about-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  grid-template-areas: 'copy media' 'stats stats';
  gap: 34px clamp(42px, 6vw, 96px);
  align-items: center;
}
.about-hero-copy { grid-area: copy; }
.about-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.85rem, 4.85vw, 5.35rem) !important;
  line-height: .96 !important;
  letter-spacing: -.052em !important;
}
.about-hero h1 em { color: #7ed5f7; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
.about-hero .about-hero-desc { color: var(--hero-system-copy); }
.about-hero-media {
  grid-area: media;
  position: relative;
  z-index: 1;
  width: min(86%, 590px);
  margin: 0 auto;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 48% 48% 22px 48%;
  box-shadow: 0 38px 96px rgba(0,0,0,.36);
}
.about-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,16,27,.65), transparent 42%);
}
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-hero-media figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  color: rgba(255,255,255,.74);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-hero-layout .hero-stat-bar { grid-area: stats; margin-top: 10px; }

.brands-page .brands-hero { min-height: max(700px, calc(100svh - 72px)); }
.brands-page .brands-hero__inner { align-items: center; }
.brands-page .hero-brand-board { background: rgba(7, 23, 36, .76); backdrop-filter: blur(14px); }

.contact-hero { min-height: clamp(640px, 78svh, 740px); display: flex; align-items: center; padding: 108px 0 68px !important; }
.contact-hero > .si {
  width: 100%;
  max-width: 1320px;
  padding-inline: clamp(32px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: center;
}
.contact-hero-copy { max-width: 510px; }
.contact-hero .sec-lbl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #f5a15c !important;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact-hero .sec-lbl::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.contact-hero .sec-title {
  max-width: 11ch;
  font-family: 'Archivo', 'DM Sans', sans-serif !important;
  font-size: clamp(3.35rem, 4.9vw, 5.15rem) !important;
  line-height: .95 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}
.contact-hero .owner-card {
  width: 100%;
  max-width: 620px;
  margin: 0 0 0 auto;
  background: linear-gradient(145deg, rgba(11,35,53,.96), rgba(6,21,34,.94));
  backdrop-filter: blur(14px);
}

/* ── Responsive stacking ──────────────────────────────────── */
@media (max-width: 980px) {
  .hero-page.hero-split,
  .hero.site-split-hero,
  .about-hero,
  .brands-page .brands-hero,
  .contact-hero { min-height: auto !important; }

  .hero-page.hero-split > .si,
  .site-split-hero .home-hero-layout,
  .about-hero-layout,
  .contact-hero > .si {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-page.hero-split > .si { gap: 54px; }
  .site-split-hero .home-hero-layout {
    grid-template-areas: 'copy' 'media' 'proof';
    gap: 48px;
  }
  .about-hero-layout { grid-template-areas: 'copy' 'media' 'stats'; gap: 46px; }
  .home-hero-proof { grid-template-columns: 1fr; }
  .site-split-hero .hero-ticker { justify-content: flex-start; }
  .hero-product-media,
  .home-hero-stage { width: min(88vw, 640px); }
  .about-hero-media { width: min(84vw, 580px); }
  .contact-hero > .si { max-width: 760px; padding-inline: clamp(24px, 5vw, 40px); gap: 42px; }
  .contact-hero-copy { max-width: 680px; }
  .contact-hero .owner-card { max-width: 680px; margin-left: 0; }
  .brands-page .brands-hero__inner { grid-template-columns: 1fr; align-items: center; }
  .about-hero > .hero-signal,
  .brands-hero > .hero-signal,
  .contact-hero > .hero-signal { width: 760px; height: 760px; right: -330px; opacity: .45; }
}

@media (max-width: 680px) {
  .hero-page.hero-split { padding: 112px 0 58px !important; }
  .hero.site-split-hero { padding: 108px 0 56px; }
  .about-hero { padding: 110px 0 56px !important; }
  .contact-hero { padding: 100px 0 50px !important; }
  .brands-page .brands-hero { padding: 110px 20px 56px !important; }
  .hero-page.hero-split > .si,
  .site-split-hero .home-hero-layout { padding-inline: 20px; }
  .hero-page.hero-split h1,
  .hero-page.hero-split > .si h1 { font-size: clamp(2.45rem, 12vw, 3.75rem) !important; max-width: 11ch !important; }
  .site-split-hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.65rem); }
  .about-hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.65rem) !important; }
  .contact-hero .sec-title { font-size: clamp(2.7rem, 12vw, 3.8rem) !important; max-width: 11ch; }
  .contact-hero > .si { padding-inline: 20px; gap: 30px; }
  .hero-product-media,
  .home-hero-stage { width: 100%; }
  .hero-product-frame,
  .site-split-hero .hero-media { width: 92%; aspect-ratio: 1 / 1; }
  .hero-product-frame figcaption { bottom: 16px; max-width: calc(100% - 32px); }
  .home-hero-proof { gap: 20px; }
  .about-hero-layout .hero-stat-bar { margin-top: 0; }
  .contact-hero .owner-card { padding: 26px 22px; border-radius: 22px; }
  .contact-hero > .hero-signal { display: none; }
}

@media (max-width: 480px) {
  .hero-page.hero-split .hero-page-copy > div[style*="display:flex"] .btn,
  .hero-page.hero-split .hero-actions .btn,
  .site-split-hero .hero-ctas .btn { width: 100%; flex: 1 1 100%; }
  .hero-product-frame figcaption span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signal * { animation: none !important; }
}
