/* ============================================================
   FLUXONOS — Homepage (v2 · flux-wave editorial)
   ============================================================ */

/* ============ HERO ============ */
.hero {
  position: relative; background: var(--ink-900); color: var(--on-dark);
  overflow: hidden; padding-block: clamp(40px, 7vw, 72px) 0;
}
.hero-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(62,121,234,.32), transparent 62%); top: -200px; right: -160px; pointer-events: none; filter: blur(20px); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 72% 32%, #000, transparent 72%); mask-image: radial-gradient(circle at 72% 32%, #000, transparent 72%);
}
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(76vh, 720px); padding-bottom: clamp(40px,6vw,72px); }
.hero-copy { max-width: 600px; }
.hero .overline { color: var(--blue-bright); }
.hero h1 { color: #fff; margin-top: 22px; }
.hero h1 em { font-style: normal; position: relative; color: var(--blue-bright); }
.hero .lede { color: var(--on-dark-mut); margin-top: 22px; max-width: 520px; }
.hero .cta-row { margin-top: 34px; }

.hero-metrics { display: flex; gap: clamp(20px,3vw,40px); margin-top: clamp(36px,5vw,56px); flex-wrap: wrap; }
.hero-metric { display: flex; flex-direction: column; }
.hero-metric .hm-num { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1; display: flex; align-items: baseline; }
.hero-metric .hm-num .suf { color: var(--blue-bright); font-size: .55em; margin-left: 1px; }
.hero-metric .hm-label { font-size: .86rem; color: var(--on-dark-mut); margin-top: 8px; max-width: 16ch; }
.hero-fineprint { margin-top: 18px; font-size: .76rem; line-height: 1.5; color: var(--on-dark-mut); opacity: .72; max-width: 46ch; }

/* ---- Flux stream visualization ---- */
.flux-vis { position: relative; aspect-ratio: 1/1.04; width: 100%; max-width: 540px; margin-inline: auto; }
.flux-vis svg.streams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flux-vis .stream { fill: none; stroke-width: 1.4; stroke-linecap: round; opacity: .9; }
.flux-flow { stroke-dasharray: 3 7; animation: streamflow 1.3s linear infinite; }
@keyframes streamflow { to { stroke-dashoffset: -20; } }

.flux-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 30%; aspect-ratio: 1; z-index: 4; }
.flux-core .fc-ring { position: absolute; inset: -18%; border-radius: 50%; border: 1.5px dashed rgba(91,143,240,.45); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flux-core .fc-inner {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 36% 30%, #ffffff, #eaf0fd);
  border: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(62,121,234,.4), inset 0 2px 12px rgba(255,255,255,.5);
  animation: corepulse 3.4s ease-in-out infinite;
}
@keyframes corepulse { 0%,100%{ box-shadow: 0 20px 60px rgba(62,121,234,.4), inset 0 2px 12px rgba(255,255,255,.5);} 50%{ box-shadow: 0 24px 80px rgba(62,121,234,.62), inset 0 2px 12px rgba(255,255,255,.5);} }
.flux-core .fc-inner img { width: 62%; height: 62%; object-fit: contain; }

.flux-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); border-radius: var(--r-pill); padding: 8px 15px 8px 9px;
  animation: floaty 6.5s ease-in-out infinite; white-space: nowrap;
}
.flux-node:nth-of-type(2){animation-delay:-1.1s} .flux-node:nth-of-type(3){animation-delay:-2.2s}
.flux-node:nth-of-type(4){animation-delay:-3.3s} .flux-node:nth-of-type(5){animation-delay:-4.4s} .flux-node:nth-of-type(6){animation-delay:-5.5s}
@keyframes floaty { 0%,100%{ transform: translate(-50%,-50%);} 50%{ transform: translate(-50%,calc(-50% - 8px)); } }
.flux-node .fn-ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(91,143,240,.18); color: var(--blue-bright); display: flex; align-items: center; justify-content: center; flex: none; }
.flux-node .fn-ico svg { width: 17px; height: 17px; }
.flux-node .fn-txt { font-size: .82rem; font-weight: 700; color: #fff; }
.flux-node.solar .fn-ico { background: rgba(245,193,59,.16); color: #F5C13B; }

.flux-readout { position: absolute; right: -2%; bottom: 4%; z-index: 5; background: rgba(20,20,24,.82); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); border-radius: 16px; padding: 15px 17px; width: 200px; }
.flux-readout .ro-head { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.flux-readout .ro-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 0 rgba(91,143,240,.5); animation: blip 1.9s ease-out infinite; }
@keyframes blip { 0%{box-shadow:0 0 0 0 rgba(91,143,240,.5);} 70%{box-shadow:0 0 0 8px rgba(91,143,240,0);} 100%{box-shadow:0 0 0 0 rgba(91,143,240,0);} }
.flux-readout .ro-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--on-dark-mut); margin-top: 9px; }
.flux-readout .ro-row strong { color: #fff; font-size: .92rem; }
.flux-readout .ro-row strong.up { color: var(--blue-bright); }
.flux-readout .ro-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 7px; }
.flux-readout .ro-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: 99px; animation: grow 1.8s var(--ease-out) both; }
@keyframes grow { from { width: 0 !important; } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-bottom: 0; }
  .flux-vis { order: 2; max-width: 420px; margin-top: 14px; }
  .hero-copy { order: 1; max-width: 640px; }
}
@media (max-width: 600px) {
  .flux-vis { max-width: 300px; }
  .flux-node { padding: 6px 12px 6px 7px; }
  .flux-node .fn-txt { font-size: .72rem; }
  .flux-node .fn-ico { width: 27px; height: 27px; }
  .flux-node .fn-ico svg { width: 15px; height: 15px; }
  .flux-readout { width: 150px; right: 0; bottom: -6%; padding: 11px 13px; }
  .flux-readout .ro-head { font-size: .72rem; margin-bottom: 9px; }
  .flux-readout .ro-row { font-size: .74rem; }
}
@media (max-width: 380px) {
  .flux-vis { max-width: 250px; margin-top: 26px; }
  .flux-node .fn-txt { display: none; }
  .flux-node { padding: 7px; border-radius: 50%; }
}

