/* Fluxdyne corporate site — design system.
   Palette (approved brand board): Night #0B1220 · Flux Blue #00B6E3 · Slate #475569 · Silver #E5E7EB · White.
   Voice: enterprise infrastructure. Restraint over spectacle; one accent; no glassmorphism. */

:root {
  --night: #0B1220;
  --night-2: #0E1728;
  --night-3: #111C30;
  --flux: #00B6E3;
  --flux-dim: rgba(0, 182, 227, 0.55);
  --slate: #475569;
  --silver: #E5E7EB;
  --white: #FFFFFF;
  --ink: #EAF0F6;
  --ink-muted: #9AA8BC;
  --ink-dim: #7E8CA2;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(0, 182, 227, 0.35);
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --shell: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* faint blueprint grid — texture without noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(1200px 800px at 50% 0%, #000 35%, transparent 80%);
}

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

/* ---- accessibility fundamentals ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--flux); color: #01222c;
  font: 600 13px/1 var(--body); text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--flux);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- header ---- */
.fx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.fx-header-in {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.fx-brand { display: inline-flex; align-items: center; text-decoration: none; }
.fx-brand img { display: block; height: 30px; width: auto; }
.fx-brand b {
  color: var(--white); font: 600 20px/1 var(--display); letter-spacing: -0.02em;
}
.fx-brand b i { font-style: normal; color: var(--flux); }
.fx-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.fx-nav a {
  padding: 10px 12px; color: var(--ink-muted); text-decoration: none;
  font: 500 13.5px/1 var(--body); border-radius: 7px;
  transition: color 180ms ease, background 180ms ease;
}
.fx-nav a:hover { color: var(--white); background: rgba(148, 163, 184, 0.08); }
.fx-nav a[aria-current="page"] { color: var(--white); }
.fx-header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 8px;
  font: 600 13.5px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.fx-btn:hover { transform: translateY(-1px); }
.fx-btn:active { transform: translateY(0) scale(0.985); }
.fx-btn-primary { background: var(--flux); color: #01222c; }
.fx-btn-primary:hover { background: #24c6ee; }
.fx-btn-ghost { border-color: rgba(148, 163, 184, 0.3); color: var(--ink); }
.fx-btn-ghost:hover { border-color: var(--flux); color: var(--white); }
.fx-btn-quiet { color: var(--ink-muted); }
.fx-btn-quiet:hover { color: var(--white); }

/* mobile nav */
.fx-menu-toggle { display: none; }
.fx-nav-cta { display: none !important; }
@media (max-width: 980px) {
  .fx-nav { display: none; }
  .fx-header-cta .fx-btn-ghost, .fx-header-cta .fx-btn-primary { display: none; }
  .fx-mobile-open .fx-nav .fx-nav-cta { display: flex !important; margin-top: 8px; color: var(--flux); font-weight: 600; border-top: 1px solid var(--line); padding-top: 16px; }
  .fx-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  }
  .fx-header-cta { margin-left: 0; }
  .fx-mobile-open .fx-nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    padding: 10px 18px 18px; margin: 0;
    background: var(--night-2); border-bottom: 1px solid var(--line);
  }
  .fx-mobile-open .fx-nav a { padding: 14px 10px; font-size: 15px; }
}

/* ---- hero ---- */
.fx-hero { position: relative; padding: clamp(84px, 12vw, 150px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.fx-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 78% 18%, rgba(0, 182, 227, 0.09), transparent 65%);
}
.fx-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  color: var(--flux); font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.fx-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1 {
  max-width: 15ch; margin: 0;
  font: 600 clamp(2.6rem, 6vw, 4.6rem)/1.04 var(--display);
  letter-spacing: -0.035em; color: var(--white); text-wrap: balance;
}
.fx-hero-sub {
  max-width: 620px; margin: 26px 0 0;
  color: var(--ink-muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; text-wrap: pretty;
}
.fx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* signal-flow motif: thin lanes converging on the hero's right */
.fx-flow { position: absolute; right: -40px; top: 0; height: 100%; width: min(46vw, 640px); pointer-events: none; opacity: 0.9; }
.fx-flow line, .fx-flow path { fill: none; vector-effect: non-scaling-stroke; }
.fx-flow .lane { stroke: rgba(148, 163, 184, 0.13); stroke-width: 1; }
.fx-flow .pulse { stroke: var(--flux); stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
@media (max-width: 980px) { .fx-flow { display: none; } }

/* ---- sections ---- */
.fx-section { position: relative; padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
h2 {
  max-width: 22ch; margin: 0;
  font: 600 clamp(1.85rem, 3.6vw, 2.7rem)/1.12 var(--display);
  letter-spacing: -0.028em; color: var(--white); text-wrap: balance;
}
.fx-section-intro { max-width: 640px; margin: 20px 0 0; color: var(--ink-muted); font-size: 1.04rem; text-wrap: pretty; }

/* problem list — asymmetric two-column, not a card row */
.fx-problem-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.fx-problem-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.fx-problem-list li { padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); position: relative; }
.fx-problem-list li:last-child { border-bottom: 0; }
.fx-problem-list li::before {
  content: ""; position: absolute; left: 4px; top: 31px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--flux); opacity: 0.85;
}
.fx-problem-list b { display: block; color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.fx-problem-list p { margin: 6px 0 0; color: var(--ink-muted); font-size: 0.95rem; }

/* platform capabilities */
.fx-cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.fx-cap {
  padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--night-2), var(--night));
  transition: border-color 200ms ease, transform 200ms ease;
}
.fx-cap:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.fx-cap svg { display: block; width: 26px; height: 26px; margin-bottom: 16px; stroke: var(--flux); }
.fx-cap h3 { margin: 0; font: 600 1.02rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.fx-cap p { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; }
.fx-cap.wide { grid-column: span 2; }
@media (max-width: 980px) { .fx-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-cap.wide { grid-column: span 2; } }
@media (max-width: 640px) { .fx-cap-grid { grid-template-columns: 1fr; } .fx-cap.wide { grid-column: auto; } }

/* product feature panel */
.fx-product {
  margin-top: 48px; padding: clamp(30px, 4.5vw, 54px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(0, 182, 227, 0.08), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(30px, 5vw, 70px); align-items: center;
}
.fx-product-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fx-product-name b { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--white); }
.fx-product-name span { color: var(--flux); font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.fx-product p { margin: 16px 0 0; color: var(--ink-muted); max-width: 52ch; }
.fx-product-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fx-product-proof { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); display: grid; gap: 18px; }
.fx-product-proof div b { display: block; color: var(--ink); font: 600 0.95rem/1.4 var(--body); }
.fx-product-proof div span { color: var(--ink-dim); font-size: 0.86rem; }
@media (max-width: 980px) {
  .fx-product { grid-template-columns: 1fr; }
  .fx-product-proof { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* solutions — 2x2 */
.fx-sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.fx-sol {
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--night-2);
  transition: border-color 200ms ease;
}
.fx-sol:hover { border-color: var(--line-strong); }
.fx-sol .tag { color: var(--flux); font: 600 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.fx-sol h3 { margin: 12px 0 0; font: 600 1.25rem/1.3 var(--display); letter-spacing: -0.015em; color: var(--white); }
.fx-sol p { margin: 12px 0 0; color: var(--ink-muted); font-size: 0.95rem; }
@media (max-width: 760px) { .fx-sol-grid { grid-template-columns: 1fr; } }

/* design partner + sovereign */
.fx-band {
  margin-top: 0; padding: clamp(40px, 6vw, 70px);
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
}
.fx-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .fx-two-col { grid-template-columns: 1fr; } }
.fx-fact-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.fx-fact-list li { display: flex; gap: 12px; color: var(--ink-muted); font-size: 0.97rem; }
.fx-fact-list li::before { content: "—"; color: var(--flux); flex: 0 0 auto; }

/* ---- forms (contact) ---- */
.fx-form { margin-top: 40px; max-width: 640px; display: grid; gap: 18px; }
.fx-field { display: grid; gap: 7px; }
.fx-field label { font: 600 13px/1.3 var(--body); color: var(--ink); }
.fx-field .hint { color: var(--ink-dim); font-size: 12px; }
.fx-field input, .fx-field textarea, .fx-field select {
  width: 100%; padding: 13px 14px; border-radius: 8px;
  background: var(--night-2); border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--ink); font: 400 16px/1.5 var(--body);
  transition: border-color 160ms ease;
}
.fx-field input:hover, .fx-field textarea:hover { border-color: rgba(148, 163, 184, 0.4); }
.fx-field input:focus, .fx-field textarea:focus { border-color: var(--flux); outline: none; }
.fx-field textarea { min-height: 130px; resize: vertical; }
.fx-form-error { color: #f0a9a9; font-size: 13.5px; margin: 0; }
.fx-form-ok {
  padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(0, 182, 227, 0.07); color: var(--ink); font-size: 15px;
}

/* ---- footer ---- */
.fx-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 76px) 0 40px; background: #080E1A; }
.fx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 28px; }
.fx-footer h3 { margin: 0 0 14px; font: 600 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.fx-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fx-footer a { color: var(--ink-muted); text-decoration: none; font-size: 13.5px; }
.fx-footer a:hover { color: var(--white); }
.fx-footer-brand .fx-footer-lockup { height: 24px; width: auto; }
.fx-footer-brand b { display: block; margin-top: 10px; color: var(--white); font: 600 17px/1 var(--display); }
.fx-footer-brand b i { font-style: normal; color: var(--flux); }
.fx-footer-brand p { margin: 12px 0 0; max-width: 30ch; color: var(--ink-dim); font-size: 13px; line-height: 1.6; }
.fx-footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-dim); font: 500 11px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 980px) { .fx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-footer-brand { grid-column: span 2; } }

/* ---- inner pages ---- */
.fx-page { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); }
.fx-prose { max-width: 72ch; color: var(--ink-muted); }
.fx-prose h2 { font-size: 1.5rem; margin-top: 44px; }
.fx-prose p, .fx-prose li { font-size: 0.99rem; line-height: 1.75; }
.fx-prose strong { color: var(--ink); }
.fx-prose a { color: var(--flux); }
.fx-crumb { margin: 0 0 18px; color: var(--ink-dim); font: 500 12px/1 var(--mono); }
.fx-crumb a { color: var(--ink-muted); text-decoration: none; }
.fx-crumb a:hover { color: var(--flux); }

