:root {
  --flux-shell: min(1440px, calc(100% - (2 * var(--gutter))));
  --flux-blue: #0a84ff;
  --flux-ink: #080a0d;
  --flux-muted: #687383;
  --flux-line: rgba(10, 132, 255, .24);
}

html { scroll-behavior: smooth; }
body.flux-page { background: #f3f7ff; color: var(--flux-ink); }
.flux-page .site-header > .brand { color: inherit; }
.flux-main { overflow: clip; }
.flux-main section[id] { scroll-margin-top: 112px; }
.flux-shell { width: var(--flux-shell); margin-inline: auto; }

.flux-hero {
  display: grid;
  min-height: 100svh;
  padding: 118px var(--gutter) 38px;
  align-items: stretch;
}

.flux-hero__frame {
  position: relative;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  align-items: center;
  border-radius: var(--radius);
  background: #075fae url("./public/nexus-hero-1672.jpg") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.flux-hero__frame::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2,16,34,.68) 0%, rgba(2,16,34,.34) 48%, rgba(2,16,34,0) 76%);
  content: "";
}

.flux-hero__copy { width: min(1120px, 92%); padding: clamp(42px, 7vw, 104px); }
.flux-hero h1,
.flux-section h2,
.flux-close h2 { margin: 0; font-weight: 600; letter-spacing: -.065em; }
.flux-hero h1 { font-size: clamp(52px, 5vw, 76px); line-height: .94; }
.flux-hero p { max-width: 670px; margin: 30px 0 0; color: rgba(255,255,255,.88); font-size: clamp(16px,1.45vw,21px); line-height: 1.5; }
.flux-hero .button { margin-top: 34px; }

.flux-section { padding: clamp(88px, 10vw, 148px) 0; }
.flux-section__head { display: grid; max-width: 1180px; margin-bottom: clamp(54px,7vw,92px); grid-template-columns: minmax(0,1fr) minmax(280px,470px); gap: 48px; align-items: end; }
.flux-section h2 { max-width: 850px; font-size: clamp(48px,6vw,88px); line-height: .96; }
.flux-section__head > p { margin: 0 0 8px; color: var(--flux-muted); font-size: clamp(15px,1.3vw,19px); line-height: 1.6; }

.flux-architecture { min-height: 100svh; }
.flux-map {
  position: relative;
  display: grid;
  min-height: 360px;
  padding: clamp(44px,5vw,72px);
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(20,40,70,.06);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: 0 26px 70px rgba(31,50,80,.08);
}

.flux-map::before,
.flux-map::after {
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flux-blue), transparent);
  content: "";
  opacity: .4;
}
.flux-map::before { --flux-line-y: -22px; left: 5%; width: 90%; transform: translateY(var(--flux-line-y)); }
.flux-map::after { --flux-line-y: 24px; left: 11%; width: 78%; transform: translateY(var(--flux-line-y)); animation-delay: -2.4s; }
.flux-map.is-visible::before,
.flux-map.is-visible::after { animation: flux-line-pulse 5.4s ease-in-out infinite; }

