/* ============================================================
   Axoveris / PIMARIS — marketing site
   Dark-default, cyan-accented "control room" aesthetic.
   Inspired by the in-app theme and the earlier PIMARIS site.
   ============================================================ */

/* ---------- Self-hosted fonts (Space Grotesk + Space Mono — SIL OFL, no third-party CDN) ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-mono-700.woff2') format('woff2'); }

/* ---------- Dark theme (default) ---------- */
:root {
  --bg:            #070809;
  --bg-surface:    #0c0e10;
  --bg-card:       #121417;
  --bg-card-hover: #181b1f;
  --border:        #262a30;
  --border-hover:  #3a3f47;
  --cyan:          #22d3ee;
  --cyan-dim:      #06b6d4;
  --cyan-deep:     #0e7490;
  --cyan-glow:     rgba(34, 211, 238, 0.14);
  --cyan-glow-2:   rgba(34, 211, 238, 0.30);
  --amber:         #f59e0b;
  --steel:         #3a3f47;
  --text:          #f4f6f8;
  --text-2:        #aab3bd;
  --text-3:        #72797f;
  --red:           #ef4444;
  --orange:        #f97316;
  --yellow:        #eab308;
  --green:         #22c55e;
  --blue:          #3b82f6;

  --nav-bg:        rgba(7, 8, 9, 0.82);
  --nav-bg-scroll: rgba(7, 8, 9, 0.96);
  --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 24px 70px rgba(0, 0, 0, 0.55);
  --grid-line:     rgba(255, 255, 255, 0.035);

  --radius:    4px;
  --radius-lg: 8px;
  --maxw:      1240px;
  --font-sans: 'Space Grotesk', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', Consolas, monospace;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg:            #f4f6f8;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #eef1f4;
  --border:        #d6dce2;
  --border-hover:  #aab3bd;
  --cyan:          #0891b2;
  --cyan-dim:      #0e7490;
  --cyan-deep:     #155e75;
  --cyan-glow:     rgba(8, 145, 178, 0.10);
  --cyan-glow-2:   rgba(8, 145, 178, 0.22);
  --amber:         #d97706;
  --steel:         #94a3b8;
  --text:          #0f1722;
  --text-2:        #475569;
  --text-3:        #708090;
  --red:           #dc2626;
  --orange:        #ea580c;
  --yellow:        #ca8a04;
  --green:         #16a34a;
  --blue:          #2563eb;

  --nav-bg:        rgba(244, 246, 248, 0.82);
  --nav-bg-scroll: rgba(255, 255, 255, 0.97);
  --shadow-md:     0 4px 14px rgba(15, 23, 34, 0.08);
  --shadow-lg:     0 22px 60px rgba(15, 23, 34, 0.12);
  --grid-line:     rgba(15, 23, 34, 0.045);
}

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

/* ---------- a11y ---------- */
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan-dim);
  color: #04121a;
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: none; outline: 2px solid var(--cyan); outline-offset: 2px; color: #04121a; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.btn:focus-visible, .icon-btn:focus-visible, .nav-links a:focus-visible {
  outline-offset: 3px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dim); text-decoration: none; }
a:hover { color: var(--cyan); }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; }
p { margin: 0; }
::selection { background: var(--cyan-dim); color: #fff; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-surface); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--cyan);
}

.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan-dim); color: #04121a; }
.btn-primary:hover { background: var(--cyan); color: #04121a; }
.btn-outline { border-color: var(--border-hover); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); }

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b-name { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.brand-text .b-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--cyan); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.icon-btn svg { width: 17px; height: 17px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 38px; width: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.nav-actions .btn { padding: 9px 16px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span { width: 16px; height: 1.7px; background: var(--text); display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 88px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 0%, #000 0%, transparent 78%);
}
.hero-bg::after {
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 65%);
}
.hero .container { position: relative; }
.hero-inner { max-width: 760px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 26px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--cyan); }
.hero-sub { font-size: 19px; color: var(--text-2); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; }

