/* xTwins landing — v2: deep navy + Bricolage Grotesque + JetBrains Mono. */

:root {
  /* surfaces — deep navy palette */
  --bg:        oklch(0.16 0.035 258);   /* base */
  --bg-1:      oklch(0.19 0.04 258);    /* +1 elevation */
  --bg-2:      oklch(0.22 0.045 258);   /* +2 elevation */
  --bg-card:   rgba(255,255,255,0.025);
  --bg-card-2: rgba(255,255,255,0.05);

  /* text */
  --fg:        #f4f5fa;
  --fg-2:      #b6bcd0;
  --fg-3:      #7c8299;
  --fg-4:      #4a506a;
  --fg-5:      #2a304a;

  /* lines (cool-tinted to fit navy) */
  --line:      rgba(160,180,230,0.08);
  --line-2:    rgba(160,180,230,0.14);
  --line-3:    rgba(160,180,230,0.22);

  /* accent — overridden by JS */
  --accent:       oklch(0.86 0.16 165);
  --accent-glow:  oklch(0.86 0.16 165 / 0.24);
  --accent-deep:  oklch(0.55 0.12 165);

  /* type — Bricolage handles display + text via variable opsz/wght */
  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  /* rhythm */
  --container: 1280px;
  --gutter: 32px;
  --section-pad: clamp(72px, 9vw, 140px);
}

/* Midnight theme — toggled by data-theme="midnight" on <html> */
html[data-theme="midnight"] {
  --bg:        #060606;
  --bg-1:      #0a0a0a;
  --bg-2:      #0f0f0f;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.13);
  --line-3:    rgba(255,255,255,0.22);
  --fg-5:      #2a2a2a;
}

/* Light theme — warm off-white surface, near-black ink. Accent values are
   swapped to darker variants by JS so they meet contrast on white. */
html[data-theme="light"] {
  --bg:        oklch(0.985 0.003 60);
  --bg-1:      #ffffff;
  --bg-2:      oklch(0.965 0.005 60);
  --bg-card:   rgba(20,20,30,0.025);
  --bg-card-2: rgba(20,20,30,0.045);

  --fg:        oklch(0.18 0.005 60);
  --fg-2:      oklch(0.40 0.005 60);
  --fg-3:      oklch(0.55 0.005 60);
  --fg-4:      oklch(0.72 0.005 60);
  --fg-5:      oklch(0.85 0.005 60);

  --line:      rgba(20,20,30,0.08);
  --line-2:    rgba(20,20,30,0.14);
  --line-3:    rgba(20,20,30,0.22);
}

/* Secondary blue glow on the hero only works on dark surfaces — kill it on light. */
html[data-theme="light"] .hero::after { display: none; }
html[data-theme="light"] .hero-glow { opacity: 0.35; filter: blur(60px); }
html[data-theme="light"] .orch-glow,
html[data-theme="light"] .cta-glow { opacity: 0.25; filter: blur(80px); }

/* The agent console + orchestration board are terminal surfaces — they stay
   dark across themes. Re-scope the token variables inside so child elements
   (line text, message cards) keep the right dark-mode contrast. */
html[data-theme="light"] .console,
html[data-theme="light"] .orch-board {
  --fg:    #f4f5fa;
  --fg-2:  #b6bcd0;
  --fg-3:  #7c8299;
  --fg-4:  #4a506a;
  --fg-5:  rgba(255,255,255,0.12);
  --line:  rgba(160,180,230,0.10);
  --line-2: rgba(160,180,230,0.18);
  --bg:    oklch(0.16 0.035 258);
  color: #f4f5fa;
}

/* The primary "in-nav" CTA is white-on-dark by default — invert in light theme
   so the button reads as a high-contrast dark CTA on a light bar. */
