/* ============================================
   THAMUS — Agentic Intelligence
   Premium Enterprise Landing Page
   ============================================ */

:root {
  --midnight: #0B1220;
  --slate: #1E293B;
  --slate-elevated: #243044;
  --cyan: #00B2D6;
  --cyan-bright: #00DDF1;
  --blue: #0082D6;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --muted: #94A3B8;
  --muted-light: #CBD5E1;
  --border: rgba(148, 163, 184, 0.14);
  --border-cyan: rgba(0, 178, 214, 0.28);
  --text: #E2E8F0;
  --text-dim: #94A3B8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --nav-h: 72px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --shadow-cyan: 0 0 0 1px rgba(0, 178, 214, 0.15), 0 8px 32px rgba(0, 178, 214, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

.container-wide {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-head h2 .accent {
  color: var(--cyan);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.accent {
  color: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--cyan);
  color: var(--midnight);
  box-shadow: 0 0 0 1px rgba(0, 178, 214, 0.4), 0 8px 24px rgba(0, 178, 214, 0.2);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  color: var(--muted-light);
  height: auto;
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-dark {
  background: var(--slate);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  border-color: var(--border-cyan);
  background: var(--slate-elevated);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 18, 32, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-horizontal {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.logo-horizontal--footer {
  height: 52px;
  max-width: 240px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-light);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions .btn-primary {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--white);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 75% 40%, rgba(0, 178, 214, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 80%, rgba(0, 130, 214, 0.05), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy .lead {
  font-size: 1.125rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero-tagline::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--border-cyan);
  margin-right: 12px;
  vertical-align: middle;
}

.hero-ms-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(0, 178, 214, 0.18);
  border-radius: 10px;
  max-width: 520px;
}

.hero-ms-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}

.hero-ms-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-ms-bar li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-light);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(11, 18, 32, 0.5);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 178, 214, 0.12);
  pointer-events: none;
}

.orbit-ring-1 {
  width: 420px;
  height: 420px;
  animation: orbitPulse 8s ease-in-out infinite;
}

.orbit-ring-2 {
  width: 520px;
  height: 520px;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.1);
  animation: orbitSpin 60s linear infinite;
}

.orbit-ring-3 {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 178, 214, 0.08);
}

.brand-symbol {
  position: relative;
  z-index: 2;
  width: min(300px, 68%);
  filter: drop-shadow(0 0 48px rgba(0, 178, 214, 0.18));
}

.brand-symbol img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.orbit-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.orbit-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 178, 214, 0.6);
  flex-shrink: 0;
}

.orbit-label:hover {
  border-color: var(--border-cyan);
  color: var(--white);
  transform: translateY(-2px);
}

.orbit-label[data-pos="strategy"] { top: 8%; left: 12%; }
.orbit-label[data-pos="planning"] { top: 18%; right: 4%; }
.orbit-label[data-pos="risk"] { top: 48%; left: 0; }
.orbit-label[data-pos="governance"] { top: 48%; right: 0; }
.orbit-label[data-pos="delivery"] { bottom: 18%; left: 8%; }
.orbit-label[data-pos="knowledge"] { bottom: 12%; right: 6%; }

.orbit-line {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0, 178, 214, 0.35), transparent);
  pointer-events: none;
}

/* ============================================
   VALUE STRIP
   ============================================ */
.value-strip {
  padding: 24px 0 64px;
}

.value-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 36px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.55));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.value-strip-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  max-width: 260px;
  padding-right: 36px;
  border-right: 1px solid var(--border);
}

.value-strip-brand img,
.value-strip-brand svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.value-strip-brand p {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.value-strip-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex: 1;
}

.value-strip-items li {
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.4;
  padding-left: 14px;
  border-left: 2px solid rgba(0, 178, 214, 0.35);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.35) 0%, transparent 100%);
}

.section-light {
  background: var(--light);
  color: #334155;
}

.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--midnight);
}

.section-light .section-head p {
  color: #64748b;
}

.section-light .eyebrow {
  color: var(--blue);
}

.section-light .eyebrow::before {
  background: var(--blue);
}

/* ============================================
   PROBLEM / FLOW
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.problem-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 520px;
}

.problem-copy p strong {
  color: var(--white);
  font-weight: 600;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 28px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
}

.flow-step:hover {
  background: rgba(0, 178, 214, 0.06);
}

.flow-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 178, 214, 0.5);
  flex-shrink: 0;
}

.flow-step .label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--white);
  flex: 1;
}

.flow-step .idx {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.flow-connector {
  width: 1px;
  height: 16px;
  margin-left: 20px;
  background: linear-gradient(to bottom, var(--cyan), rgba(0, 178, 214, 0.15));
  opacity: 0.5;
}

/* ============================================
   METHODOLOGY
   ============================================ */