/* ============ Wave separators ============ */
.wave-dark-to-light path { fill: var(--ink-900); }
.wave-light-to-dark path { fill: var(--ink-900); }
.wave-wash path { fill: var(--paper-2); }

/* ============ CAPABILITY TICKER ============ */
.ticker-band { padding-block: clamp(28px,3.5vw,44px); border-bottom: 1px solid var(--line); }
.ticker-lead { text-align: center; font-family: var(--font-display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 24px; }

/* ============ EDITORIAL VALUE (numbered) ============ */
.val-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
@media (max-width:760px){ .val-head { grid-template-columns: 1fr; } }
.val-list { margin-top: clamp(40px,5vw,64px); border-top: 1px solid var(--line); }
.val-row {
  display: grid; grid-template-columns: 88px 1.1fr 1.4fr; gap: clamp(16px,3vw,48px);
  padding: clamp(28px,4vw,46px) clamp(8px,1.4vw,20px); border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background .35s var(--ease), padding-left .4s var(--ease); position: relative;
}
.val-row::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--blue), var(--blue-bright)); transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--ease); }
.val-row:hover { background: var(--paper-2); padding-left: clamp(20px,2.4vw,34px); }
.val-row:hover::before { transform: scaleY(1); }
.val-row .vr-idx { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--blue); letter-spacing: .05em; transition: transform .4s var(--ease); }
.val-row:hover .vr-idx { transform: translateX(2px); }
.val-row .vr-title { font-family: var(--font-display); font-size: clamp(1.3rem,2.4vw,1.9rem); font-weight: 600; letter-spacing: -.025em; color: var(--ink); line-height: 1.1; }
.val-row .vr-body { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 760px) {
  .val-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .val-row .vr-idx { font-size: .85rem; }
}