html[data-theme="light"] .btn-primary-sm {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wght" 400, "opsz" 14;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ── container ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* ── primitives: eyebrow, display title ─────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Display titles: bricolage with optical sizing at large + tight tracking.
   "italic" line is now a lighter weight in muted color — same hierarchy, no serif. */
.display {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-variation-settings: "wght" 600, "opsz" 72;
  margin: 0 0 28px;
  text-wrap: balance;
  color: var(--fg);
}
.display-italic {
  font-weight: 300;
  font-variation-settings: "wght" 300, "opsz" 72;
  color: var(--fg-2);
}

.lead {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0;
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 10px 40px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--bg-card-2); border-color: var(--line-3); }
.btn-primary-sm {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-primary-sm:hover { background: var(--accent); border-color: var(--accent); }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 92px;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: "wght" 600, "opsz" 14;
}
.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
}
/* Logo art is white — invert to near-black on the light theme so it stays visible. */
html[data-theme="light"] .nav-logo-img,
html[data-theme="light"] .footer-logo-img {
  filter: invert(1) brightness(0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.nav-links a:hover { color: var(--fg); }
@media (max-width: 880px) { .nav-links { display: none; } }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-link-quiet {
  font-size: 13.5px;
  color: var(--fg-2);
}
.nav-link-quiet:hover { color: var(--fg); }
@media (max-width: 540px) { .nav-link-quiet { display: none; } }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--line-2); }
.lang-on { color: var(--fg); }
.lang-sep { color: var(--fg-4); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--fg-2);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--line-2);
  background: var(--bg-card);
}
.theme-toggle svg {
  transition: transform .25s cubic-bezier(.3,.7,.4,1);
}
.theme-toggle:hover svg { transform: rotate(12deg); }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.6;
}
/* Second ambient glow — adds dimension on navy */
.hero::after {
  content: "";
  position: absolute;
  bottom: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, oklch(0.4 0.15 258 / 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

/* Each headline line is its own block so the title always reserves its true
   height — inline spans + <br> can mis-count lines when a line wraps, letting
   the last line paint over the sub-heading. Blocks sum heights deterministically. */
.hero-title > span { display: block; }
.display > span { display: block; }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variation-settings: "wght" 600, "opsz" 96;
  margin: 0 0 28px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title > span:nth-child(3) {
  font-weight: 300;
  font-variation-settings: "wght" 300, "opsz" 96;
  color: var(--fg-2);
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-n {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 40;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-l {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ── agent console ──────────────────────────────────────── */
.console {
  margin-top: 56px;
  background: linear-gradient(180deg, oklch(0.13 0.04 258), oklch(0.10 0.035 258));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px var(--accent-glow);
  max-width: 880px;
}
html[data-theme="midnight"] .console {
  background: linear-gradient(180deg, #0a0a0a, #0f0f0f);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg-5);
}
.console-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.console-body {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 280px;
}
.line {
  display: flex;
  gap: 14px;
  animation: line-in .35s ease-out;
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.line-agent {
  flex-shrink: 0;
  width: 72px;
  color: var(--fg-3);
  text-align: right;
  letter-spacing: 0.02em;
}
.line-text { color: var(--fg-2); }
.tone-mute .line-text { color: var(--fg-3); }
.tone-fg .line-text { color: var(--fg); }
.tone-accent .line-agent,
.tone-accent .line-text { color: var(--accent); }
.tone-ok .line-text { color: var(--accent); font-weight: 500; }
.caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  animation: blink 0.9s steps(2, end) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── generic section ────────────────────────────────────── */
.section { position: relative; }
.section.pad { padding: var(--section-pad) 0; }
.section.bordered { border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 880px;
  margin-bottom: 64px;
}
.section-head-narrow { max-width: 720px; }
.section-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 52ch;
  margin: 12px 0 0;
}

/* ── shift / manifesto ──────────────────────────────────── */
.shift-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 880px) {
  .shift-top { grid-template-columns: 1fr; gap: 32px; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg);
  padding: 28px 26px 32px;
  transition: background .2s;
}
.pillar:hover { background: var(--bg-1); }
.pillar-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.pillar-i {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.pillar-tag span:last-child {
  font-size: 17px;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 18;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.pillar-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3);
}

/* ── workforce ──────────────────────────────────────────── */
.workforce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .workforce-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .workforce-grid { grid-template-columns: 1fr; } }

.agent {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.agent:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--bg-card-2);
}
.agent-hire {
  border-style: dashed;
  background: transparent;
}
.agent-hire:hover { border-color: var(--accent); }

.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.agent-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
}
.agent-hire .agent-num { color: var(--accent); }

.agent-name {
  font-size: 24px;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 24;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}
.agent-hire .agent-name { color: var(--fg-3); }
.agent-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.agent-hire .agent-tag {
  color: var(--accent);
  border-color: var(--accent);
}
.agent-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  font-weight: 500;
}
.agent-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.agent-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}

/* ── steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-weight: 500;
}
.step-t {
  font-size: 22px;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 24;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-d {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.step-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-4);
  background: var(--bg);
  padding: 6px;
  z-index: 2;
}
@media (max-width: 880px) { .step-arrow { display: none; } }

/* ── orchestration ──────────────────────────────────────── */
.orch-section { overflow: hidden; }
.orch-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}
.orch-board {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 40px;
  background: linear-gradient(180deg, oklch(0.13 0.04 258), oklch(0.10 0.035 258));
  max-width: 880px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px rgba(0,0,0,0.4);
}
html[data-theme="midnight"] .orch-board {
  background: linear-gradient(180deg, #0a0a0a, #0f0f0f);
}
.orch-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.orch-msg {
  position: relative;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  animation: line-in .5s ease-out backwards;
}
.orch-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--fg-3);
  font-weight: 500;
}
.orch-from { color: var(--fg); }
.orch-to { color: var(--accent); }
.orch-step {
  margin-left: auto;
  color: var(--fg-4);
}
.orch-text {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .orch-board { padding: 24px 20px; }
}