.method-intro {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 18px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
  min-height: 110px;
}

.method-card:hover {
  border-color: var(--border-cyan);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.method-card .abbr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.method-card .type {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.journeys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.journey-card {
  padding: 28px;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.journey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.journey-card .mode {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.journey-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.journey-card p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   AGENTS / ORCHESTRATION
   ============================================ */
.orch-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.orch-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}

.orch-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.orch-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted-light);
}

.orch-points li svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.orch-diagram {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orch-core {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: radial-gradient(circle at 40% 35%, rgba(0, 178, 214, 0.18), rgba(30, 41, 59, 0.95));
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  box-shadow: var(--shadow-cyan), inset 0 0 40px rgba(0, 178, 214, 0.06);
  padding: 16px;
}

.orch-core svg,
.orch-core img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.orch-core span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}

.orch-ring {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(0, 178, 214, 0.18);
  border-radius: 50%;
  animation: orbitSpin 80s linear infinite;
}

.orch-ring-inner {
  inset: 28%;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.1);
  animation: none;
}

.agent-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.agent-node:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.agent-node .icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.agent-node:hover .icon {
  border-color: var(--border-cyan);
  box-shadow: 0 0 16px rgba(0, 178, 214, 0.2);
}

.agent-node .icon svg {
  width: 18px;
  height: 18px;
}

.agent-node .name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted-light);
  line-height: 1.25;
}

/* Position agents around circle */
.agent-node[data-i="0"] { top: 8%; left: 50%; }
.agent-node[data-i="1"] { top: 22%; left: 85%; }
.agent-node[data-i="2"] { top: 50%; left: 96%; }
.agent-node[data-i="3"] { top: 78%; left: 85%; }
.agent-node[data-i="4"] { top: 92%; left: 50%; }
.agent-node[data-i="5"] { top: 78%; left: 15%; }
.agent-node[data-i="6"] { top: 50%; left: 4%; }
.agent-node[data-i="7"] { top: 22%; left: 15%; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 178, 214, 0.35), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  text-align: center;
}

.process-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--cyan);
  background: var(--midnight);
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--midnight);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.integ-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.integ-card:hover {
  border-color: var(--border-cyan);
  background: rgba(30, 41, 59, 0.8);
}

.integ-card.future {
  border-style: dashed;
  opacity: 0.7;
}

.integ-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 178, 214, 0.08);
  border: 1px solid rgba(0, 178, 214, 0.15);
  border-radius: 9px;
  color: var(--cyan);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
}

.integ-icon svg {
  width: 20px;
  height: 20px;
}

.integ-card span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
}

.integ-message {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(0, 178, 214, 0.08), transparent);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.integ-message p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
}

.ms-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.ms-pillar {
  padding: 24px 20px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.ms-pillar:hover {
  border-color: var(--border-cyan);
  background: rgba(30, 41, 59, 0.85);
}

.ms-pillar-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.ms-pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.ms-pillar p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.ms-products-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-light);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ms-commit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ms-commit-item {
  padding: 22px 20px;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 2px solid rgba(0, 178, 214, 0.45);
}

.ms-commit-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ms-commit-item span {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   GOVERNANCE (light section)
   ============================================ */
.gov-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.gov-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gov-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gov-item:hover {
  border-color: rgba(0, 130, 214, 0.35);
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.06);
}

.gov-item .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 1px;
}

.gov-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

.gov-dash {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
}

.gov-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.gov-dash-header h4 {
  font-size: 0.9375rem;
  color: var(--midnight);
}

.gov-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 999px;
}

.gov-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gov-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.gov-row .title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1e293b;
}

.gov-row .meta {
  font-size: 0.75rem;
  color: #64748b;
}

.gov-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.gov-status.approved {
  background: #ecfdf5;
  color: #059669;
}

.gov-status.pending {
  background: #fffbeb;
  color: #d97706;
}

.gov-status.review {
  background: #eff6ff;
  color: #2563eb;
}

.gov-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gov-metric {
  padding: 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.gov-metric .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--midnight);
  letter-spacing: -0.02em;
}

.gov-metric .lbl {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

/* ============================================
   CAPABILITIES — One Platform panel
   ============================================ */
.cap-panel {
  padding: 48px 40px 40px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(11, 18, 32, 0.9));
  border: 1px solid rgba(0, 178, 214, 0.14);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.cap-panel-head {
  text-align: center;
  margin-bottom: 36px;
}

.cap-panel-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}