/* ---------- browser frame ---------- */
.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--steel); display: block; }
.frame-bar i:nth-child(1) { background: #ef4444; }
.frame-bar i:nth-child(2) { background: #eab308; }
.frame-bar i:nth-child(3) { background: #22c55e; }
.frame-bar .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.frame img { width: 100%; display: block; }

/* ---------- metrics strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.metric {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric .m-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.metric .m-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}
.metric .m-value .u { color: var(--cyan); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card.hover:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--cyan);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card .q-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* ---------- spine ---------- */
.spine {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.spine-step {
  flex: 1 1 0;
  min-width: 150px;
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}
.spine-step:last-child { border-right: none; }
.spine-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.spine-step h4 { font-size: 15.5px; margin: 9px 0 5px; }
.spine-step p { font-size: 13px; color: var(--text-3); }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.flip .split-media { order: -1; }
.split-text h3 { font-size: 25px; margin-bottom: 12px; }
.split-text p { color: var(--text-2); }

.checks { list-style: none; margin-top: 20px; }
.checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--text-2);
  padding: 6px 0;
}
.checks li::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-6' stroke='%2322d3ee' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- audience ---------- */
.audience {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.audience.amber { border-top-color: var(--amber); }
.audience.blue  { border-top-color: var(--blue); }
.audience .role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.audience h3 { font-size: 19px; margin: 6px 0 10px; }
.audience p { color: var(--text-2); font-size: 14.5px; }
.audience ul { list-style: none; margin-top: 14px; }
.audience li {
  font-size: 13.5px;
  color: var(--text-2);
  padding: 7px 0 7px 20px;
  position: relative;
  border-top: 1px solid var(--border);
}
.audience li::before {
  content: "›"; position: absolute; left: 2px;
  color: var(--cyan); font-weight: 700;
}

/* ---------- sovereignty feature ---------- */
.sov {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
}
.sov .sov-ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--cyan-deep);
  background: var(--cyan-glow);
  color: var(--cyan);
  margin-bottom: 16px;
}
.sov .sov-ico svg { width: 24px; height: 24px; }
.sov h3 { font-size: 17px; margin-bottom: 7px; }
.sov p { color: var(--text-2); font-size: 14px; }
.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  color: var(--text-2);
  background: var(--bg-card);
}
.flag-chip .fr {
  width: 20px; height: 14px;
  border-radius: 2px;
  display: inline-flex;
  overflow: hidden;
}
.flag-chip .fr i { flex: 1; }
.flag-chip .fr i:nth-child(1){ background:#0b3d91; }
.flag-chip .fr i:nth-child(2){ background:#f4f6f8; }
.flag-chip .fr i:nth-child(3){ background:#e1000f; }

/* ---------- standards ---------- */
.standards { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.standards span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: var(--bg-card);
}

/* ---------- modules ---------- */
.module-group { margin-bottom: 46px; }
.module-group > h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .15s ease;
}
.module:hover { border-color: var(--border-hover); }
.module h4 { font-size: 15.5px; margin-bottom: 5px; }
.module p { font-size: 13.5px; color: var(--text-3); }

/* ---------- pricing ---------- */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--cyan-dim); box-shadow: 0 0 40px var(--cyan-glow); }
.price-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--cyan-dim);
  color: #04121a;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.price-card h3 { font-size: 22px; margin: 10px 0 4px; }
.price-card .for { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: 25px;
  color: var(--text);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.price-amount small { display: block; font-size: 12.5px; color: var(--text-3); font-family: var(--font-sans); }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li {
  font-size: 14px; color: var(--text-2);
  padding: 7px 0 7px 24px; position: relative;
}
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  font-size: 16px; font-weight: 500; color: var(--text);
  padding: 20px 38px 20px 0;
  position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--cyan); font-size: 20px;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding-bottom: 22px; color: var(--text-2); font-size: 15px; max-width: 78ch; }