/* ============ HOW (dark, flow line) ============ */
.flow-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,30px); position: relative; }
.flow-steps::before { content:""; position: absolute; top: 38px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-bright) 0 8px, transparent 8px 18px); opacity: .5; }
.flow-step { position: relative; }
.flow-step .fs-num { width: 76px; height: 76px; border-radius: 50%; background: var(--ink-800); border: 1px solid var(--line-dark); color: var(--blue-bright); font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; position: relative; z-index: 2; }
.flow-step h4 { color: #fff; margin-bottom: 8px; }
.flow-step p { color: var(--on-dark-mut); font-size: .98rem; }
@media (max-width: 760px) { .flow-steps { grid-template-columns: 1fr; gap: 26px; } .flow-steps::before { display: none; } }

/* ============ FUNCTIONS ============ */
.fn-grid { margin-top: clamp(40px,5vw,60px); }

/* ============ DASHBOARD SPLIT (3D scene) ============ */
.dash-stage { perspective: 1600px; perspective-origin: 60% 40%; }
.dash-scene {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx,6deg)) rotateY(var(--ry,-15deg));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.dash-scene .dash-card { animation: dashfloat 7s ease-in-out infinite; }
@keyframes dashfloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.platform-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-lg); overflow: hidden; }
.dash-card { box-shadow: 0 40px 90px rgba(29,29,31,.22), 0 14px 30px rgba(62,121,234,.14); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), #fff); }
.pc-head .pc-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .9rem; }
.pc-head .pd { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(62,121,234,.5); animation: blip 1.9s ease-out infinite; }
.pc-head .pc-chip { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--muted-2); background: var(--paper-2); border: 1px solid var(--line); padding: 4px 11px; border-radius: 99px; }
.pc-body { padding: 22px; }

.pc-kpi { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pc-kpi .kpi-label { display: block; color: var(--muted); font-size: .86rem; }
.pc-kpi .kpi-val { font-family: var(--font-display); font-weight: 600; font-size: 2.7rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); display: inline-flex; align-items: baseline; margin-top: 3px; }
.pc-kpi .kpi-suf { color: var(--blue); font-size: .42em; margin-left: 2px; }
.pc-kpi .kpi-trend { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: .82rem; font-weight: 700; color: var(--blue); }
.pc-kpi .kpi-trend svg { width: 15px; height: 15px; }
.kpi-ring { flex: none; position: relative; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--blue) var(--pct), var(--paper-3) 0); display: grid; place-items: center; }
.kpi-ring::before { content:""; position: absolute; width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 4px rgba(29,29,31,.08); }
.kpi-ring span { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.kpi-ring small { font-size: .6em; color: var(--blue); }

.pc-spark { height: 64px; margin: 16px -2px 4px; }
.pc-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.spk-line { stroke-dasharray: 640; stroke-dashoffset: 640; animation: sparkdraw 1.8s var(--ease-out) .2s forwards; }
@keyframes sparkdraw { to { stroke-dashoffset: 0; } }

.pc-bars-block { margin-top: 16px; }
.pc-bars-head { display: flex; justify-content: space-between; align-items: baseline; }
.pc-bars-head span { color: var(--muted); font-size: .86rem; }
.pc-bars-head strong { font-family: var(--font-display); font-size: 1.1rem; }
.pc-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin: 12px 0 20px; }
.pc-bars i { flex: 1; background: linear-gradient(180deg, var(--blue-bright), var(--blue)); border-radius: 5px 5px 2px 2px; animation: rise 1.3s var(--ease-out) both; }
.pc-bars i:nth-child(2){animation-delay:.06s}.pc-bars i:nth-child(3){animation-delay:.12s}.pc-bars i:nth-child(4){animation-delay:.18s}.pc-bars i:nth-child(5){animation-delay:.24s}.pc-bars i:nth-child(6){animation-delay:.3s}.pc-bars i:nth-child(7){animation-delay:.36s}
@keyframes rise { from { height: 4px !important; opacity: .4; } }
.pc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-tile { background: var(--paper-2); border-radius: 12px; padding: 13px 14px; border: 1px solid var(--line); }
.pc-tile .t-dot { width: 22px; height: 22px; border-radius: 7px; display: block; margin-bottom: 9px; }
.pc-tile b { display: block; font-size: .9rem; }
.pc-tile em { font-style: normal; font-size: .78rem; color: var(--muted); }