.cap-panel-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 44px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s,
    box-shadow 0.3s;
  position: relative;
  min-height: 220px;
}

.cap-card:hover {
  border-color: rgba(0, 178, 214, 0.4);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 24px rgba(0, 178, 214, 0.06);
}

.cap-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-bright);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(0, 178, 214, 0.45));
}

.cap-icon svg {
  width: 32px;
  height: 32px;
}

.cap-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cap-card p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.cap-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--cyan);
  opacity: 0.85;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.cap-card:hover .cap-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.cap-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   USE CASES
   ============================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.usecase-card {
  padding: 24px 20px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
  min-height: 120px;
}

.usecase-card:hover {
  border-color: var(--border-cyan);
  background: rgba(30, 41, 59, 0.8);
}

.usecase-card .uc-icon {
  color: var(--cyan);
  margin-bottom: 14px;
}

.usecase-card .uc-icon svg {
  width: 20px;
  height: 20px;
}

.usecase-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================
   DIFFERENTIATION
   ============================================ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.diff-col {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.diff-col.traditional {
  background: rgba(30, 41, 59, 0.35);
}

.diff-col.thamus {
  background: linear-gradient(160deg, rgba(0, 178, 214, 0.1), rgba(30, 41, 59, 0.7));
  border-color: var(--border-cyan);
}

.diff-col h3 {
  font-size: 1.125rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.diff-col.thamus h3 {
  color: var(--cyan);
}

.diff-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diff-col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted-light);
  line-height: 1.45;
}

.diff-col li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.diff-col.traditional li svg {
  color: var(--muted);
}

.diff-col.thamus li svg {
  color: var(--cyan);
}

.diff-col.thamus li {
  color: var(--white);
}

/* ============================================
   ENTERPRISE CTA
   ============================================ */
.cta-section {
  padding: 48px 0 96px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 48px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(0, 178, 214, 0.12), transparent 60%),
    linear-gradient(135deg, #121a2b, #0f172a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 178, 214, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 178, 214, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, black, transparent);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  max-width: 560px;
}

.cta-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.cta-copy p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: #080e18;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-light);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--muted-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Connection line animation for orch */
.orch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orch-lines line {
  stroke: rgba(0, 178, 214, 0.25);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -100;
  }
}

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(11, 18, 32, 0.98);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 16px;
  font-size: 1.05rem;
  color: var(--muted-light);
  border-radius: 8px;
  border: 1px solid transparent;
}

.mobile-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu .btn-primary {
  margin-top: 16px;
  width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-grid,
  .problem-grid,
  .orch-layout,
  .gov-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    min-height: 440px;
    order: -1;
  }

  .brand-symbol {
    width: min(260px, 75%);
  }

  .orbit-ring-1 {
    width: 340px;
    height: 340px;
  }

  .orbit-ring-2 {
    width: 420px;
    height: 420px;
  }

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

  .process-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 16px;
  }

  .process-track::before {
    display: none;
  }

  .ms-pillars,
  .ms-commit {
    grid-template-columns: 1fr 1fr;
  }

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

  .cap-panel {
    padding: 36px 24px 28px;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .value-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .value-strip-brand {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 20px;
    max-width: none;
    width: 100%;
  }

  .value-strip-items {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: min(100% - 32px, var(--max));
  }

  .logo-horizontal {
    height: 36px;
    max-width: min(160px, 48vw);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

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

  .journeys,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
  }

  .cap-grid,
  .usecase-grid,
  .integ-grid,
  .gov-principles,
  .ms-pillars,
  .ms-commit {
    grid-template-columns: 1fr;
  }

  .cap-card {
    min-height: 0;
  }

  .value-strip-items {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .orch-diagram {
    max-width: 340px;
  }

  .agent-node {
    width: 72px;
  }

  .agent-node .name {
    font-size: 0.62rem;
  }

  .agent-node .icon {
    width: 34px;
    height: 34px;
  }

  .orch-core {
    width: 110px;
    height: 110px;
  }

  .orbit-label {
    font-size: 0.65rem;
    padding: 6px 10px;
  }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   DEMO REQUEST MODAL + FORM
   ============================================ */
body.demo-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(92vh, 880px);
  overflow: auto;
  background: linear-gradient(180deg, #121a2b 0%, #0b1220 100%);
  border: 1px solid rgba(0, 178, 214, 0.22);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  padding: 32px 28px 28px;
  -webkit-overflow-scrolling: touch;
}

.demo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted-light);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.demo-modal__close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.demo-modal__close svg {
  width: 18px;
  height: 18px;
}

.demo-modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.demo-modal__dialog h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 10px;
  padding-right: 36px;
}

