@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

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

html {
  scroll-padding-top: var(--nav-height);
}

:root {
  /* ── Colour tokens ── */
  --black: #0d0d0d;
  --white: #ffffff;
  --gray: #444748;          /* on-surface-variant */
  --subtle: #444748;
  --muted: #aaaaaa;
  --light-gray: #f4f3f3;    /* surface-container-low */
  --off-white: #fbfbfb;     /* primary-container / card surface */
  --dark-bg: #1a1c1c;       /* on-surface — deep but not pure black */
  --blue: #005ac1;          /* secondary / Electric Blue */
  --blue-light: #d8e2ff;    /* secondary-fixed */
  --red: #ba1a1a;           /* error */
  --red-light: #ffdad6;     /* error-container */
  --yellow: #fbbc04;
  --yellow-light: #fef7e0;
  --green: #34a853;
  --green-light: #e6f4ea;
  --premium-blue: #4d8efe;  /* secondary-container / highlight */
  --border: #c4c7c8;        /* outline-variant — visible clean border */

  /* ── Border radius scale ── */
  --radius-sm:  8px;   /* buttons, inputs */
  --radius-md:  12px;  /* small cards */
  --radius-lg:  16px;  /* cards */
  --radius-xl:  24px;  /* large containers */
  --radius-2xl: 32px;  /* section wrappers */
  --radius-pill: 9999px;

  /* ── Layout tokens ── */
  --nav-height: 72px;
  --max-width: 1240px;

  /* ── Section spacing ── */
  --section-pad: 100px;
  --section-pad-lg: 120px;

  /* ── Gap / spacing tokens ── */
  --gap-xs:  8px;
  --gap-sm:  12px;
  --gap-md:  16px;
  --gap-lg:  24px;
  --gap-xl:  32px;
  --gap-2xl: 48px;
  --gap-3xl: 64px;
  --gap-4xl: 80px;
}

/* ── BASE ── */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #faf9f9;
  color: #1a1c1c;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}





/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 40px;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  gap: 32px;
}

nav.dark {
  background: rgba(13, 13, 13, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}

nav.dark .nav-logo,
nav.dark .nav-links a {
  color: white;
}

nav.dark .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

nav.dark .nav-cta {
  background: white;
  color: var(--black);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--black);
  letter-spacing: -0.5px;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-logo span {
  line-height: 32px;
  padding-top: 2px;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-cta {
  margin-left: auto;
  background: var(--black);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 90, 193, 0.2);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 90, 193, 0.3);
  opacity: 0.92;
}

.btn-primary-inverted {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary-inverted:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--blue);
  padding: 15px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--blue);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

/* ── SECTION SHARED ── */
.section {
  padding: var(--section-pad) 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--gap-3xl);
  max-width: 700px;
}

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

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--gap-md);
  text-align: center; 
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: var(--gap-lg);
  text-align: center; 
}

.section-desc {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.6;
}

/* ── SHARED UTILITIES (previously duplicated per-page) ── */

/* Pilot note — used on index + product */
.pilot-note {
  text-align: center;
  margin-top: var(--gap-2xl);
  color: var(--muted);
  font-size: 15px;
}

/* Section heading variant (40px) — used on index + product */
.section-h2-md      { font-size: 40px; }
.section-h2-md--gap { font-size: 40px; margin-bottom: 12px; }
.section-sub        { color: var(--gray); }

/* Rotating hero subtitle — used on product + use-cases/professional */
.hero-sub--inline {
  display: block;
  text-align: center;
}
#rotating-text-multi {
  color: var(--blue);
  font-weight: 700;
  display: block;
  min-width: 160px;
  margin-top: 4px;
  transition: opacity 0.4s;
}

/* Fade-in keyframe — used for usecase-panel on product page */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle inset section variant */
.section-inset {
  background: var(--off-white);
  border-radius: var(--radius-2xl);
}