/* ---- motion: progressive enhancement only ---- */
.js .fx-r { opacity: 0; transform: translateY(18px); transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .fx-r.in { opacity: 1; transform: none; }
.js .fx-flow .pulse { stroke-dasharray: 40 460; stroke-dashoffset: 500; animation: fxPulse 7s linear infinite; }
.js .fx-flow .pulse.p2 { animation-delay: 2.3s; }
.js .fx-flow .pulse.p3 { animation-delay: 4.6s; }
@keyframes fxPulse { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fx-r { opacity: 1; transform: none; transition: none; }
  .js .fx-flow .pulse { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.35; }
  .fx-btn, .fx-cap { transition: none; }
  .fx-btn:hover, .fx-cap:hover { transform: none; }
}

/* ---- developers section ---- */
.fx-link { color: var(--flux); }
.fx-dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.fx-dev-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
.fx-dev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fx-dev-head h3 { margin: 0; font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flux); }
.fx-copy {
  min-height: 32px; padding: 0 12px; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 6px;
  background: none; color: var(--ink-muted); font: 600 11.5px/1 var(--body); cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.fx-copy:hover { color: var(--white); border-color: var(--flux); }
.fx-dev-card pre {
  flex: 1; margin: 0; padding: 14px; overflow-x: auto;
  background: rgba(2, 6, 12, 0.6); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 8px;
  font: 500 12px/1.6 var(--mono); color: var(--ink);
}
.fx-dev-card pre code { font: inherit; }
.fx-dev-note { margin: 12px 0 0; color: var(--ink-dim); font-size: 12.5px; line-height: 1.6; }
.fx-dev-note code { font: 600 11.5px/1 var(--mono); color: var(--ink-muted); }
.fx-live #fx-live-btn { margin-top: 14px; align-self: flex-start; }
#fx-live-out:not(:empty) {
  margin-top: 4px; padding: 12px 14px;
  background: rgba(2, 6, 12, 0.6); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 8px;
  font: 500 12px/1.7 var(--mono); color: var(--ink-muted);
}
#fx-live-out b { color: var(--ink); font-weight: 600; }
#fx-live-out a { color: var(--flux); }
@media (max-width: 980px) { .fx-dev-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- verify steps ---- */
.fx-steps { margin: 6px 0 0; padding: 0 0 0 0; list-style: none; counter-reset: fxstep; display: grid; gap: 18px; }
.fx-steps li { position: relative; padding-left: 46px; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; counter-increment: fxstep; }
.fx-steps li::before {
  content: counter(fxstep); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--flux); font: 600 13px/1 var(--mono);
}
.fx-steps b { color: var(--ink); }

/* ---- form required markers + status states ---- */
.fx-field label.req::after { content: " *"; color: var(--flux); }

/* UX audit 2026-07-20: anchor offset under sticky header + footer/breadcrumb touch targets */
html { scroll-padding-top: 84px; }
.fx-footer a, .fx-crumb a { display: inline-block; padding: 6px 2px; }
.fx-footer-base nav a { padding: 10px 4px; }
