/* Sync Flux: design system.
   System font stack only (no third-party font requests). Tokens first, then base, layout, components. */

:root {
  --bg: #080B14;
  --bg-2: #0E1322;
  --surface: #121A2B;
  --surface-2: #172139;
  --blue: #3B82F6;
  --blue-text: #7DB0FF;
  --violet: #A855F7;
  --violet-text: #C9A2FF;
  --text: #F5F7FF;
  --muted: #A8B2C7;
  --border: #263047;
  --border-soft: #1B2438;
  --grad: linear-gradient(100deg, #3B82F6, #A855F7);
  --grad-btn: linear-gradient(100deg, #2563EB, #7C3AED);
  --focus: #9CC2FF;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: #B4D0FF; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); letter-spacing: -0.04em; font-weight: 760; }
h2 { font-size: clamp(1.8rem, 3.9vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: #080B14; padding: 10px 16px; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.fine { font-size: 0.92rem; color: var(--muted); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 24px -8px rgba(99, 102, 241, .65); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(124, 92, 246, .8); }
.btn-secondary { background: transparent; color: var(--text); border-color: #3A4766; }
.btn-secondary:hover { color: var(--text); border-color: var(--blue-text); background: rgba(59, 130, 246, .08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(125, 176, 255, .45); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 20, .88);
  border-bottom: 1px solid var(--border-soft);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(8, 11, 20, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border-radius: 6px; }
.brand:hover { color: var(--text); }
.brand-word { font-size: 1.28rem; font-weight: 780; letter-spacing: -0.03em; }
.brand-word span { font-weight: 500; color: var(--muted); margin-left: 1px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav li a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; padding: 8px 2px; border-bottom: 2px solid transparent; }
.site-nav li a:hover { color: var(--text); border-bottom-color: var(--blue); }
.btn-nav { min-height: 42px; padding: 8px 18px; font-size: .94rem; }

.nav-toggle { display: none; }

@media (max-width: 61em) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--text); border: 1px solid #3A4766; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars { display: grid; gap: 5px; width: 18px; }
  .nav-toggle-bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
  .nav-open .nav-toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .site-nav { flex-direction: column; align-items: stretch; gap: 18px; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .js .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); }
  .btn-nav { min-height: 50px; }

  /* Without JS: nav drops below the brand as a wrapped row */
  html:not(.js) .nav-bar { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  html:not(.js) .site-nav li a { border-bottom: 0; padding: 6px 0; }
  html:not(.js) .btn-nav { display: none; }
}
@media (max-width: 24em) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand-word { font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(124, 92, 246, .18), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(59, 130, 246, .14), transparent 70%),
    linear-gradient(to right, rgba(38, 48, 71, .45) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(38, 48, 71, .45) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-grid { display: grid; gap: clamp(36px, 6vw, 64px); grid-template-columns: 1fr; align-items: center; }
.hero-copy .lead { margin-top: 24px; max-width: 58ch; }
.hero-scope { margin-top: 32px; font-size: .92rem; color: var(--muted); max-width: 60ch; border-top: 1px solid var(--border); padding-top: 18px; }

.hero-visual { min-width: 0; }
.flux { display: block; width: 100%; height: auto; }
.lanes { display: grid; gap: 10px; margin-top: 8px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: rgba(14, 19, 34, .7); }
.lanes li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.lanes strong { color: var(--text); font-weight: 650; }
.dot { position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; }
.dot-blue { background: var(--blue); }
.dot-violet { background: var(--violet); }
.dot-grad { background: var(--grad); }

@media (min-width: 62em) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Single orchestrated moment: lanes draw in and converge, once. */
@media (prefers-reduced-motion: no-preference) {
  .flow { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3, .6, .2, 1) .15s forwards; }
  .flow-out { animation-delay: 1.1s; animation-duration: .9s; }
  .node-ring, .stack { opacity: 0; animation: appear .6s ease forwards; }
  .node-ring { animation-delay: .95s; }
  .stack { animation-delay: 1.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
  .hero-copy > * { animation: rise .7s ease backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { max-width: 20ch; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* Capability overview: open grid with rules rather than a wall of identical cards */
.cap-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.cap { padding: 28px 0; border-bottom: 1px solid var(--border); }
.cap h3 { margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.cap-feature h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; font-weight: 600; }
@media (min-width: 40em) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 64em) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
}

/* Services: editorial rows */
.services { border-top: 1px solid var(--border); }
.service {
  display: grid; gap: 20px 48px; padding: 36px 0; border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr;
}
.service-cat { font-size: .88rem; color: var(--violet-text); margin: 0 0 10px; font-weight: 600; }
.service h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 14px; }
.service-main p { color: var(--muted); }
.covers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.covers li { font-size: .9rem; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: rgba(18, 26, 43, .6); }
.service-facts { display: grid; gap: 16px; align-content: start; }
.service-facts dt { font-size: .88rem; font-weight: 650; color: var(--blue-text); margin-bottom: 2px; }
.service-facts dd { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.service > .text-link { align-self: start; justify-self: start; }
@media (min-width: 62em) {
  .service { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "main facts" "link facts"; padding: 44px 0; }
  .service-main { grid-area: main; }
  .service-facts { grid-area: facts; }
  .service > .text-link { grid-area: link; }
}

/* ---------- Product Management Consultancy feature ---------- */
.pm { position: relative; }
.pm-panel { position: relative; border-radius: 16px; padding: clamp(28px, 5vw, 64px); isolation: isolate; }
/* ::before is the gradient hairline border; ::after is the opaque fill that sits on top of it. */
.pm-panel::before {
  content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: 17px;
  background: linear-gradient(135deg, #3B82F6, #263047 40%, #263047 60%, #A855F7);
}
.pm-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; pointer-events: none;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(168, 85, 247, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(59, 130, 246, .12), transparent 70%),
    linear-gradient(180deg, #111A2E, #0C1222);
}
.pm-tag { font-size: .95rem; font-weight: 600; color: var(--violet-text); margin-bottom: 16px; }
.pm-intro h2 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 16ch; letter-spacing: -0.035em; }
.pm-intro .lead { margin-top: 20px; max-width: 62ch; }
.pm-body { display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--border); }
.pm-col h3 { margin-bottom: 16px; }
.pm-col p { color: var(--muted); font-size: 1rem; }
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #D6DCEB; font-size: 1rem; line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px;
  border-left: 2px solid var(--blue-text); border-bottom: 2px solid var(--blue-text); transform: rotate(-45deg);
}
.pm-steps { display: grid; gap: 14px; counter-reset: pm; margin-top: 18px; }
.pm-steps li { counter-increment: pm; position: relative; padding-left: 40px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.pm-steps li::before {
  content: counter(pm); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: #fff; background: var(--grad-btn);
}
.pm-steps strong { color: var(--text); }
.pm .fine { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
@media (min-width: 56em) {
  .pm-body { grid-template-columns: 1fr 1fr; }
  .pm-body .pm-col:nth-child(2) { grid-row: span 2; }
}
@media (min-width: 72em) {
  .pm-body { grid-template-columns: 1fr 1.1fr 1fr; }
  .pm-body .pm-col:nth-child(2) { grid-row: auto; }
}

/* ---------- Who we work with ---------- */
.who-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.who { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.who:first-child { border-top: 3px solid var(--blue); }
.who:last-child { border-top: 3px solid var(--violet); }
.who h3 { font-size: 1.5rem; margin-bottom: 12px; }
.who > p { color: var(--muted); }
.who-list { display: grid; gap: 4px; margin: 18px 0 24px; }
.who-list li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); text-decoration: none; font-weight: 550; font-size: 1rem; }
.who-list li a:hover { color: var(--blue-text); }
@media (min-width: 56em) { .who-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Approach ---------- */
.process { display: grid; gap: 0; grid-template-columns: 1fr; position: relative; counter-reset: none; }
.process li { position: relative; padding: 0 0 32px 56px; }
.process li:last-child { padding-bottom: 0; }
.process li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--blue), var(--violet)); opacity: .55; }
.process li:last-child::before { display: none; }
.process h3 { display: flex; align-items: center; font-size: 1.4rem; margin-bottom: 8px; min-height: 40px; }
.step-n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-btn); font-size: 1rem; }
.process p { color: var(--muted); max-width: 36ch; }
@media (min-width: 52em) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .process li { padding: 64px 0 0 0; }
  .process li::before { left: 40px; right: -28px; top: 19px; bottom: auto; width: auto; height: 2px; background: linear-gradient(to right, var(--blue), var(--violet)); }
  .process li:last-child::before { display: none; }
  .process h3 { min-height: 0; }
  .step-n { top: 0; }
}

/* ---------- Partnerships ---------- */
.narrow-split { display: grid; gap: 40px; grid-template-columns: 1fr; }
.narrow-split .section-head { margin-bottom: 0; }
.partner-points { display: grid; gap: 28px; }
.partner-points li { padding-left: 20px; border-left: 2px solid var(--border); }
.partner-points li:nth-child(1) { border-image: linear-gradient(to bottom, #3B82F6, transparent) 1; }
.partner-points li:nth-child(2) { border-image: linear-gradient(to bottom, #6D7CFF, transparent) 1; }
.partner-points li:nth-child(3) { border-image: linear-gradient(to bottom, #A855F7, transparent) 1; }
.partner-points h3 { margin-bottom: 6px; }
.partner-points p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (min-width: 62em) { .narrow-split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 0 56px; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.why-grid > div { padding: 22px 0; border-bottom: 1px solid var(--border); }
.why-grid dt { font-weight: 680; font-size: 1.1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.why-grid dd { color: var(--muted); font-size: 1rem; }
@media (min-width: 52em) { .why-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Scenarios ---------- */
.scenarios { display: grid; gap: 20px; grid-template-columns: 1fr; }
.scenario { padding: 28px; border: 1px dashed #3A4766; border-radius: 12px; background: rgba(18, 26, 43, .45); }
.badge { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border: 1px solid var(--violet); border-radius: 6px; font-size: .84rem; font-weight: 650; color: var(--violet-text); }
.scenario h3 { margin-bottom: 16px; }
.scenario dl { display: grid; gap: 12px; }
.scenario dt { font-size: .88rem; font-weight: 650; color: var(--blue-text); }
.scenario dd { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 52em) { .scenarios { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; min-height: 56px; font-weight: 650; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--blue-text); border-bottom: 2px solid var(--blue-text); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--blue-text); }
.faq details p { padding: 0 4px 22px; margin: 0; color: var(--muted); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: left; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 90% at 85% 100%, rgba(124, 92, 246, .22), transparent 70%), radial-gradient(45% 80% at 5% 0%, rgba(59, 130, 246, .16), transparent 70%);
}
.final h2 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); letter-spacing: -0.035em; max-width: 14ch; }
.final .lead { margin-top: 20px; max-width: 54ch; }
.book-note { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--violet); background: rgba(18, 26, 43, .8); border-radius: 0 8px 8px 0; color: var(--text); max-width: 60ch; }
.final .fine { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: #060911; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; }
.footer-about p { color: var(--muted); font-size: .98rem; margin-top: 14px; max-width: 38ch; }
.footer-h { font-size: .95rem; letter-spacing: 0; margin-bottom: 12px; color: var(--text); font-weight: 650; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer li a { color: var(--muted); text-decoration: none; font-size: .96rem; display: inline-block; padding: 3px 0; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.footer-base p { margin: 0; color: var(--muted); font-size: .9rem; max-width: none; }
@media (min-width: 52em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-about { grid-column: auto; }
}

/* ---------- Document pages (privacy) ---------- */
.doc { padding: clamp(40px, 7vw, 88px) 0; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; letter-spacing: -0.015em; }
.prose p { color: var(--muted); max-width: 70ch; }

/* ---------- Forced colors and reduced motion ---------- */
@media (forced-colors: active) {
  .btn-primary, .step-n, .pm-steps li::before { border: 1px solid CanvasText; }
  .cap-feature h3 { color: CanvasText; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flow { stroke-dasharray: none; stroke-dashoffset: 0; }
}