.flux-map__rail { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)); gap: 18px; }
.flux-state {
  position: relative;
  display: grid;
  min-height: 150px;
  padding: 24px 18px;
  place-items: center;
  border: 1px solid rgba(10,132,255,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 46px rgba(10,80,160,.09);
  color: #075bb2;
  text-align: center;
}
.flux-state::before { width: 12px; height: 12px; margin-bottom: 14px; border: 3px solid currentColor; border-radius: 50%; content: ""; box-shadow: 0 0 0 8px rgba(10,132,255,.08); }
.flux-state strong { font-size: 14px; letter-spacing: .08em; }
.flux-state span { margin-top: 7px; color: var(--flux-muted); font-size: 11px; line-height: 1.4; }

.flux-capabilities { min-height: 100svh; }
.flux-capability-layout { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(52px,8vw,130px); align-items: start; }
.flux-capability-copy { position: sticky; top: 140px; }
.flux-capability-copy h2 { font-size: clamp(50px,6vw,88px); }
.flux-capability-copy p { max-width: 500px; margin: 30px 0 0; color: var(--flux-muted); font-size: clamp(15px,1.3vw,19px); line-height: 1.6; }
.flux-lanes { position: relative; display: grid; gap: 16px; }
.flux-lanes::before { position: absolute; top: 52px; bottom: 52px; left: 28px; width: 1px; background: linear-gradient(var(--flux-blue), rgba(10,132,255,.06)); content: ""; }
.flux-lane {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 24px 28px 24px 84px;
  align-content: center;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 48px rgba(32,55,88,.06);
}
.flux-lane__icon { position: absolute; top: 50%; left: 18px; display: grid; width: 44px; height: 44px; transform: translateY(-50%); place-items: center; border-radius: 50%; background: var(--flux-blue); color: #fff; box-shadow: 0 12px 28px rgba(10,132,255,.25); }
.flux-lane__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flux-lane h3 { margin: 0; font-size: clamp(18px,1.6vw,24px); font-weight: 650; letter-spacing: -.035em; }
.flux-lane p { margin: 7px 0 0; color: var(--flux-muted); font-size: 14px; line-height: 1.5; }

.flux-privacy { min-height: min(860px,100svh); padding: clamp(92px,10vw,150px) 0; color: #fff; }
.flux-privacy__frame { position: relative; display: grid; min-height: 600px; padding: clamp(46px,7vw,96px); overflow: hidden; align-content: center; border-radius: var(--radius); background: #020307; isolation: isolate; }
.flux-privacy__frame::before,
.flux-privacy__frame::after { position: absolute; z-index: -1; border: 1px solid rgba(10,132,255,.34); border-radius: 50%; content: ""; }
.flux-privacy__frame::before { right: -12%; bottom: -62%; width: min(62vw,850px); aspect-ratio: 1; }
.flux-privacy__frame::after { right: 3%; bottom: -40%; width: min(42vw,580px); aspect-ratio: 1; }
.flux-privacy h2 { max-width: 780px; font-size: clamp(52px,6vw,88px); }
.flux-principles { display: grid; max-width: 860px; margin-top: 56px; gap: 0; }
.flux-principle { display: grid; padding: 20px 0; grid-template-columns: 34px 1fr; gap: 16px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-size: clamp(15px,1.25vw,18px); line-height: 1.5; }
.flux-principle i { width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--flux-blue); box-shadow: 0 0 18px var(--flux-blue); }

.fluxcast-section { min-height: 100svh; }
.fluxcast-grid { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: clamp(36px,5vw,70px); align-items: center; }
.fluxcast-copy h2 { font-size: clamp(56px,6.5vw,96px); }
.fluxcast-copy > p { margin: 24px 0 40px; color: var(--flux-muted); font-size: clamp(16px,1.35vw,20px); line-height: 1.55; }
.fluxcast-features { display: grid; gap: 0; }
.fluxcast-feature { display: grid; padding: 17px 0; grid-template-columns: 18px 1fr; gap: 14px; border-top: 1px solid rgba(12,28,50,.1); font-size: 14px; line-height: 1.45; }
.fluxcast-feature::before { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--flux-blue); content: ""; }
.fluxcast-visual { position: relative; min-height: 570px; overflow: hidden; border-radius: var(--radius); background: #07336d; box-shadow: 0 28px 74px rgba(3,31,70,.22); }
.fluxcast-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.fluxcast-node { position: absolute; z-index: 2; width: 13px; height: 13px; border: 3px solid rgba(255,255,255,.82); border-radius: 50%; background: var(--flux-blue); box-shadow: 0 0 0 7px rgba(10,132,255,.15), 0 0 24px rgba(255,255,255,.45); }
.fluxcast-node::after { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); content: "PEER"; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.fluxcast-node.n1 { top: 32%; left: 16%; }
.fluxcast-node.n2 { top: 61%; left: 36%; }
.fluxcast-node.n3 { top: 26%; right: 21%; }
.fluxcast-node.n4 { right: 10%; bottom: 24%; }
.fluxcast-path { position: absolute; z-index: 1; height: 1px; transform-origin: left center; background: rgba(255,255,255,.68); box-shadow: 0 0 10px rgba(120,200,255,.8); }
.fluxcast-path.p1 { top: 34%; left: 17%; width: 44%; transform: rotate(17deg); }
.fluxcast-path.p2 { top: 63%; left: 37%; width: 45%; transform: rotate(-39deg); }
.fluxcast-path.p3 { top: 28%; left: 61%; width: 24%; transform: rotate(33deg); }
.fluxcast-path.p4 { top: 54%; left: 62%; width: 29%; transform: rotate(25deg); }
.fluxcast-visual.is-visible .fluxcast-path { animation: flux-path-glow 3.8s ease-in-out infinite; }

.flux-status { padding-top: 0; }
.flux-status__frame { display: grid; padding: clamp(42px,6vw,82px); grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); gap: 64px; border: 1px solid rgba(20,40,70,.07); border-radius: var(--radius); background: #fff; box-shadow: 0 24px 68px rgba(31,50,80,.07); }
.flux-status h2 { font-size: clamp(44px,5vw,72px); }
.flux-status p { margin: 26px 0 0; color: var(--flux-muted); font-size: 16px; line-height: 1.6; }
.flux-status dl { margin: 0; }
.flux-status dl > div { padding: 18px 0; border-top: 1px solid rgba(12,28,50,.1); }
.flux-status dt { color: var(--flux-muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.flux-status dd { margin: 8px 0 0; font-size: 15px; font-weight: 550; line-height: 1.45; }

.flux-close { padding: clamp(100px,12vw,180px) 0; text-align: center; }
.flux-close h2 { max-width: 1000px; margin-inline: auto; font-size: clamp(54px,7vw,108px); line-height: .92; }
.flux-close p { max-width: 760px; margin: 34px auto 0; color: var(--flux-muted); font-size: clamp(16px,1.4vw,20px); line-height: 1.6; }
.flux-close .button { margin-top: 38px; }

.flux-page .footer { transition: color .6s var(--ease), background-color .6s var(--ease); }
@keyframes flux-line-pulse { 0%,100% { opacity: .16; transform: translateY(var(--flux-line-y)) scaleX(.86); } 50% { opacity: .68; transform: translateY(var(--flux-line-y)) scaleX(1); } }
@keyframes flux-path-glow { 0%,100% { opacity: .34; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .flux-hero { min-height: auto; padding-top: 96px; }
  .flux-hero__frame { min-height: 620px; align-items: end; background-position: 61% center; }
  .flux-hero__frame::after { background: linear-gradient(0deg, rgba(2,16,34,.76) 0%, rgba(2,16,34,.28) 72%, transparent); }
  .flux-hero__copy { width: 100%; padding: 48px; }
  .flux-section__head { grid-template-columns: 1fr; gap: 24px; }
  .flux-map__rail { grid-template-columns: repeat(5, minmax(112px,1fr)); overflow-x: auto; padding: 10px 2px 24px; scroll-snap-type: x proximity; }
  .flux-state { scroll-snap-align: start; }
  .flux-capability-layout,
  .fluxcast-grid,
  .flux-status__frame { grid-template-columns: 1fr; }
  .flux-capability-copy { position: static; }
  .fluxcast-visual { min-height: 520px; }
}

@media (max-width: 767px) {
  :root { --flux-shell: calc(100% - 32px); }
  .flux-hero { padding: 88px 16px 24px; }
  .flux-main section[id] { scroll-margin-top: 92px; }
  .flux-hero__frame { min-height: calc(100svh - 112px); border-radius: 18px; background-image: url("./public/nexus-hero-800.jpg"); }
  .flux-hero__copy { padding: 30px 26px 38px; }
  .flux-hero h1 { font-size: clamp(46px,13vw,62px); }
  .flux-hero p { margin-top: 22px; font-size: 14px; }
  .flux-hero .button { margin-top: 26px; }
  .flux-section { padding: 86px 0; }
  .flux-section h2,
  .flux-capability-copy h2,
  .flux-privacy h2,
  .fluxcast-copy h2 { font-size: clamp(44px,12vw,58px); }
  .flux-section__head { margin-bottom: 42px; }
  .flux-map { min-height: 290px; padding: 28px 18px; border-radius: 18px; }
  .flux-map__rail { margin-inline: -2px; gap: 12px; }
  .flux-state { min-height: 132px; border-radius: 16px; }
  .flux-capability-layout { gap: 42px; }
  .flux-lane { min-height: 110px; padding: 20px 18px 20px 74px; border-radius: 17px; }
  .flux-lane__icon { left: 14px; }
  .flux-privacy { min-height: auto; padding: 30px 0; }
  .flux-privacy__frame { min-height: 640px; padding: 42px 26px; border-radius: 18px; }
  .flux-principles { margin-top: 38px; }
  .fluxcast-grid { gap: 38px; }
  .fluxcast-visual { min-height: 460px; border-radius: 18px; }
  .flux-status__frame { padding: 34px 24px; gap: 34px; border-radius: 18px; }
  .flux-close { padding: 104px 0; text-align: left; }
  .flux-close h2 { font-size: clamp(52px,14vw,68px); }
  .flux-close p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flux-map::before,
  .flux-map::after,
  .fluxcast-path { animation: none !important; }
}
