/* GANAF Desk landing page. */
/* Layout: the hero is a live network with GANAF Desk at the centre and the organisation's
   functions as nodes around it. Then: how work moves through the organogram, the leadership
   view, four principles, and a deep-indigo sign-in band (Midnight in dark theme). */
:root {
  /* Ganaf palette (ganaf-design-system/tokens/ganaf.css) */
  --indigo: #706BE8;
  --indigo-600: #5953C3;
  --orange: #FF6600;
  --midnight: #25225C; /* deep indigo in light theme, true Midnight in dark */

  --bg: #FFFFFF;
  --bg-subtle: #F7F7FA;
  --surface: #FFFFFF;
  --surface-sunken: #EEEFF4;
  --text: #282842;
  --text-strong: #1C1B28;
  --text-muted: #60617D;
  --text-brand: #5953C3;
  --border: #E2E3EA;
  --border-strong: #C9CAD6;
  --primary: #5953C3;
  --primary-hover: #4743AB;
  --primary-subtle: #F0F1FF;
  --pattern: #EFF4F6;
  --hub: #25225C;
  --hub-ring: #E2E1FA;
  --link: #C9CAD6;
  --link-live: #706BE8;
  --chart-fill: rgba(112,107,232,.14);
  --success-text: #0B7A3B; --success-subtle: #E8F6EE;
  --warning-text: #9A5B00; --warning-subtle: #FEF5E6;
  --info-text: #5953C3;    --info-subtle: #F0F1FF;
  --band-bg: #25225C;
  --band-card: #322E78;
  --band-pattern: #2C2970;
  --shadow-lg: 0 24px 48px rgba(89,83,195,.14), 0 6px 16px rgba(40,40,66,.06);
  --shadow-md: 0 8px 24px rgba(40,40,66,.08), 0 2px 6px rgba(40,40,66,.04);
  --focus-color: #706BE8;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --midnight: #1C1B28;
    --bg: #1C1B28; --bg-subtle: #22212F; --surface: #282842; --surface-sunken: #171622;
    --text: #EEEFF4; --text-strong: #FFFFFF; --text-muted: #A3A4B7; --text-brand: #ACA9F2;
    --border: #3A3A55; --border-strong: #4E4F68;
    --primary-hover: #706BE8; --primary-subtle: #2E2C55;
    --pattern: #22212F;
    --hub: #2F2F4C; --hub-ring: #2E2C55; --link: #4E4F68; --link-live: #8D89ED;
    --chart-fill: rgba(141,137,237,.18);
    --success-text: #4ADE80; --success-subtle: #15302A;
    --warning-text: #FBBF24; --warning-subtle: #36291A;
    --info-text: #ACA9F2;    --info-subtle: #2E2C55;
    --band-bg: #171622; --band-card: #282842; --band-pattern: #22212F;
    --shadow-lg: 0 24px 48px rgba(0,0,0,.35); --shadow-md: 0 8px 24px rgba(0,0,0,.25);
    --focus-color: #8D89ED;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --midnight: #1C1B28;
  --bg: #1C1B28; --bg-subtle: #22212F; --surface: #282842; --surface-sunken: #171622;
  --text: #EEEFF4; --text-strong: #FFFFFF; --text-muted: #A3A4B7; --text-brand: #ACA9F2;
  --border: #3A3A55; --border-strong: #4E4F68;
  --primary-hover: #706BE8; --primary-subtle: #2E2C55;
  --pattern: #22212F;
  --hub: #2F2F4C; --hub-ring: #2E2C55; --link: #4E4F68; --link-live: #8D89ED;
  --chart-fill: rgba(141,137,237,.18);
  --success-text: #4ADE80; --success-subtle: #15302A;
  --warning-text: #FBBF24; --warning-subtle: #36291A;
  --info-text: #ACA9F2;    --info-subtle: #2E2C55;
  --band-bg: #171622; --band-card: #282842; --band-pattern: #22212F;
  --shadow-lg: 0 24px 48px rgba(0,0,0,.35); --shadow-md: 0 8px 24px rgba(0,0,0,.25);
  --focus-color: #8D89ED;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 13px; }

.wrap {
  max-width: var(--container); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 120ms cubic-bezier(.2,0,0,1), border-color 120ms;
}
.btn svg { width: 18px; height: 18px; transition: transform 200ms cubic-bezier(.2,0,0,1); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-accent { background: var(--orange); color: var(--midnight); padding-left: 8px; gap: 12px; box-shadow: 0 10px 24px -8px rgba(255,102,0,.55); }
.btn-accent:hover { background: #E45B00; }
.btn-accent .lead-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--midnight); color: var(--orange); flex: none; }
.btn-accent .lead-ico svg { width: 18px; height: 18px; }
.btn-accent:hover .lead-ico svg { transform: none; }
.btn-quiet { color: var(--text-brand); padding-inline: 14px; }
.btn-quiet:hover { background: var(--primary-subtle); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .divider { width: 1px; height: 24px; background: var(--border-strong); }
.brand .product { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--text-strong); background: var(--bg-subtle); }
.site-header [data-theme-switch] { flex: none; }
@media (max-width: 900px) { .nav { display: none; } .site-header [data-theme-switch] { margin-left: auto; } }
@media (max-width: 420px) { .brand .divider, .brand .product { display: none; } .site-header .wrap { gap: 12px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding-block: 64px 80px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
/* Headline: three stacked lines; the last word carries the brand colour. */
.hero h1 {
  display: flex; flex-direction: column;
  font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; font-weight: 700;
}
.hero h1 .soft { color: var(--text-muted); font-weight: 600; }
.hero h1 .word { color: var(--text-brand); padding-bottom: .06em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--success-text); flex: none; }

.web { position: relative; }
.web .backdrop { position: absolute; left: -15%; top: 50%; width: 160%; height: auto; transform: translateY(-50%); color: var(--pattern); z-index: 0; pointer-events: none; }
.web svg.map { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-width: 600px; margin-inline: auto; overflow: visible; }
.map .orbit { fill: none; stroke: var(--link); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.map .spoke { fill: none; stroke: var(--link); stroke-width: 2.5; stroke-linecap: round; }
.map .sat circle.bg { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.map .sat use { color: var(--text-brand); }
.map .sat text { font: 600 14px var(--font-sans); fill: var(--text-strong); text-anchor: middle; }
.map .hub-ring { fill: var(--hub-ring); }
.map .hub { fill: var(--hub); }
.map .pulse { fill: var(--link-live); }
.map .halo { fill: none; stroke: var(--link-live); stroke-width: 2; opacity: 0; }

.signal {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.35;
  max-width: 250px;
}
.signal .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--success-subtle); color: var(--success-text); }
.signal .dot svg { width: 16px; height: 16px; }
.signal b { display: block; font-weight: 600; color: var(--text-strong); }
.signal span { color: var(--text-muted); font-size: 12px; }
.signal.s1 { left: 0; top: 2%; }
.signal.s2 { right: 0; bottom: 3%; }
.signal.s2 .dot { background: var(--info-subtle); color: var(--info-text); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 32px; }
  .hero-copy { max-width: 620px; }
}
@media (max-width: 560px) { .signal { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .signal { animation: rise 600ms cubic-bezier(0,0,0,1) both; }
  .signal.s1 { animation-delay: 500ms; }
  .signal.s2 { animation-delay: 900ms; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}

/* ---------- Sections ---------- */
section.block { padding-block: 104px; }
section.block.alt { background: var(--bg-subtle); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.025em; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--border); }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--border); }
.node-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #FFFFFF; flex: none; }
.node-ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 22px; letter-spacing: -.015em; }
.pillar p { color: var(--text-muted); font-size: 15.5px; }
.pillar ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar li { font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--surface-sunken); color: var(--text); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; border-top: 0; margin-top: 40px; gap: 32px; }
  .pillar, .pillar + .pillar { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* How work moves */
.flow { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--primary-subtle); color: var(--text-brand); }
.steps h3 { font-size: 17px; letter-spacing: -.01em; margin-top: 6px; }
.steps p { color: var(--text-muted); font-size: 15px; margin-top: 2px; }
.trail { margin-top: 28px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--border-strong); font-size: 14px; color: var(--text); }
.trail svg { width: 20px; height: 20px; flex: none; color: var(--text-brand); }