/* ── integrations ───────────────────────────────────────── */
.int-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.int-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--fg-2);
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-card);
  transition: color .18s, border-color .18s, background .18s;
}
.int-name:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: var(--bg-card-2);
}

/* ── why ────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--bg);
  padding: 40px 36px;
  transition: background .2s;
}
.why-card:hover { background: var(--bg-1); }
.why-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  font-weight: 500;
}
.why-t {
  font-size: 24px;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 28;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.why-d {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 44ch;
}

/* ── pricing ────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s ease, transform .2s ease;
}
.price-card:hover { border-color: var(--line-2); }
.price-featured {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 24px 60px rgba(0,0,0,0.35);
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.price-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.price-featured .price-name { color: var(--accent); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.price-num {
  font-size: 48px;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 48;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-per {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.price-tagline {
  font-size: 14.5px;
  color: var(--fg-2);
  margin-bottom: 28px;
  min-height: 2.6em;
}
.price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.price-features svg {
  flex-shrink: 0;
  color: var(--accent);
}
.price-enterprise {
  margin-top: 40px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--fg-2);
  text-align: center;
}

/* ── operation / pdf ───────────────────────────────────── */
.operation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 960px) { .operation-grid { grid-template-columns: 1fr; } }

.operation-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.operation-card:hover {
  border-color: var(--line-2);
  background: var(--bg-card-2);
  transform: translateY(-2px);
}
.operation-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.operation-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variation-settings: "wght" 500, "opsz" 40;
  margin: 0;
}
.operation-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 58ch;
}
.operation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.operation-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 540px) { .operation-meta { grid-template-columns: 1fr; } }
.operation-meta-item {
  background: var(--bg);
  padding: 24px 22px;
}
.operation-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.operation-meta-value {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
}

/* ── locations ──────────────────────────────────────────── */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .loc-grid { grid-template-columns: 1fr; } }
.loc { background: var(--bg); padding: 32px 24px 32px 0; }
.loc:not(:first-child) { padding-left: 24px; }
.loc-city {
  font-family: var(--font-sans);
  font-weight: 300;
  font-variation-settings: "wght" 300, "opsz" 72;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--fg);
}
.loc-addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-3);
  line-height: 1.6;
  max-width: 32ch;
}

/* ── contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
}
.contact-copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 48ch;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.contact-field {
  display: grid;
  gap: 8px;
}
.contact-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.contact-field textarea {
  min-height: 156px;
  resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--fg-4);
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.contact-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 4px 0 0;
}
.contact-status {
  min-height: 1.5em;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.contact-status.is-success {
  color: var(--accent);
}
.contact-status.is-error {
  color: #ff8f8f;
}

/* ── final CTA ──────────────────────────────────────────── */
.cta-section {
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(44px, 7vw, 88px);
  margin-bottom: 20px;
}
.cta-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--fg-2);
  margin: 0 0 36px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── funding signature bar ──────────────────────────────── */
/* White band carrying the COMPETE 2030 / Portugal 2030 / EU logos.
   Stays white across themes (the official logos require a light ground).
   Clickable → opens the Ficha de Operação page. */
.funding-bar {
  display: block;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 16px clamp(20px, 5vw, 64px);
  transition: background .15s;
}
.funding-bar:hover { background: #f3f4f6; }
.funding-bar-img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
}

/* ── footer ─────────────────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}
.footer-logo-img {
  height: 104px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 14.5px;
  color: var(--fg-3);
  max-width: 36ch;
  margin: 0;
}
.footer-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-2);
  transition: color .15s;
}
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-4);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-mono { font-family: var(--font-mono); font-size: 11.5px; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-actions { gap: 8px; }
  .section-head { margin-bottom: 40px; }
}


/* ── pilots ─────────────────────────────────────────────── */
/* Big-number cards. Tighter than why-cards; accent number, mono caption. */
.pilots-section { background: var(--bg-1); }
.pilots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .pilots-grid { grid-template-columns: 1fr; } }
.pilot-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, background .2s, transform .2s;
}
.pilot-card:hover {
  border-color: var(--line-2);
  background: var(--bg-card-2);
  transform: translateY(-2px);
}
.pilot-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.pilot-t {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-2);
}
.pilot-d {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-3);
  text-wrap: pretty;
}