/* ── CAPABILITIES GRID ── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--gap-lg);
}

.cap-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-card:hover {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.cap-card.outlined {
  background: var(--white);
  border: 1px solid var(--border);
}

.cap-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.cap-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

.cap-text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.cap-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--subtle);
}

.cap-list li::before {
  content: "→";
  color: var(--blue);
  font-weight: bold;
}

/* ── WORKFLOW SECTION ── */
.workflow-section {
  background: var(--dark-bg);
  color: white;
  padding: var(--section-pad-lg) 40px;
  border-radius: var(--radius-2xl);
  margin: 40px;
  position: relative;
  overflow: hidden;
}

.workflow-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-4xl);
  align-items: center;
}

.workflow-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.workflow-image img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}

.workflow-img-sm {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  display: block;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl);
}

.step {
  display: flex;
  gap: var(--gap-lg);
}

.step-num {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--white);
}

.step-content p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Workflow inherits white color, so override shared tokens for dark context */
.workflow-section .section-desc {
  color: var(--muted);
}

.workflow-section .section-title {
  color: var(--white);
}

/* ── METRICS ── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.metric-val {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
}

/* ── VIEWPORT / DARK SECTIONS ── */
.section-viewport {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.hero-dark {
  background: var(--dark-bg);
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-blue {
  background: var(--blue);
  background: linear-gradient(135deg, var(--blue) 0%, #003a8c 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

/* ── HERO-DARK AS ROUNDED DARK CARD (matches workflow-section visual) ── */
.section-viewport.hero-dark,
.section-viewport.hero-blue {
  border-radius: var(--radius-2xl);
  margin: 40px;
  width: calc(100% - 80px);
  min-height: auto;
  padding: var(--section-pad-lg) 40px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title-multi {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--white) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── SURFACES SECTION ── */
.surfaces-section {
  background: white;
}

.surface-carousel {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
}

.surface-item {
  flex: 1;
  background: var(--light-gray);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: left;
  transition: transform 0.4s ease;
}

.surface-item:hover {
  transform: translateY(-10px);
}

.surface-item i {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 20px;
  display: block;
}

.surface-item h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

/* ── AUDIENCE GRID ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
}

.audience-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  text-align: center;
}

.audience-card:hover {
  box-shadow: 0 12px 40px rgba(0, 90, 193, 0.1);
  border-color: var(--blue);
}

.audience-card i {
  font-size: 40px;
  color: var(--blue);
  margin-bottom: 24px;
  display: block;
}

/* Dark-context audience grid overrides */
.hero-dark .section-h2-md,
.hero-dark .section-sub {
  color: var(--white);
}

.hero-dark .audience-card {
  background: var(--white);
  color: var(--black);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-dark .audience-card h3 {
  color: var(--black);
}

.hero-dark .audience-card p {
  color: var(--gray);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

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

/* ── FORM INPUTS ── */
input,
textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group--lg {
  margin-bottom: 30px;
}

.contact-section {
  background: var(--light-gray);
  padding: var(--section-pad) 40px;
  text-align: center;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.contact-card h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 40px;
}

/* ── FOOTER ── */
footer {
  padding: 80px 40px 40px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand h2,
.footer-brand .nav-logo {
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray);
  max-width: 300px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-spaced {
  margin-top: var(--section-pad);
}

.footer-bottom a {
  text-decoration: none;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom a i {
  font-size: 16px;
  line-height: 1;
}

.footer-bottom a:hover {
  color: var(--black);
}

/* ── CAP ICON COLOUR MODIFIERS ── */
.cap-icon--blue   { background: var(--blue-light);   color: var(--blue);   }
.cap-icon--green  { background: var(--green-light);  color: var(--green);  }
.cap-icon--red    { background: var(--red-light);    color: var(--red);    }
.cap-icon--yellow { background: var(--yellow-light); color: var(--yellow); }

/* ── BUTTON MODIFIERS ── */
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ── LAYOUT HELPERS ── */
.hero-buttons {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-full   { width: 100%; }
.no-resize  { resize: none; }

/* ── LIGHT FLOATING CARD (reusable section modifier) ── */
.section-card {
  background: var(--light-gray);
  border-radius: var(--radius-2xl);
  margin: 0 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
}
/* When section-card is applied to elements with max-width constraints, remove
   max-width so the card spans viewport-minus-margins correctly.
   margin: 0 40px is restated here so the higher compound specificity (0.2.0)
   beats any single-class margin: 0 auto (0.1.0) declared later in the file. */
.section.section-card,
.challenge.section-card,
.section-inset.section-card {
  max-width: none;
  margin: 0 40px;
}
/* Also fix problem-section which shares .section max-width */
.section.problem-section {
  max-width: none;
}

/* ── SECTION HEADER TIGHT VARIANT ── */
.section-header--tight { margin-bottom: 40px; }

/* ── DARK CONTACT CARD ── */
.contact-card--dark,
.contact-card--blue {
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  color: var(--white);
}

.contact-card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card--blue {
  background: rgba(0, 90, 193, 0.15);
  border: 1px solid rgba(0, 90, 193, 0.3);
}

/* ── DARK INPUT FIELDS ── */
.input-dark,
.input-blue {
  color: var(--white);
  padding: 14px 20px;
}

.input-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-blue {
  background: rgba(0, 90, 193, 0.1);
  border: 1px solid rgba(0, 90, 193, 0.2);
}

.input-blue::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-blue:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.input-white {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
}

.input-white::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

.input-white:focus {
  border-color: var(--blue);
  background: var(--white);
}

/* ── DOCS KEY CONCEPTS ── */
.doc-concepts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  margin-top: 24px;
}

.doc-concept-card {
  padding: 24px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

.doc-concept-card h4 { margin-bottom: 8px; }
.doc-concept-card p  { font-size: 14px; margin-bottom: 0; }

/* ── SIDEBAR NAV SECTION LABEL ── */
.sidebar-section { margin-top: 40px; }

/* ── PROBLEM SECTION ── */
.problem-section {
  background: var(--light-gray);
  border-radius: var(--radius-2xl);
  margin: 0 40px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  max-width: 960px;
  margin: 48px auto 0;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border-top: 3px solid var(--blue);
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}
.problem-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* ── CHALLENGE / SOLUTION ── */
.challenge { padding: 100px 40px; max-width: var(--max-width); margin: 0 auto; text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 60px; text-align: left; }
.problem-card, .solution-card { padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.problem-card { background: var(--light-gray); border-top: 4px solid var(--red); }
.solution-card { background: var(--white); border-top: 4px solid var(--green); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.card-icon { font-size: 32px; margin-bottom: 24px; }
.card-heading { font-size: 24px; margin-bottom: 24px; color: var(--black); }
.card-body { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.card-body li { padding-left: 24px; position: relative; color: var(--gray); font-size: 16px; }
.card-body li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }

/* ── HAMBURGER & MOBILE MENU (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--black);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  padding: 12px 20px;
}

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

.nav-mobile-menu a {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--subtle);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-mobile-menu a:hover {
  background: var(--light-gray);
  color: var(--black);
}

/* Dark nav mobile overrides */
nav.dark .nav-hamburger {
  color: white;
}

nav.dark + .nav-mobile-menu {
  background: var(--dark-bg);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

nav.dark + .nav-mobile-menu a {
  color: rgba(255, 255, 255, 0.7);
}

nav.dark + .nav-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 900px) {
  .section-card,
  .section.section-card,
  .challenge.section-card,
  .section-inset.section-card {
    margin: 0 20px;
  }

  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-hamburger {
    display: block;
  }

  .workflow-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .surface-carousel {
    flex-direction: column;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manifesto-heading {
    font-size: 36px;
  }

  .manifesto {
    margin: 20px;
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .challenge {
    padding: 60px 20px;
  }

  .section-viewport.hero-dark {
    margin: 20px;
    width: calc(100% - 40px);
    padding: 80px 24px;
  }
}

/* ── PHONE BREAKPOINT ── */
@media (max-width: 600px) {
  .section-card,
  .section.section-card,
  .challenge.section-card,
  .section-inset.section-card {
    margin: 0 16px;
    border-radius: var(--radius-xl);
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .card-heading {
    font-size: 20px;
  }

  .problem-card,
  .solution-card {
    padding: 28px 20px;
  }

  .problem-section {
    margin: 0 16px;
    border-radius: var(--radius-xl);
  }

  .workflow-section {
    margin: 16px;
    padding: 60px 20px;
    border-radius: var(--radius-lg);
  }

  .cap-card {
    padding: 28px;
  }

  .metric-card {
    padding: 24px;
  }

  .metric-val {
    font-size: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .section-viewport.hero-dark {
    margin: 12px;
    width: calc(100% - 24px);
    padding: 64px 16px;
    border-radius: var(--radius-lg);
  }
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 40px;
  border-radius: var(--radius-2xl);
  margin: 40px;
  position: relative;
  overflow: hidden;
}
.manifesto-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  color: var(--white);
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-label { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 24px; }
.manifesto-heading { font-size: 56px; line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -0.03em; }
.manifesto-heading em { font-style: italic; color: var(--white); }
.manifesto-text p { font-size: 18px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.manifesto-text strong { color: var(--white); }

/* ── MANIFESTO RESPONSIVE ── */
@media (max-width: 900px) {
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .manifesto-heading {
    font-size: 36px;
  }
  .manifesto {
    margin: 20px;
    padding: 48px 24px;
  }
}

@media (max-width: 600px) {
  .manifesto-heading {
    font-size: 28px;
  }
  .manifesto-text p {
    font-size: 15px;
  }
  .manifesto {
    margin: 12px;
    padding: 36px 16px;
    border-radius: var(--radius-lg);
  }
}

/* ── IPAD LANDSCAPE (1024px) ── */
@media (max-width: 1024px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .workflow-section {
    margin: 24px;
    padding: 80px 32px;
  }

  .section {
    padding: var(--section-pad) 32px;
  }
}

/* ── IPAD PORTRAIT / LARGE PHONE (768px) ── */
@media (max-width: 768px) {
  .section {
    padding: 72px 20px;
  }

  .section-title {
    font-size: clamp(26px, 5vw, 40px);
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .workflow-section {
    margin: 16px;
    padding: 72px 20px;
    border-radius: var(--radius-xl);
  }

  .workflow-inner {
    gap: 32px;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-links {
    gap: 24px;
  }
}

/* ── IPHONE (430px) ── */
@media (max-width: 430px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .cap-card {
    padding: 24px 20px;
  }

  .section-label {
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── COOKIE CONSENT ── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-bg);
  color: var(--white);
  padding: 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner__content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__content p {
  margin: 0;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.cookie-banner__content a {
  color: var(--blue-light);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-btn {
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
}

.cookie-btn.primary {
  background: var(--blue);
  color: var(--white);
}

.cookie-btn.primary:hover {
  background: #3367d6;
}

.cookie-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.cookie-btn.secondary:hover {
  background: rgba(255,255,255,0.2);
}

.cookie-btn.tertiary {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn.tertiary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: var(--white);
  color: var(--black);
  padding: 40px;
  border-radius: var(--radius-lg);
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-modal__dialog h2 {
  margin-top: 0;
  font-size: 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 16px;
}

.cookie-modal__dialog > p {
  color: var(--gray);
  margin-bottom: 32px;
}

.cookie-modal__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

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

.cookie-modal__option h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.cookie-modal__option p {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.cookie-modal__actions .cookie-btn {
  padding: 12px 24px;
}

.cookie-modal__actions .cookie-btn.tertiary {
  color: var(--gray);
  border-color: var(--border);
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  transition: .2s;
  border-radius: 9999px;
}

.cookie-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 9999px;
}

.cookie-switch input:checked + .slider {
  background-color: var(--blue);
}

.cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}

.cookie-switch .slider.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Revisit settings link */
.cookie-revisit-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--gray);
  cursor: pointer;
}

.cookie-revisit-link:hover {
  color: var(--black);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 20px 16px;
  }
  .cookie-banner__buttons {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-modal__dialog {
    padding: 30px 20px;
  }
}