.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-md); }
.org-card .cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.org-card .cap b { color: var(--text-strong); font-weight: 600; }
.org { display: block; width: 100%; height: auto; }
.org .edge { fill: none; stroke: var(--link); stroke-width: 1.5; }
.org .edge.live { stroke: var(--link-live); stroke-width: 3; }
.org .unit rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.2; }
.org .unit text { font: 600 13px var(--font-sans); fill: var(--text-strong); text-anchor: middle; dominant-baseline: central; }
.org .unit.on rect { fill: var(--indigo-600); stroke: var(--indigo-600); }
.org .unit.on text { fill: #FFFFFF; }
.org .unit.cc rect { stroke: var(--link-live); stroke-width: 2; stroke-dasharray: 4 3; }
.org .person circle { fill: var(--surface-sunken); stroke: var(--border-strong); stroke-width: 1.2; }
.org .person text { font: 600 10.5px var(--font-sans); fill: var(--text-muted); text-anchor: middle; dominant-baseline: central; }
.org .person.on circle { fill: var(--primary-subtle); stroke: var(--link-live); stroke-width: 2.5; }
.org .person.on text { fill: var(--text-brand); }
.org .tag circle { fill: var(--midnight); }
.org .tag text { font: 700 11px var(--font-sans); fill: #FFFFFF; text-anchor: middle; dominant-baseline: central; }
.org .tag.cc circle { fill: var(--surface); stroke: var(--link-live); stroke-width: 1.5; }
.org .tag.cc text { fill: var(--text-brand); font-size: 9.5px; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; gap: 40px; } }

/* Leadership view */
.overview-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.frame { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.side { background: var(--midnight); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #FFFFFF; font-weight: 600; font-size: 15px; }
.side .logo img { width: 24px; height: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #C9CAD6; text-decoration: none; }
.side a svg { width: 18px; height: 18px; }
.side a.on { background: #5953C3; color: #FFFFFF; }
.dash { padding: 24px; display: grid; gap: 16px; min-width: 0; background: var(--bg-subtle); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-top h3 { font-size: 20px; letter-spacing: -.01em; }
.dash-top span { font-size: 12px; color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.kpi small { font-size: 12.5px; color: var(--text-muted); }
.kpi strong { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.panel h4 { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.panel h4 span { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { font: 400 11px var(--font-sans); fill: var(--text-muted); }
.chart .area { fill: var(--chart-fill); }
.chart .line { fill: none; stroke: var(--link-live); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .end { fill: var(--link-live); stroke: var(--surface); stroke-width: 3; }
.chart .end-label { font: 700 12px var(--font-sans); fill: var(--text-strong); text-anchor: end; }
.feed { display: grid; }
.feed div { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.feed div:first-child { border-top: 0; }
.feed i { width: 8px; height: 8px; border-radius: 50%; background: var(--link-live); transform: translateY(-1px); }
.feed i.g { background: var(--success-text); }
.feed i.w { background: var(--warning-text); }
.feed b { font-weight: 500; color: var(--text-strong); }
.feed small { display: block; font-size: 12px; color: var(--text-muted); }
.feed time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 1000px) { .frame { grid-template-columns: 1fr; } .side { display: none; } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-row { grid-template-columns: 1fr; } .dash { padding: 16px; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.principle { display: grid; gap: 10px; align-content: start; }
.principle .node-ico { width: 44px; height: 44px; background: var(--primary-subtle); color: var(--text-brand); }
.principle .node-ico svg { width: 20px; height: 20px; }
.principle h3 { font-size: 17px; letter-spacing: -.01em; }
.principle p { font-size: 15px; color: var(--text-muted); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; gap: 28px; } }

/* Closing band */
.band { background: var(--band-bg); position: relative; overflow: hidden; }
.band .network { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 760px; height: auto; color: var(--band-pattern); pointer-events: none; }
.band .wrap { position: relative; padding-block: 96px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.band h2 { color: #FFFFFF; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; max-width: 14em; }
.band p { color: #A3A4B7; font-size: 17px; max-width: 34em; }
.band .btn-primary:hover { background: #706BE8; }

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; padding-block: 28px; font-size: 13px; color: var(--text-muted); }
.site-footer img { height: 22px; width: auto; display: block; }
.site-footer .l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