.faq-item.open .faq-a { display: block; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, var(--cyan-glow) 0%, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(25px, 3vw, 33px); margin-bottom: 12px; }
.cta-band p { color: var(--text-2); max-width: 56ch; margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- contact ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-2);
}
.field input, .field select, .field textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
}
.info-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.info-row .k {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}
.info-row .v { color: var(--text); font-size: 15px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-surface); padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-3); font-size: 14px; max-width: 34ch; margin-top: 14px; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--cyan);
  margin-top: 12px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--text-2); font-size: 14px; }
.footer li a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-3);
}

/* ---------- misc ---------- */
.note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg-card);
}
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.lede { font-size: 19px; color: var(--text-2); }
[hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.flip .split-media { order: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-bg-scroll);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px;
  }
  .nav.open .nav-links a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; }
  .spine-step { border-right: none; border-bottom: 1px solid var(--border); }
  .section { padding: 60px 0; }
}

/* ============================================================
   v3 — soft gradients, motion, prominent spine, regions
   ============================================================ */

/* ---- soft gradient ambience ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -5%,  var(--cyan-glow) 0%, transparent 60%),
    radial-gradient(820px 560px at 92% 8%,   rgba(34,211,238,0.07) 0%, transparent 62%),
    radial-gradient(1100px 700px at 50% 108%, rgba(34,211,238,0.06) 0%, transparent 60%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 520px at 12% -5%,  rgba(8,145,178,0.08) 0%, transparent 60%),
    radial-gradient(820px 560px at 92% 8%,   rgba(8,145,178,0.06) 0%, transparent 62%),
    radial-gradient(1100px 700px at 50% 108%, rgba(8,145,178,0.05) 0%, transparent 60%);
}
.section--alt {
  background:
    linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%);
}
.hero { background: linear-gradient(180deg, rgba(34,211,238,0.04) 0%, transparent 55%); }
[data-theme="light"] .hero { background: linear-gradient(180deg, rgba(8,145,178,0.05) 0%, transparent 55%); }

/* ---- scroll-reveal (gated on .anim-ready so no-JS still shows) ---- */
.anim-ready .anim-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.anim-ready .anim-in.visible { opacity: 1; transform: none; }
/* staggered children inside a revealed grid */
.anim-ready .anim-in.visible > .grid > *,
.anim-ready .anim-in.visible > .spine > *,
.anim-ready .anim-in.visible > .standards > * {
  animation: rise .55s cubic-bezier(.2,.7,.2,1) both;
}
.anim-ready .anim-in.visible > * > *:nth-child(1) { animation-delay: .04s; }
.anim-ready .anim-in.visible > * > *:nth-child(2) { animation-delay: .10s; }
.anim-ready .anim-in.visible > * > *:nth-child(3) { animation-delay: .16s; }
.anim-ready .anim-in.visible > * > *:nth-child(4) { animation-delay: .22s; }
.anim-ready .anim-in.visible > * > *:nth-child(5) { animation-delay: .28s; }
.anim-ready .anim-in.visible > * > *:nth-child(6) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* hero entrance */
.anim-ready .hero-inner > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.anim-ready .hero-inner > *:nth-child(1) { animation-delay: .05s; }
.anim-ready .hero-inner > *:nth-child(2) { animation-delay: .14s; }
.anim-ready .hero-inner > *:nth-child(3) { animation-delay: .23s; }
.anim-ready .hero-inner > *:nth-child(4) { animation-delay: .32s; }
.anim-ready .hero-inner > *:nth-child(5) { animation-delay: .41s; }

/* badge pulse */
.badge .dot { animation: dotpulse 2.6s ease-in-out infinite; }
@keyframes dotpulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-glow-2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,211,238,0); }
}

/* card / module / sov hover lift */
.card, .module, .sov, .audience, .price-card, .region, .partner {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover, .module:hover, .sov:hover, .partner:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}
.btn { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transition: transform .6s ease; transform: translateX(120%); }
.frame { transition: transform .3s ease, box-shadow .3s ease; }
.frame:hover { transform: translateY(-3px); }

