/*
  Mazaro AI Services — global styles shared across pages.
  Combines base tokens, navigation, forms, utilities and per-page sections
  so we can cache one stylesheet and remove inline duplicates.
*/

:root {
  --font-sans:"Inter","SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-alt:#f5f6f8;
  --surface-glow:rgba(177,17,22,0.12);
  --surface-dark:#101015;
  --text:#101010;
  --muted:#4b5563;
  --muted-soft:#6b7280;
  --border:#e5e7eb;
  --border-strong:#d1d5db;
  --accent:#b11116;
  --accent-hi:#c71a21;
  --accent-600:#971017;
  --accent-700:#7d0d12;
  --accent-low:rgba(177,17,22,0.08);
  --accent-muted:rgba(177,17,22,0.18);
  --accent-rgb:177,17,22;
  --shadow-soft:0 18px 40px rgba(15,23,42,0.12);
  --shadow-bold:0 32px 60px rgba(15,23,42,0.18);
  --shadow-card:0 22px 45px rgba(16,16,16,0.08);
  --radius-xs:10px;
  --radius-sm:12px;
  --radius:18px;
  --radius-lg:28px;
  --max-width:1120px;
  color-scheme:light;
}

[data-theme="dark"] {
  --bg:#060606;
  --surface:#0f0f0f;
  --surface-alt:#141414;
  --surface-glow:rgba(177,17,22,0.28);
  --surface-dark:#0b0c11;
  --text:#f7f7f7;
  --muted:#cbd5f5;
  --muted-soft:#9da3c0;
  --border:#1f1f25;
  --border-strong:#272730;
  --shadow-soft:0 18px 40px rgba(0,0,0,0.55);
  --shadow-bold:0 38px 72px rgba(0,0,0,0.65);
  --shadow-card:0 28px 45px rgba(0,0,0,0.55);
  color-scheme:dark;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  text-rendering:optimizeLegibility;
}

img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
a:hover,
a:focus-visible { text-decoration:underline; text-decoration-thickness:0.08em; }

p { margin:0 0 1rem; }
ul { margin:0; padding-left:1.25rem; }