/* Floating depth satellites */
.dash-float { position: absolute; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(29,29,31,.16); border-radius: 14px; }
.dash-float.df-1 { top: 9%; right: -7%; padding: 13px 17px; transform: translateZ(80px); animation: dashfloat 6s ease-in-out infinite .4s; }
.dash-float.df-1 .dfl { display: block; font-size: .72rem; color: var(--muted); }
.dash-float.df-1 .dfn { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--blue); letter-spacing: -.02em; }
.dash-float.df-2 { bottom: 8%; left: -8%; padding: 11px 16px; display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; color: var(--ink); transform: translateZ(110px); animation: dashfloat 6.5s ease-in-out infinite .9s; }
.dash-float.df-2 .df-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 0 rgba(91,143,240,.5); animation: blip 1.9s ease-out infinite; }
@media (max-width: 1080px) { .dash-scene { transform: rotateX(4deg) rotateY(-9deg); } }
@media (max-width: 900px) {
  .dash-stage { perspective: none; }
  .dash-scene { transform: none; }
  .dash-float.df-1 { right: -2%; } .dash-float.df-2 { left: -2%; }
}
@media (max-width: 460px) { .dash-float { display: none; } }

/* ============ STAT BAND (reference teaser) ============ */
.ref-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: center; }
.quote { font-family: var(--font-display); font-size: clamp(1.2rem,2vw,1.6rem); line-height: 1.3; color: #fff; letter-spacing: -.015em; }
.quote .qm { color: var(--blue-bright); }
.quote cite { display: block; font-family: var(--font-text); font-size: .92rem; font-style: normal; color: var(--on-dark-mut); margin-top: 16px; font-weight: 600; }
.ref-stats { display: flex; flex-direction: column; gap: 0; background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(26px,3vw,40px); }
.ref-stats .stat { padding-block: 22px; border-bottom: 1px solid var(--line-dark); }
.ref-stats .stat:first-child { padding-top: 0; } .ref-stats .stat:last-child { padding-bottom: 0; border-bottom: none; }
@media (max-width: 880px) { .ref-grid { grid-template-columns: 1fr; } }

/* ============ SEGMENTS — .seg-card/.seg-badge moved to components.css (shared) ============ */
.mini-benefits .feature h4 { font-size: 1rem; } .mini-benefits .feature p { font-size: .88rem; }

/* ============ FINAL CTA ============ */
.cta-final { padding-block: clamp(40px,5vw,72px); }
.cta-box { position: relative; overflow: hidden; background: var(--ink-900); border-radius: var(--r-xl); padding: clamp(46px,6vw,86px) clamp(28px,5vw,64px); text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-box h2 { color: #fff; max-width: 20ch; }
.cta-box .overline { color: #fff; }
.cta-box .overline::before { background: var(--blue-bright); opacity: 1; }
.cta-box .lede { color: var(--on-dark-mut); max-width: 52ch; }
.cta-box .cta-row { margin-top: 14px; justify-content: center; }
.cta-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(62,121,234,.34), transparent 64%); top: -320px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta-box > *:not(.cta-glow) { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .flux-node, .fc-ring, .fc-inner, .ro-dot, .flux-flow, .pc-bars i, .flux-readout .ro-bar i,
  .dash-scene .dash-card, .dash-float, .spk-line, .pc-head .pd, .dash-float .df-dot { animation: none !important; }
  .spk-line { stroke-dashoffset: 0 !important; }
}