/* nav link animated underline */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---- prominent spine ---- */
.spine-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  padding: 14px;
  overflow: hidden;
}
.spine-track {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.spine-node {
  flex: 1 1 0;
  min-width: 168px;
  padding: 26px 22px 24px;
  position: relative;
  z-index: 1;
}
.spine-node + .spine-node::before {
  content: "";
  position: absolute; left: -7px; top: 42px;
  width: 14px; height: 14px;
  border-top: 1.6px solid var(--cyan);
  border-right: 1.6px solid var(--cyan);
  transform: rotate(45deg);
  opacity: .55;
}
.spine-num {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cyan-deep);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-glow);
  margin-bottom: 14px;
}
.spine-node h4 { font-size: 16px; margin-bottom: 5px; }
.spine-node p { font-size: 13px; color: var(--text-3); }
/* the flowing pulse line */
.spine-flowline {
  position: relative;
  height: 2px;
  margin: 4px 22px 8px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.spine-flowline::after {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 100%; width: 34%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: flow 3.4s linear infinite;
}
@keyframes flow { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
.spine-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-3);
  padding-bottom: 4px;
}
/* the feedback loop — Repair findings return to Align */
.spine-feedback {
  position: relative;
  margin: 8px 22px 2px;
  height: 20px;
}
.spine-feedback .ret {
  position: absolute; left: 17%; right: 7%; top: 9px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 13px);
  opacity: .6;
  overflow: hidden;
}
.spine-feedback .ret::after {
  content: ""; position: absolute; top: -1px; right: 0;
  width: 26%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: 2px;
  animation: flowback 3.6s linear infinite;
}
@keyframes flowback { from { transform: translateX(60%); } to { transform: translateX(-320%); } }
.spine-feedback .arrow {
  position: absolute; left: 17%; top: 4.5px;
  width: 9px; height: 9px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateX(-3px) rotate(45deg);
}
.spine-loop-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--cyan);
  padding-bottom: 8px;
}

/* ---- coming-soon ---- */
.soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 2px 9px;
}
.soon-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--amber);
  animation: dotpulse2 2s ease-in-out infinite;
}
@keyframes dotpulse2 { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.module.is-soon, .card.is-soon { border-style: dashed; }
.module .soon-badge { margin-left: 8px; vertical-align: 1px; }

/* Roadmap status badges (shipped / in progress / planned) */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
}
.status::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.status-shipped { color: var(--green); }
.status-progress { color: var(--amber); }
.status-progress::before { animation: dotpulse2 2s ease-in-out infinite; }
.status-planned { color: var(--text-3); }
.card.is-planned { border-style: dashed; }