.skip,
.skip-link,
.sr-only {
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

.skip:focus,
.skip-link:focus,
.sr-only:focus {
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:8px 12px;
  background:var(--surface);
  border:2px solid var(--accent);
  border-radius:var(--radius-sm);
  clip:auto;
  z-index:120;
}

.container {
  width:min(var(--max-width), calc(100% - 40px));
  margin:0 auto;
}

.section { padding:clamp(64px, 9vw, 110px) 0; }
.section-header {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:32px;
  max-width:640px;
}

.muted { color:var(--muted); }
.muted-soft { color:var(--muted-soft); }
.note {
  font-size:0.78rem;
  color:var(--muted-soft);
}

.tag {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(var(--accent-rgb),0.25);
  background:rgba(var(--accent-rgb),0.08);
  color:var(--accent);
  font-weight:600;
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  font-weight:600;
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  transition:transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible { transform:translateY(-1px); box-shadow:0 12px 28px rgba(15,15,15,0.08); }
.btn:disabled { opacity:0.55; cursor:not-allowed; transform:none; box-shadow:none; }

.btn.primary {
  background:linear-gradient(135deg, var(--accent-hi), var(--accent));
  border:none;
  color:#fff;
  box-shadow:0 18px 32px rgba(var(--accent-rgb),0.25);
}

.btn.secondary {
  border:1px solid rgba(var(--accent-rgb),0.3);
  background:rgba(var(--accent-rgb),0.08);
  color:var(--accent);
}

.input,
select.input,
textarea.input {
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface-alt);
  color:var(--text);
  font:inherit;
  min-width:0;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.input:focus,
select.input:focus,
textarea.input:focus {
  outline:none;
  border-color:var(--accent);
  background:rgba(var(--accent-rgb),0.08);
}

textarea.input { min-height:140px; resize:vertical; }
.input.is-invalid { border-color:var(--accent); box-shadow:0 0 0 2px rgba(var(--accent-rgb),0.28); }

.status { font-size:0.82rem; color:var(--muted); min-height:18px; margin-top:4px; }
.status.error { color:#dc2626; }
.status.success { color:#16a34a; }

.cta-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

fieldset { border:none; padding:0; margin:0; }

.honeypot { position:absolute; left:-9999px; }

[data-reveal] { opacity:0; transform:translateY(22px); transition:opacity 0.4s ease, transform 0.4s ease; }
[data-reveal].is-visible { opacity:1; transform:none; }

body.nav-open { overflow:hidden; }

header.site-header,
header.nav {
  position:sticky;
  top:0;
  z-index:90;
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(180%) blur(16px);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
}

.nav-inner,
header.site-header .container {
  display:flex;
  align-items:center;
  gap:20px;
  min-height:72px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size:1.1rem;
  margin-right:auto;
}

.brand img { width:36px; height:36px; border-radius:12px; }

nav[aria-label] {
  display:flex;
  align-items:center;
  gap:18px;
  flex:1;
  justify-content:center;
  min-width:0;
}

.nav-links {
  display:flex;
  align-items:center;
  gap:12px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links a {
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  color:var(--muted);
  transition:background 0.25s ease, color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { background:rgba(var(--accent-rgb),0.08); color:var(--accent); }

.menu-toggle {
  display:none;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  padding:8px 12px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible { transform:translateY(-1px); box-shadow:0 12px 26px rgba(15,15,23,0.18); }

.theme-toggle,
header.nav .btn[aria-label="Cambiar tema"] {
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  font-size:1.1rem;
  cursor:pointer;
  transition:transform 0.25s ease;
}

.theme-toggle:hover,
header.nav .btn[aria-label="Cambiar tema"]:hover { transform:translateY(-1px); }

footer {
  border-top:1px solid var(--border);
  padding:28px 0;
  color:var(--muted);
}

footer nav {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.toast {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%) translateY(16px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:16px;
  transition:opacity 0.3s ease, transform 0.3s ease;
  opacity:0;
  z-index:130;
}

.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast .close {
  border:none;
  background:rgba(var(--accent-rgb),0.08);
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:600;
}

.cookie-banner {
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  padding:16px;
  display:none;
  z-index:120;
}

.cookie-banner__content {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* --- Home page --- */

body.page-home .hero {
  position:relative;
  padding:clamp(64px, 10vw, 120px) 0 80px;
  overflow:hidden;
}

body.page-home .hero::before {
  content:"";
  position:absolute;
  inset:-180px -40vw 0;
  z-index:-2;
  background:radial-gradient(circle at 20% -10%, rgba(var(--accent-rgb),0.4), rgba(var(--accent-rgb),0.13) 38%, transparent 70%);
}

[data-theme="dark"] body.page-home .hero::before {
  background:radial-gradient(circle at 25% -12%, rgba(var(--accent-rgb),0.55), rgba(var(--accent-rgb),0.22) 48%, transparent 78%);
}

body.page-home .hero-inner {
  display:grid;
  gap:48px;
  align-items:start;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

body.page-home .hero-copy { display:flex; flex-direction:column; gap:22px; }
body.page-home .hero-eyebrow { font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--accent); }
body.page-home .hero-title {
  font-size:clamp(36px, 5vw, 64px);
  margin:0;
  line-height:1.05;
}

body.page-home .hero-title .highlight { position:relative; }
body.page-home .hero-title .highlight::after {
  content:"";
  position:absolute;
  inset:auto 0 -6px;
  height:18px;
  background:rgba(var(--accent-rgb),0.18);
  z-index:-1;
}

body.page-home .hero-lead { font-size:1.08rem; color:var(--muted); }
body.page-home .hero-meta { display:flex; gap:12px; flex-wrap:wrap; }
body.page-home .hero-chip {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(var(--accent-rgb),0.22);
  background:rgba(var(--accent-rgb),0.08);
  font-weight:600;
}

body.page-home .feature-list {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

body.page-home .feature-card {
  display:flex;
  gap:12px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow-card);
  color:var(--muted);
}

body.page-home .feature-card span { font-size:1.2rem; color:var(--accent); }

body.page-home .hero-form {
  position:relative;
  border-radius:26px;
  padding:32px 28px;
  border:1px solid rgba(var(--accent-rgb),0.22);
  background:linear-gradient(180deg, rgba(var(--accent-rgb),0.12), transparent 45%), var(--surface);
  box-shadow:var(--shadow-bold);
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:100%;
}

body.page-home .hero-form header { display:flex; flex-direction:column; gap:12px; }
body.page-home .hero-form h2 { margin:0; font-size:1.6rem; line-height:1.2; }
body.page-home .hero-form p { margin:0; color:var(--muted); }

body.page-home .progress {
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(var(--accent-rgb),0.17);
}

body.page-home .progress .bar {
  height:100%;
  width:48%;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),1), rgba(var(--accent-rgb),0.56));
  transition:width 0.3s ease;
}

body.page-home form fieldset { display:none; flex-direction:column; gap:14px; }
body.page-home form fieldset[aria-hidden="false"] { display:flex; }
body.page-home .consent-checkbox { display:flex; gap:10px; align-items:flex-start; }

body.page-home .stack-intro { display:flex; flex-direction:column; gap:24px; margin-bottom:40px; }
body.page-home .stack-belt { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
body.page-home .stack-pill {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 14px 28px rgba(12,12,12,0.06);
  font-weight:600;
}

body.page-home .stack-pill span { color:var(--muted); font-weight:500; font-size:0.82rem; }
body.page-home .stack-quick { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-top:6px; }

body.page-home .stack-quick .quick-card {
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:20px;
  box-shadow:0 16px 30px rgba(12,12,12,0.08);
  display:flex;
  flex-direction:column;
  gap:6px;
  overflow-wrap:break-word;
  word-break:break-word;
  hyphens:auto;
}

body.page-home .stack-quick .quick-card strong { font-size:1.05rem; color:var(--accent); }
body.page-home .stack-quick .quick-card p { margin:0; color:var(--muted); font-size:0.88rem; }

body.page-home .tools-grid { margin-top:32px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
body.page-home .tool-card {
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:20px;
  box-shadow:0 20px 40px rgba(12,12,12,0.08);
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.page-home .tool-card:hover { transform:translateY(-4px); border-color:rgba(var(--accent-rgb),0.35); box-shadow:0 30px 60px rgba(12,12,12,0.12); }
body.page-home .tool-card header { display:flex; align-items:center; gap:12px; }
body.page-home .tool-card header img { width:32px; height:32px; filter:grayscale(100%); opacity:0.85; transition:filter 0.3s ease, opacity 0.3s ease; }
body.page-home .tool-card:hover header img { filter:none; opacity:1; }
body.page-home .tool-card header h3 { margin:0; font-size:1.1rem; }
body.page-home .tool-card p { margin:0; color:var(--muted); font-size:0.9rem; }
body.page-home .tool-tags { display:flex; flex-wrap:wrap; gap:8px; font-size:0.75rem; letter-spacing:0.06em; color:var(--muted-soft); text-transform:uppercase; }
body.page-home .tool-tags span { padding:4px 10px; border-radius:12px; border:1px solid rgba(var(--accent-rgb),0.2); background:rgba(var(--accent-rgb),0.1); }

body.page-home .services .tier-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
body.page-home .tier-card {
  border-radius:24px;
  border:1px solid rgba(var(--accent-rgb),0.25);
  background:linear-gradient(180deg, rgba(var(--accent-rgb),0.09), transparent 45%), var(--surface);
  padding:28px;
  box-shadow:0 26px 50px rgba(12,12,12,0.08);
  display:flex;
  flex-direction:column;
  gap:18px;
}

body.page-home .tier-card:nth-child(2) {
  background:linear-gradient(180deg, rgba(var(--accent-rgb),0.18), transparent 50%), var(--surface);
  border:1px solid rgba(var(--accent-rgb),0.4);
}

body.page-home .tier-card header { display:flex; flex-direction:column; gap:8px; }
body.page-home .tier-card .tier-meta { font-size:0.85rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted-soft); line-height:1.5; }
body.page-home .tier-card h3 { margin:0; font-size:1.38rem; }
body.page-home .tier-card h4 { margin:0; font-size:1.15rem; color:var(--muted); }
body.page-home .tier-list { display:flex; flex-direction:column; gap:8px; list-style:none; padding:0; margin:0; color:var(--muted); font-size:0.92rem; }
body.page-home .tier-list li { display:flex; gap:8px; align-items:flex-start; }
body.page-home .tier-list span { font-size:1.1rem; line-height:1; color:var(--accent); }
body.page-home .tier-footer { margin-top:auto; font-size:0.9rem; font-weight:600; color:var(--accent); display:flex; flex-direction:column; gap:4px; }

body.page-home .tier-card p,
body.page-home .tier-card h4,
body.page-home .tier-list li,
body.page-home .tier-footer { line-height:1.62; }

body.page-home .commitment-card {
  margin-top:34px;
  border-radius:24px;
  border:1px solid rgba(var(--accent-rgb),0.28);
  background:linear-gradient(135deg, rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.02));
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:12px;
  color:var(--text);
  box-shadow:0 26px 50px rgba(12,12,12,0.08);
}

[data-theme="dark"] body.page-home .commitment-card {
  background:linear-gradient(135deg, rgba(var(--accent-rgb),0.45), rgba(var(--accent-rgb),0.25));
  border-color:rgba(var(--accent-rgb),0.6);
  box-shadow:0 32px 48px rgba(0,0,0,0.6);
  color:#fff;
}

body.page-home .ia-suite {
  padding:clamp(64px, 9vw, 110px) 0;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface-alt) 88%, transparent), var(--bg));
}

body.page-home .ia-suite-inner {
  display:grid;
  gap:32px;
  grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);
  align-items:stretch;
}

body.page-home .ia-suite-left {
  border-radius:28px;
  background:linear-gradient(140deg, rgba(var(--accent-rgb),0.9), rgba(var(--accent-rgb),0.55));
  color:#fff;
  padding:36px;
  display:flex;
  flex-direction:column;
  gap:22px;
  position:relative;
  overflow:hidden;
}

body.page-home .ia-suite-left::after {
  content:"";
  position:absolute;
  inset:18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.24);
  opacity:0.35;
  pointer-events:none;
}

body.page-home .ia-suite-left h3,
body.page-home .ia-suite-left h2,
body.page-home .ia-suite-left p { margin:0; }
body.page-home .ia-suite-left h2 { font-size:2rem; line-height:1.1; }
body.page-home .ia-suite-left p { font-size:1rem; color:rgba(255,255,255,0.9); }
body.page-home .ia-suite-left .tag { background:rgba(255,255,255,0.22); border-color:rgba(255,255,255,0.45); color:#fff; box-shadow:0 6px 14px rgba(0,0,0,0.22); }
body.page-home .ia-suite-left .tag::after { display:none; }

body.page-home .ia-metrics { display:flex; flex-wrap:wrap; gap:18px; margin-top:auto; }
body.page-home .ia-metric { display:flex; flex-direction:column; gap:4px; }
body.page-home .ia-metric dt { font-size:2rem; font-weight:800; }
body.page-home .ia-metric dd { margin:0; color:rgba(255,255,255,0.85); font-size:0.92rem; }

body.page-home .ia-suite-right { display:flex; flex-direction:column; gap:18px; }
body.page-home .ia-card {
  border-radius:22px;
  border:1px solid rgba(var(--accent-rgb),0.2);
  background:var(--surface);
  padding:24px;
  box-shadow:0 24px 48px rgba(12,12,12,0.08);
  display:flex;
  flex-direction:column;
  gap:10px;
}

body.page-home .ia-card strong { font-size:1.1rem; display:flex; gap:10px; align-items:center; }
body.page-home .ia-card p { margin:0; color:var(--muted); font-size:0.95rem; }

body.page-home .process-roadmap { display:grid; gap:24px; grid-template-columns:repeat(3,minmax(0,1fr)); }
body.page-home .process-card {
  border-radius:22px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:24px;
  box-shadow:0 20px 42px rgba(12,12,12,0.08);
  display:flex;
  flex-direction:column;
  gap:14px;
  position:relative;
}

body.page-home .process-card::before {
  content:attr(data-step);
  position:absolute;
  top:-18px;
  left:24px;
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(var(--accent-rgb),0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:var(--accent);
}

body.page-home .process-card span { font-size:0.82rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted-soft); }
body.page-home .process-card h3 { margin:24px 0 0; font-size:1.2rem; }
body.page-home .process-card p { margin:0; color:var(--muted); }
body.page-home .process-card ul { margin:0; padding-left:1.1rem; color:var(--muted); font-size:0.9rem; }

body.page-home .guide-inner {
  border-radius:26px;
  padding:32px;
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:28px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}

body.page-home .guide-preview object {
  width:100%;
  min-height:360px;
  border-radius:20px;
  border:1px solid var(--border);
  background:var(--surface-alt);
}

body.page-home .guide-copy { display:flex; flex-direction:column; gap:16px; }
body.page-home .guide-copy h3 { margin:0; font-size:1.5rem; }

body.page-home .contact-inner {
  border-radius:26px;
  padding:36px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px;
}

body.page-home .contact-info header { display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
body.page-home .channel-list { display:flex; flex-direction:column; gap:12px; }
body.page-home .channel {
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  transition:transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-home .channel:hover { transform:translateY(-2px); border-color:rgba(var(--accent-rgb),0.3); box-shadow:0 16px 30px rgba(12,12,12,0.12); }
body.page-home .channel-icon { width:56px; height:56px; border-radius:16px; background:rgba(var(--accent-rgb),0.1); display:flex; align-items:center; justify-content:center; font-size:1.6rem; }
body.page-home .channel-body { display:flex; flex-direction:column; gap:4px; color:var(--muted); }
body.page-home .channel-body strong { color:var(--text); }
body.page-home .contact-highlights { display:flex; gap:16px; margin-top:24px; flex-wrap:wrap; }
body.page-home .highlight-card { border-radius:18px; padding:14px 18px; border:1px solid var(--border); background:var(--surface-alt); display:flex; flex-direction:column; gap:4px; min-width:160px; text-align:center; }
body.page-home .highlight-value { font-size:1.4rem; font-weight:700; color:var(--accent); }
body.page-home .highlight-label { font-size:0.82rem; color:var(--muted); }

body.page-home .contact-form { display:flex; flex-direction:column; gap:18px; }
body.page-home .contact-form .row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }

body.page-home footer .footer-inner {
  display:flex;
  gap:24px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* --- Blog page --- */

body.page-blog {
  background:radial-gradient(circle at top, rgba(var(--accent-rgb),0.08), transparent 45%), var(--bg);
}

body.page-blog .manifesto-hero {
  position:relative;
  padding:110px 0 90px;
  background:linear-gradient(145deg, rgba(var(--accent-rgb),0.1), transparent 52%);
}

body.page-blog .hero-grid { display:grid; gap:42px; grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr); }
body.page-blog .hero-copy { display:flex; flex-direction:column; gap:22px; }
body.page-blog .hero-copy .lead { font-size:1.05rem; color:var(--muted); }
body.page-blog .hero-pillars { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
body.page-blog .pillar-card {
  border-radius:22px;
  border:1px solid rgba(var(--accent-rgb),0.2);
  background:var(--surface);
  padding:20px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:10px;
}

body.page-blog .pillar-index { font-weight:700; color:var(--accent); letter-spacing:0.08em; }

body.page-blog .hero-aside { display:flex; flex-direction:column; gap:18px; }
body.page-blog .panel-card {
  border-radius:24px;
  border:1px solid rgba(var(--accent-rgb),0.28);
  background:linear-gradient(135deg, rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.02));
  padding:26px;
  box-shadow:var(--shadow-bold);
  display:flex;
  flex-direction:column;
  gap:12px;
}

body.page-blog .panel-list { margin:0; padding-left:1.1rem; color:var(--muted); }
body.page-blog .panel-note { font-size:0.85rem; color:var(--muted-soft); }
body.page-blog .hero-stats { display:flex; gap:14px; flex-wrap:wrap; }
body.page-blog .stat-card { border-radius:18px; border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow-soft); padding:16px; min-width:140px; text-align:center; display:flex; flex-direction:column; gap:4px; }
body.page-blog .stat-value { font-size:1.6rem; font-weight:700; color:var(--accent); }
body.page-blog .stat-label { font-size:0.9rem; color:var(--muted); }
body.page-blog .about-card { border-radius:20px; border:1px solid var(--border); padding:18px; background:var(--surface); display:flex; align-items:center; justify-content:space-between; gap:14px; }

body.page-blog .section { padding:96px 0; }
body.page-blog .section-header { max-width:680px; }
body.page-blog .track-grid { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
body.page-blog .track-card {
  border-radius:22px;
  border:1px solid rgba(var(--accent-rgb),0.18);
  background:var(--surface);
  padding:22px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:14px;
}

body.page-blog .track-card header { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted-soft); }
body.page-blog .status-badge { padding:4px 10px; border-radius:12px; background:rgba(var(--accent-rgb),0.1); font-weight:600; }
body.page-blog .status-badge.planned { color:#2563eb; }
body.page-blog .status-badge.in-progress { color:#d97706; }
body.page-blog .status-badge.recording { color:#16a34a; }
body.page-blog .track-card ul { margin:0; padding-left:1.1rem; color:var(--muted); font-size:0.92rem; }
body.page-blog .track-card footer { font-size:0.85rem; color:var(--muted-soft); }

body.page-blog .roadmap {
  display:grid;
  gap:24px;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
}

body.page-blog .roadmap-preview {
  border-radius:26px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:26px;
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:14px;
}

body.page-blog .roadmap-meta { display:flex; gap:10px; font-size:0.85rem; color:var(--muted-soft); }
body.page-blog .roadmap-actions { margin-top:auto; }
body.page-blog .roadmap-grid { display:flex; flex-direction:column; gap:12px; }
body.page-blog .roadmap-card {
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--surface);
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

body.page-blog .roadmap-card button,
body.page-blog .roadmap-card [role="button"] {
  border:none;
  background:transparent;
  font:inherit;
  padding:0;
  text-align:left;
  cursor:pointer;
  flex:1;
}

body.page-blog .roadmap-card[aria-pressed="true"] { border-color:var(--accent); box-shadow:0 16px 32px rgba(var(--accent-rgb),0.18); }
body.page-blog .lab-grid { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
body.page-blog .lab-card { border-radius:22px; border:1px solid var(--border); background:var(--surface); padding:20px; box-shadow:var(--shadow-soft); display:flex; flex-direction:column; gap:10px; }
body.page-blog .lab-card footer { margin-top:auto; font-size:0.85rem; color:var(--muted-soft); }

body.page-blog .faq-grid { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
body.page-blog .faq-card { border-radius:18px; border:1px solid var(--border); background:var(--surface); padding:20px; box-shadow:var(--shadow-soft); }

body.page-blog footer .inner { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }

/* --- About page --- */

body.page-about main { padding:48px 0 32px; }
body.page-about .card {
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 30px;
  background:var(--surface);
  box-shadow:var(--shadow-card);
  position:relative;
  overflow:hidden;
}

body.page-about .hero-card::after {
  content:"";
  position:absolute;
  inset:auto -120px -140px 55%;
  width:420px;
  height:420px;
  background:radial-gradient(circle, rgba(var(--accent-rgb),0.18), rgba(var(--accent-rgb),0) 65%);
  filter:blur(40px);
  opacity:0.55;
  pointer-events:none;
}

body.page-about .hero-card { margin-bottom:16px; }
body.page-about .link-quiet { margin-top:6px; }
body.page-about .lb figcaption { margin-top:6px; }
body.page-about .about-certifications { padding:0 0 32px; }
body.page-about #cert-title { margin-top:0; }

body.page-about .hero-grid { display:grid; gap:44px; grid-template-columns:1fr; justify-items:center; }
body.page-about .hero-copy { display:flex; flex-direction:column; gap:22px; max-width:740px; width:100%; }
body.page-about .hero-copy .tag { align-self:flex-start; }
body.page-about .hero-copy .muted { font-size:1.05rem; line-height:1.68; }
body.page-about .hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
body.page-about .hero-photo { width:100%; max-width:520px; border-radius:18px; border:1px solid var(--border); box-shadow:var(--shadow-card); }
body.page-about h1 { font-size:clamp(34px, 5.5vw, 54px); margin:12px 0 4px; }
body.page-about .list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; list-style:none; padding:0; margin:0; }
body.page-about .list li { display:flex; gap:12px; align-items:flex-start; color:var(--muted); }
body.page-about .list i { color:var(--accent); font-style:normal; }
body.page-about .link-quiet { display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:600; }

body.page-about .envelope { position:relative; overflow:hidden; }
body.page-about .envelope::before {
  content:"";
  position:absolute;
  top:-30px;
  right:-30px;
  width:120px;
  height:120px;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),0.12), rgba(var(--accent-rgb),0.03));
  transform:rotate(45deg);
}

body.page-about .certs-carousel { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
body.page-about .certs-main { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; }
body.page-about .carousel-nav { border:none; background:rgba(var(--accent-rgb),0.1); border-radius:50%; width:46px; height:46px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:var(--accent); cursor:pointer; box-shadow:var(--shadow-soft); }
body.page-about .carousel-nav:disabled { opacity:0.35; cursor:not-allowed; box-shadow:none; }
body.page-about .certs-track { position:relative; display:grid; }
body.page-about .cert { border-radius:16px; border:1px solid var(--border); padding:18px; display:flex; flex-direction:column; gap:10px; background:var(--surface-alt); }
body.page-about .cert[aria-hidden="true"] { display:none; }
body.page-about .cert .title { font-weight:700; }
body.page-about .cert img { border-radius:10px; cursor:pointer; }
body.page-about .cert .meta { font-size:0.85rem; color:var(--muted-soft); }

body.page-about .cert-thumbs { display:flex; gap:10px; flex-wrap:wrap; }
body.page-about .cert-thumb { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:999px; border:1px solid var(--border); background:var(--surface); cursor:pointer; box-shadow:var(--shadow-soft); transition:transform 0.2s ease, box-shadow 0.2s ease; }
body.page-about .cert-thumb[aria-pressed="true"] { border-color:var(--accent); box-shadow:0 16px 32px rgba(var(--accent-rgb),0.2); }
body.page-about .cert-thumb img { width:40px; height:40px; border-radius:12px; object-fit:cover; }
body.page-about .cert-thumb span { font-weight:600; color:var(--muted); }

body.page-about .lb { position:fixed; inset:0; background:rgba(0,0,0,0.72); display:flex; align-items:center; justify-content:center; padding:24px; z-index:120; transition:opacity 0.3s ease; }
body.page-about .lb[aria-hidden="true"] { opacity:0; pointer-events:none; }
body.page-about .lb .dialog { position:relative; max-width:min(90vw, 720px); background:var(--surface); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:12px; }
body.page-about .lb figure { margin:0; }
body.page-about .lb img { max-height:70vh; width:auto; margin:0 auto; }
body.page-about .lb .close,
body.page-about .lb .nav {
  position:absolute;
  top:12px;
  border:none;
  background:rgba(var(--accent-rgb),0.08);
  border-radius:12px;
  padding:6px 10px;
  cursor:pointer;
  font-size:1.1rem;
}

body.page-about .lb .close { right:12px; }
body.page-about .lb .prev { left:12px; top:50%; transform:translateY(-50%); }
body.page-about .lb .next { right:12px; top:50%; transform:translateY(-50%); }
body.page-about .lb .nav:disabled { opacity:0.4; cursor:not-allowed; }

body.page-about [data-cert-controls] { display:flex; gap:10px; justify-content:center; margin-top:16px; flex-wrap:wrap; }
body.page-about [data-cert-go] { border:none; background:rgba(var(--accent-rgb),0.1); border-radius:999px; padding:6px 12px; font-weight:600; cursor:pointer; }
body.page-about [data-cert-go][aria-pressed="true"] { background:var(--accent); color:#fff; }

body.page-about footer .container { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

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

@media (max-width: 1180px) {
  body.page-home .tools-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.page-home .ia-suite-inner { grid-template-columns:1fr; }
}

@media (max-width: 820px) {
  body.page-home .hero-title { font-size:2.75rem; line-height:1.18; }
  body.page-home .hero-lead { font-size:1.05rem; }
  body.page-home .hero-meta { gap:10px; }
  body.page-home .feature-card { padding:16px; }
  body.page-blog .hero-copy h1 { font-size:2.45rem; line-height:1.16; }
  body.page-blog .hero-copy .lead { font-size:1.05rem; }
  body.page-about h1 { font-size:2.6rem; line-height:1.2; }
  body.page-about .list { grid-template-columns:1fr; }
}

@media (max-width: 960px) {
  nav[aria-label] { justify-content:flex-end; }
  .nav-links {
    position:fixed;
    inset:80px 16px auto;
    flex-direction:column;
    align-items:stretch;
    padding:20px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:20px;
    box-shadow:var(--shadow-bold);
    width:calc(100% - 32px);
    max-height:calc(100vh - 120px);
    overflow-y:auto;
    gap:6px;
  }
  .nav-links li { width:100%; }
  .nav-links a { width:100%; }
  header.site-header nav[aria-label] { justify-content:flex-end; }
  .menu-toggle { display:inline-flex; }
  .theme-toggle { order:3; }
  .nav-links[aria-hidden="true"] { display:none; }
  .nav-links[aria-hidden="false"] { display:flex; }

  body.page-home .hero-inner { grid-template-columns:1fr; }
  body.page-home .feature-list { grid-template-columns:1fr; }
  body.page-home .hero-form { order:-1; margin:0 auto; max-width:540px; }
  body.page-home .tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.page-home .tier-grid { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
  body.page-home .process-roadmap,
  body.page-home .contact-inner { grid-template-columns:1fr; }
  body.page-home .contact-form .row { grid-template-columns:1fr; }

  body.page-blog .hero-grid { grid-template-columns:1fr; }
  body.page-blog .roadmap { grid-template-columns:1fr; }

  body.page-about .hero-card { padding:28px 22px; }
}

@media (max-width: 640px) {
  .container { width:calc(100% - 24px); }
  footer nav { justify-content:flex-start; }
  .cookie-banner__content { flex-direction:column; align-items:flex-start; }

  body.page-home .hero-copy { gap:18px; }
  body.page-home .hero-title { font-size:2.1rem; line-height:1.25; }
  body.page-home .hero-title .highlight::after { height:14px; inset:auto 0 -4px; }
  body.page-home .hero-lead { font-size:1rem; }
  body.page-home .hero-meta { gap:8px; }
  body.page-home .hero-form { padding:28px 22px; }
  body.page-home .feature-card { padding:14px; gap:10px; }
  body.page-home .stack-pill { flex:1 1 100%; }
  body.page-home .tools-grid { grid-template-columns:1fr; }
  body.page-home .stack-quick .quick-card { padding:18px; }
  body.page-home .services .section-header {
    text-align:center;
    margin-inline:auto;
    max-width:30rem;
    gap:clamp(12px, 3.8vw, 18px);
  }
  body.page-home .services .section-header .muted {
    font-size:clamp(0.98rem, 3.8vw, 1.08rem);
    line-height:1.72;
  }
  body.page-home .services .tier-grid {
    grid-template-columns:minmax(0,1fr);
    gap:clamp(24px, 7vw, 32px);
  }
  body.page-home .tier-card {
    padding:clamp(26px, 7vw, 34px) clamp(22px, 6vw, 30px);
    gap:clamp(20px, 5vw, 26px);
    max-width:none;
    width:100%;
    margin-inline:0;
    text-align:left;
  }
  body.page-home .tier-card header { gap:clamp(16px, 4.8vw, 24px); align-items:flex-start; }
  body.page-home .tier-card .tier-meta {
    align-self:flex-start;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 18px;
    border-radius:999px;
    border:1px solid rgba(var(--accent-rgb),0.25);
    background:rgba(var(--accent-rgb),0.08);
    font-size:0.78rem;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--accent);
    font-weight:600;
  }
  body.page-home .tier-card h3 { font-size:clamp(1.42rem, 5.8vw, 1.68rem); line-height:1.28; }
  body.page-home .tier-card h4 { font-size:clamp(1.05rem, 4.6vw, 1.22rem); line-height:1.46; color:var(--muted); }
  body.page-home .tier-card header p {
    margin:0;
    font-size:clamp(1rem, 4.5vw, 1.12rem);
    line-height:1.74;
    color:var(--muted);
  }
  body.page-home .tier-list { gap:clamp(14px, 4.6vw, 20px); font-size:1rem; }
  body.page-home .tier-list li {
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    padding:16px clamp(18px, 5vw, 22px);
    border-radius:18px;
    background:rgba(var(--accent-rgb),0.06);
    box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),0.14);
  }
  body.page-home .tier-list span {
    font-size:1.18rem;
    line-height:1;
    margin-top:2px;
  }
  body.page-home .tier-footer {
    font-size:clamp(0.96rem, 3.8vw, 1.05rem);
    padding-top:clamp(18px, 5vw, 24px);
    gap:8px;
    border-top:1px solid rgba(var(--accent-rgb),0.18);
  }
  body.page-home .tier-footer span { line-height:1.72; }
  body.page-home .guide-inner { grid-template-columns:1fr; border-radius:22px; }
  body.page-home .guide-preview object { min-height:300px; }
  body.page-home .contact-inner { padding:26px; }
  body.page-home .channel { flex-direction:row; }
  body.page-home .channel-icon { width:52px; height:52px; font-size:1.4rem; }

  body.page-blog .panel-card { padding:22px; }

  body.page-about .hero-grid { gap:32px; }
  body.page-about .hero-photo { max-width:360px; }
}

@media (max-width: 480px) {
  .nav-links { inset:72px 12px auto; width:calc(100% - 24px); }
  body.page-home .hero-title { font-size:1.95rem; line-height:1.28; }
  body.page-home .hero-lead { font-size:0.98rem; }
  body.page-home .hero-meta { flex-wrap:wrap; }
  body.page-home .hero-form { padding:24px 18px; }
  body.page-home .guide-copy h3 { font-size:1.35rem; }
  body.page-home .guide-preview object { min-height:240px; }
  body.page-home .tier-card {
    padding:clamp(24px, 7.5vw, 30px) clamp(18px, 6.5vw, 26px);
    border-radius:26px;
  }
  body.page-home .tier-card .tier-meta {
    width:100%;
    justify-content:center;
    font-size:0.76rem;
    letter-spacing:0.12em;
  }
  body.page-home .tier-card h3 { font-size:clamp(1.38rem, 6.4vw, 1.58rem); }
  body.page-home .tier-card h4 { font-size:clamp(1.02rem, 5vw, 1.18rem); }
  body.page-home .tier-card header p { font-size:clamp(0.98rem, 4.8vw, 1.08rem); }
  body.page-home .tier-list { font-size:1.02rem; }
  body.page-home .tier-list li { padding:16px clamp(16px, 6vw, 20px); gap:10px; }
  body.page-home .tier-list span { font-size:1.12rem; }
  body.page-home .tier-footer { font-size:clamp(0.94rem, 4vw, 1.02rem); gap:10px; }
  body.page-blog .hero-copy h1 { font-size:2.1rem; line-height:1.22; }
  body.page-blog .hero-copy .lead { font-size:0.98rem; }
  body.page-blog .panel-card { padding:20px; }
  body.page-about h1 { font-size:2.25rem; line-height:1.22; }
  body.page-about .hero-card { padding:24px 18px; }
}