.demo-modal__lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.demo-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 14px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-field--full {
  margin-bottom: 14px;
}

.demo-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-light);
}

.demo-field label span {
  color: var(--cyan);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--white);
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.demo-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.demo-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: #64748b;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: rgba(0, 178, 214, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 178, 214, 0.12);
  background: rgba(30, 41, 59, 0.95);
}

.demo-field input.is-invalid,
.demo-field select.is-invalid,
.demo-field textarea.is-invalid,
.demo-check input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.demo-field__error {
  font-size: 0.75rem;
  color: #fca5a5;
  line-height: 1.35;
}

.demo-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 8px;
  cursor: pointer;
}

.demo-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}

.demo-form__status {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
}

.demo-form__status--error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.demo-form__status--info {
  color: var(--muted-light);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
}

.demo-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.demo-form__actions .btn {
  min-width: 120px;
}

.demo-form__actions .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Honeypot — visually and accessibly hidden from humans */
.demo-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Success state */
.demo-modal__success {
  text-align: center;
  padding: 28px 8px 12px;
}

.demo-modal__success[hidden] {
  display: none !important;
}

.demo-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--cyan);
  filter: drop-shadow(0 0 16px rgba(0, 178, 214, 0.35));
}

.demo-success__icon svg {
  width: 100%;
  height: 100%;
}

.demo-modal__success h2 {
  padding-right: 0;
  margin-bottom: 12px;
}

.demo-modal__success p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 28px;
}

@media (max-width: 720px) {
  .demo-modal {
    padding: 0;
    align-items: stretch;
  }

  .demo-modal__dialog {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 28px 20px 24px;
    border-left: none;
    border-right: none;
  }

  .demo-form__grid {
    grid-template-columns: 1fr;
  }

  .demo-form__actions {
    flex-direction: column-reverse;
  }

  .demo-form__actions .btn {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .demo-modal__dialog {
    width: min(100%, 560px);
    padding: 28px 24px;
  }
}

/* ============================================
   LEGAL / GDPR · RGPD
   ============================================ */
.legal-block .section-head {
  margin-bottom: 36px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.legal-card {
  padding: 22px 20px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.legal-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.legal-card a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card strong {
  color: var(--muted-light);
  font-weight: 600;
}

.legal-link-btn {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

.footer-cookie-btn:hover {
  color: var(--cyan);
}

.demo-check a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   COOKIE CONSENT BANNER (CMP)
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  padding: 16px;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #152033 0%, #0d1524 100%);
  border: 1px solid rgba(0, 178, 214, 0.28);
  border-radius: 14px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.cookie-banner__copy {
  flex: 1;
  min-width: 0;
}

.cookie-banner__copy h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cookie-banner__copy p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.cookie-banner__copy a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.cookie-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 0.84rem;
}

body.cookie-prefs-open {
  overflow: hidden;
}

.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.cookie-prefs[hidden] {
  display: none !important;
}

.cookie-prefs__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-prefs__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: linear-gradient(180deg, #121a2b 0%, #0b1220 100%);
  border: 1px solid rgba(0, 178, 214, 0.22);
  border-radius: 14px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cookie-prefs__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.cookie-prefs__dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  padding-right: 36px;
}

.cookie-prefs__lead {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}

.cookie-cat {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.cookie-cat:last-of-type {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.cookie-cat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-cat h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cookie-cat p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 360px;
}

.cookie-cat__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 178, 214, 0.1);
  border: 1px solid rgba(0, 178, 214, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.cookie-cat #cookie_essential {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cookie-switch__ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #334155;
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: transform 0.2s var(--ease);
}

.cookie-switch input:checked + .cookie-switch__ui {
  background: rgba(0, 178, 214, 0.35);
  border-color: rgba(0, 178, 214, 0.55);
}

.cookie-switch input:checked + .cookie-switch__ui::after {
  transform: translateX(18px);
  background: var(--cyan-bright);
}

.cookie-switch input:focus-visible + .cookie-switch__ui {
  box-shadow: 0 0 0 3px rgba(0, 178, 214, 0.25);
}

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

.cookie-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    padding: 0;
  }

  .cookie-banner__inner {
    border-radius: 14px 14px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner__actions {
    flex-direction: column-reverse;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }

  .cookie-prefs {
    padding: 0;
    align-items: stretch;
  }

  .cookie-prefs__dialog {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 28px 20px 24px;
  }

  .cookie-prefs__actions {
    flex-direction: column-reverse;
  }

  .cookie-prefs__actions .btn {
    width: 100%;
  }
}