/* ---- regions / hosting partners ---- */
.region {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan-dim);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.region.is-fr { border-top-color: #e1000f; }
.region.is-eu { border-top-color: #f5c518; }
.region.is-us { border-top-color: #3b82f6; }
.region-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.region-flag .swatch {
  width: 22px; height: 14px; border-radius: 2px;
  display: inline-flex; overflow: hidden; border: 1px solid var(--border);
}
.region-flag .swatch i { flex: 1; }
.flag-fr i:nth-child(1){background:#0b3d91;} .flag-fr i:nth-child(2){background:#fff;} .flag-fr i:nth-child(3){background:#e1000f;}
.flag-eu { background:#003399; align-items:center; justify-content:center; color:#f5c518; font-size:9px; }
.flag-us i:nth-child(odd){background:#b22234;} .flag-us i:nth-child(even){background:#fff;} .flag-us{flex-direction:column;}
.region h3 { font-size: 19px; margin-bottom: 8px; }
.region p { color: var(--text-2); font-size: 14px; }
.region ul { list-style: none; margin-top: 14px; }
.region li {
  font-size: 13.5px; color: var(--text-2);
  padding: 7px 0 7px 22px; position: relative;
  border-top: 1px solid var(--border);
}
.region li::before { content: "✓"; position: absolute; left: 2px; color: var(--cyan); font-weight: 700; }
.region.featured { box-shadow: 0 0 38px var(--cyan-glow); }

.partner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.partner-mark {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .04em;
  color: var(--cyan);
  border: 1px solid var(--cyan-deep);
  background: var(--cyan-glow);
  border-radius: var(--radius);
  padding: 6px 10px;
  display: inline-block;
  margin-bottom: 12px;
}
.partner h3 { font-size: 16px; margin-bottom: 6px; }
.partner p { font-size: 13.5px; color: var(--text-2); }

/* screenshot dual-theme img just uses .frame img — swap handled in JS */

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-ready .anim-in { opacity: 1 !important; transform: none !important; }
  .spine-flowline::after, .badge .dot, .soon-badge::before { animation: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Prose (privacy / legal pages) ---------- */
.prose { max-width: 72ch; color: var(--text); }
.prose h2 {
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
.prose ul { margin: 6px 0 18px 22px; }
.prose li { color: var(--text-2); margin-bottom: 6px; font-size: 16px; line-height: 1.6; }
.prose a { color: var(--cyan); }
.prose a:hover { color: var(--cyan-dim); }

/* ---------- Utility: small muted text (replaces inline styles in footers) ---------- */
.muted-small { color: var(--text-3); font-size: 14px; }


/* ---------- Utilities (former inline styles; CSP-safe, no unsafe-inline) ---------- */
.u-mt-18 { margin-top:18px; }
.u-note { color:var(--text-3); font-size:14px; }
.u-mt-14 { margin-top:14px; }
.u-lead { font-size:21px; margin:8px 0; }
.u-sub-14 { color:var(--text-2); margin-top:14px; }
.u-c2 { color:var(--text-2); }
.u-accent { border-left:3px solid var(--cyan); }
.u-center-pad { text-align:center; padding:48px 28px; }
.u-mt-30 { margin-top:30px; }
.u-row { margin-top:24px; display:flex; flex-wrap:wrap; gap:12px; }
.u-mt-22 { margin-top:22px; }
.u-mono-note { margin-top:14px; color:var(--text-3); font-size:13px; font-family:var(--font-mono); }
.u-mt-10 { margin-top:10px; }
.u-mb-4 { margin-bottom:4px; }
.u-mb-0 { margin-bottom:0; }
.u-mx-auto { margin:0 auto 16px; }
.u-hd { font-size:clamp(24px,3vw,34px); margin-bottom:14px; }
.u-lead-sm { font-size:18px; margin:6px 0; }
.u-mono-13 { font-family:var(--font-mono); font-size:13px; color:var(--text-2); }

/* ---------- 404 page (externalised from inline <style>) ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.notfound-inner { max-width: 560px; }
.notfound .code { font-family: var(--font-mono); font-size: 5rem; line-height: 1; color: var(--cyan); letter-spacing: 0.05em; }
.notfound h1 { margin: 1rem 0 0.75rem; }
.notfound p { opacity: 0.75; margin-bottom: 2rem; }
.notfound .actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- nav scrolled state (replaces former JS inline style) ---------- */
.nav--scrolled { background: var(--nav-bg-scroll); }

/* ============================================================
   Cinematic motion layer (Phase 3) — hero entrance, ambient depth,
   scroll parallax and hover micro-interactions. CSS-only (CSP-safe;
   no JS-set inline styles, no libs). transform/opacity only. Initial
   hidden states live inside prefers-reduced-motion:no-preference, so
   reduced-motion users get the final, fully-visible layout (no flash);
   the kill-switch in the reduced-motion block above also neutralises
   the ambient loops.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance — staggered rise of the headline stack on first paint */
  .anim-ready .hero-inner > * {
    opacity: 0; transform: translateY(18px);
    animation: heroRise .85s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .anim-ready .hero-inner > *:nth-child(1) { animation-delay: .06s; }
  .anim-ready .hero-inner > *:nth-child(2) { animation-delay: .15s; }
  .anim-ready .hero-inner > *:nth-child(3) { animation-delay: .24s; }
  .anim-ready .hero-inner > *:nth-child(4) { animation-delay: .33s; }
  .anim-ready .hero-inner > *:nth-child(5) { animation-delay: .42s; }

  /* ambient depth — the control-room grid drifts, the glow breathes */
  .hero-bg { animation: gridDrift 34s linear infinite; }
  .hero-bg::after { animation: glowBreathe 9s ease-in-out infinite; will-change: transform, opacity; }

  /* scroll parallax — progressive; CSP-safe, no JS; no-op where unsupported */
  @supports (animation-timeline: scroll()) {
    .hero-bg {
      animation: gridDrift 34s linear infinite, heroFloat linear both;
      animation-timeline: auto, scroll(root);
      animation-range: 0 80vh;
    }
  }
}

@keyframes heroRise  { to { opacity: 1; transform: none; } }
@keyframes gridDrift { to { background-position: 52px 52px, 52px 52px; } }
@keyframes glowBreathe { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes heroFloat { to { transform: translateY(64px); opacity: .4; } }

/* micro-interactions — lift / press feedback (transform-only, 150–300ms) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sov { transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease; }
  .sov:hover { transform: translateY(-5px); border-color: var(--border-hover); }
}
.btn { transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px) scale(.985); }

/* tabular figures so animated metrics don't jiggle as digits change */
[data-target] { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ============================================================
   Sovereign deployment illustration (home) — a schematic of the
   PIMARIS data core staying inside one boundary across three
   deployment targets. Animates on scroll (boundary draws, connectors
   draw, zones stagger in, a data pulse flows). CSP-safe (CSS classes
   only); reduced-motion users get the final static diagram.
   ============================================================ */
.deploy-viz { margin: 4px 0 44px; }
.deploy-viz svg { width: 100%; height: auto; max-width: 920px; margin: 0 auto; display: block; }
.dv-boundary { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: .5; }
.dv-btab { fill: var(--cyan); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dv-core { fill: var(--bg-card); stroke: var(--cyan); stroke-width: 1.5; }
.dv-core-label { fill: var(--text); font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.dv-core-sub { fill: var(--text-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.dv-conn { fill: none; stroke: var(--border-hover); stroke-width: 1.5; }
.dv-flow { fill: var(--cyan); opacity: 0; }
.dv-zone rect { fill: var(--bg-card); stroke: var(--border); stroke-width: 1; }
.dv-zt { fill: var(--text); font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.dv-zs { fill: var(--text-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .01em; }
.deploy-cap { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .deploy-viz .dv-boundary { stroke-dasharray: 2200; stroke-dashoffset: 2200; }
  .deploy-viz.visible .dv-boundary { animation: dvDraw 1.5s cubic-bezier(.4,0,.2,1) forwards; }
  .deploy-viz .dv-conn { stroke-dasharray: 480; stroke-dashoffset: 480; }
  .deploy-viz.visible .dv-conn { animation: dvDraw 1s ease .5s forwards; }
  .deploy-viz .dv-zone { opacity: 0; transform: translateX(12px); }
  .deploy-viz.visible .dv-zone { animation: dvZone .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .deploy-viz.visible .dv-z1 { animation-delay: .70s; }
  .deploy-viz.visible .dv-z2 { animation-delay: .82s; }
  .deploy-viz.visible .dv-z3 { animation-delay: .94s; }
}
@supports (offset-path: path("M0 0")) {
  @media (prefers-reduced-motion: no-preference) {
    .deploy-viz .dv-flow.f1 { offset-path: path("M206 150 H400 V84 H556"); }
    .deploy-viz .dv-flow.f2 { offset-path: path("M206 150 H556"); }
    .deploy-viz .dv-flow.f3 { offset-path: path("M206 150 H400 V216 H556"); }
    .deploy-viz.visible .dv-flow { animation: dvFlow 2.6s linear 1.1s infinite; }
    .deploy-viz.visible .dv-flow.f2 { animation-delay: 1.35s; }
    .deploy-viz.visible .dv-flow.f3 { animation-delay: 1.6s; }
  }
}
@keyframes dvDraw { to { stroke-dashoffset: 0; } }
@keyframes dvZone { to { opacity: 1; transform: none; } }
@keyframes dvFlow { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
