:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #52596b;
  --paper: #ffffff;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --white: #ffffff;

  --primary: #2f5fea;
  --primary-dark: #1e3fb5;
  --primary-soft: #eaf0ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --slate: #64748b;

  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  --radius-lg: 14px;

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0%;
  height: 3px;
  background: var(--primary);
  transition: width 80ms linear;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 240ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand img {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.14rem;
  font-weight: 700;
}

h4 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 800;
}

p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin: 0.72rem 0;
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(47, 95, 234, 0.28);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Icon badges (single consistent treatment) ---------- */

.icon-badge {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge.warn {
  color: var(--danger);
  background: var(--danger-soft);
}

.icon-badge.on-dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 7vw, 6rem) 6vw;
  background: var(--soft);
}

.hero-text {
  max-width: 600px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.hero-visual {
  min-height: 480px;
  display: grid;
  place-items: center;
}

.process-card {
  width: min(100%, 460px);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-eyebrow {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.process-steps {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  display: flex;
  gap: 0.9rem;
  padding-bottom: 1.4rem;
  margin: 0;
}

.process-steps li:last-child {
  padding-bottom: 0;
}

.process-steps li::before {
  position: absolute;
  top: 48px;
  bottom: 4px;
  left: 23px;
  width: 1px;
  content: "";
  background: var(--line);
}

.process-steps li:last-child::before {
  display: none;
}

.process-steps .icon-badge {
  width: 46px;
  height: 46px;
  margin-bottom: 0;
}

.process-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.process-steps span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.critique-quote {
  padding: 1rem 1.1rem;
  background: var(--primary-soft);
  border-radius: var(--radius);
}

.critique-quote p {
  max-width: none;
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  transition: opacity 400ms ease;
}

.critique-source {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Signal band ---------- */

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-band span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 1rem;
  color: var(--ink-soft);
  background: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 6vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.who-section {
  background: var(--white);
}

.who-grid,
.problem-grid,
.platform-grid {
  display: grid;
  gap: 1rem;
}

.who-grid {
  grid-template-columns: repeat(2, 1fr);
}

.problem-grid,
.platform-grid {
  grid-template-columns: repeat(3, 1fr);
}

.who-card,
.problem-grid article,
.platform-grid article {
  padding: 1.5rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.who-card:hover,
.problem-grid article:hover,
.platform-grid article:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.problem-section {
  background: var(--white);
}

.platform-section {
  background: var(--soft);
}

/* ---------- Balance diagram ---------- */

.balance-section {
  background: var(--white);
}

.balance-diagram {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.balance-svg {
  display: block;
  width: 100%;
  height: auto;
}

.balance-hub {
  fill: var(--ink);
  transition: fill 500ms ease;
}

.balance-hub-label {
  fill: #ffffff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  transition: opacity 300ms ease;
}

.label-team {
  opacity: 0;
}

.balance-node {
  stroke: var(--white);
  stroke-width: 4;
}

.balance-node.tech {
  fill: var(--primary);
}

.balance-node.leadership {
  fill: var(--slate);
}

.balance-node.problem {
  fill: var(--danger);
}

.balance-icon {
  color: #ffffff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.balance-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

.spoke {
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 3 6;
  opacity: 0.85;
  transition: stroke 500ms ease, stroke-width 500ms ease, opacity 500ms ease;
}

.brace-edge {
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 500ms ease;
}

.balance-diagram.is-team .balance-hub {
  fill: var(--primary-dark);
}

.balance-diagram.is-team .label-solo {
  opacity: 0;
}

.balance-diagram.is-team .label-team {
  opacity: 1;
}

.balance-diagram.is-team .spoke {
  stroke: var(--ink-soft);
  stroke-width: 4;
  stroke-dasharray: none;
  opacity: 0.95;
}

.balance-diagram.is-team .brace-edge {
  opacity: 0.4;
}

.balance-caption {
  max-width: 48ch;
  margin: 1.25rem auto 0;
  font-size: 0.96rem;
}

.team-caption {
  display: none;
  margin-top: -1.6rem;
}

.balance-diagram.is-team .solo-caption {
  display: none;
}

.balance-diagram.is-team .team-caption {
  display: block;
}

/* ---------- Comparison ---------- */

.comparison-section {
  background: var(--soft);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.comparison-column {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.muted-column {
  background: #ffffff;
}

.realitas-column {
  color: var(--white);
  background: var(--primary);
  border-color: transparent;
}

.realitas-column h3,
.realitas-column li {
  color: var(--white);
}

/* ---------- Proof ---------- */

.proof-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.proof-item {
  min-height: 200px;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
}

.proof-icon {
  width: 44px;
  height: 44px;
}

.proof-item strong {
  display: block;
  margin: 0.75rem 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.proof-item strong.proof-word {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.proof-item span {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Contact ---------- */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(47, 95, 234, 0.16);
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note a {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
  padding: 1.25rem 6vw;
  color: #cbd5e1;
  background: var(--ink);
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .who-grid,
  .problem-grid,
  .platform-grid,
  .proof-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 6vw;
    left: 6vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 400px;
  }

  .who-grid,
  .problem-grid,
  .platform-grid,
  .proof-section,
  .signal-band,
  .comparison {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
