/* =========================================================
   FidesGuard — Global Stylesheet
   Bold · Technical · Futuristic
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --bg: #ffffff;
  --bg-2: #f4f7f9;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --surface-3: #e2eaed;
  --border: #dbe4e8;
  --border-strong: rgba(0, 191, 165, 0.4);

  --cyan: #00bfa5;
  --cyan-soft: rgba(0, 191, 165, 0.12);
  --green: #50c0af;
  --green-soft: rgba(80, 192, 175, 0.12);
  --violet: #1b6d85;
  --violet-soft: rgba(27, 109, 133, 0.16);
  --magenta: #fa8200;
  --amber: #fa8200;
  --danger: #ff5c6c;

  --text: #232c39;
  --muted: #54616e;
  --muted-2: #7b8794;

  --grad: linear-gradient(100deg, #00bfa5 0%, #50c0af 100%);
  --grad-violet: linear-gradient(100deg, #00bfa5 0%, #1b6d85 100%);

  /* Type */
  --font-head: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.15rem; }
::selection { background: rgba(0, 191, 165, 0.32); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

/* ---------- Section header ---------- */
.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

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

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, #ffa53c 0%, #fa8200 100%); color: #ffffff;
  box-shadow: 0 10px 30px -8px rgba(250, 130, 0, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(250, 130, 0, 0.65); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.btn-outline {
  background: var(--cyan-soft); color: var(--cyan);
  border-color: rgba(0, 191, 165, 0.35);
}
.btn-outline:hover { background: rgba(0, 191, 165, 0.2); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid #d3e0e4;
  color: #3f5b6b; background: #eef6f6;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip--cyan::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.chip--violet::before { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: #ffffff; box-shadow: 0 8px 30px -18px rgba(35, 44, 57, 0.28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 46px; width: auto; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; color: #232c39; }
.brand-name span { color: var(--cyan); }
.brand-sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.28em; color: var(--muted); margin-top: 4px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 10px 15px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: #01516f; background: var(--cyan-soft); }
.nav-link.is-active { color: var(--cyan); }
.nav-link.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--grad); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #232c39; border-top: 1px solid rgba(255,255,255,0.08); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #ffffff; margin-bottom: 18px; }
.footer-col a { display: block; color: #aebccb; padding: 5px 0; font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #50c0af; }
.footer-about p { color: #aebccb; font-size: 0.95rem; margin: 18px 0; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.brand--footer .brand-mark { height: 34px; width: auto; background: #ffffff; padding: 5px 8px; border-radius: 8px; }
.brand--footer .brand-name { color: #ffffff; }
.brand--footer .brand-sub { color: #8fa0b0; }
.footer-disclaimer { margin-top: 44px; padding: 18px 20px; border: 1px solid rgba(255,255,255,0.12); border-left: 3px solid #00bfa5; border-radius: 10px; background: rgba(255,255,255,0.04); }
.footer-disclaimer p { margin: 0; color: #8fa0b0; font-size: 0.82rem; line-height: 1.6; }
.footer-disclaimer strong { color: #c7d2dd; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); color: #8fa0b0; font-size: 0.86rem; }
.footer-bottom p { margin: 0; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Background decorations ---------- */
.bg-grid { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 191, 165, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 191, 165, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 108px 0 96px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.hero-note .status-dot { width: 7px; height: 7px; }

/* Terminal / code panel */
.terminal {
  background: #1f2a37; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 191, 165, 0.06);
  overflow: hidden; font-family: var(--font-mono); font-size: 0.82rem;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.08em; }
.terminal-body { padding: 20px; line-height: 1.9; }
.terminal-body .line { white-space: pre-wrap; }
.t-cmd { color: var(--green); }
.t-ok { color: var(--green); }
.t-muted { color: var(--muted-2); }
.t-cyan { color: var(--cyan); }
.t-warn { color: var(--amber); }
.blink::after { content: "▍"; color: var(--cyan); animation: pulse 1s steps(2) infinite; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 84px 0 60px; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 70% 100% at 50% -20%, rgba(0, 191, 165, 0.12), transparent 60%), var(--bg); }
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 24px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { opacity: 0.7; margin: 0 6px; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad); opacity: 0.5; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 22px 50px -24px rgba(0, 191, 165, 0.4); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: var(--cyan-soft); border: 1px solid rgba(0, 191, 165, 0.25); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card .link { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.card .link:hover { color: var(--green); }
.card--violet .card-icon { background: var(--violet-soft); border-color: rgba(27, 109, 133, 0.3); }
.card--green .card-icon { background: var(--green-soft); border-color: rgba(80, 192, 175, 0.3); }

.feature-card { display: flex; gap: 18px; padding: 26px 24px; }
.feature-card .card-icon { flex: 0 0 auto; margin-bottom: 0; }
.feature-card p { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 0.95rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.check-list li strong { color: var(--text); }

/* ---------- Process / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 18px; right: 22px; font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: rgba(0, 191, 165, 0.14); }
.step-num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: grid; gap: 14px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc-trigger { width: 100%; background: none; border: 0; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.acc-trigger .acc-icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--cyan); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; transition: transform 0.25s ease; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-panel-inner { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-item.is-open .acc-panel { max-height: 420px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 22px; color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.testimonial blockquote::before { content: "\201C"; color: var(--cyan); font-family: var(--font-head); font-size: 2.4rem; line-height: 0; vertical-align: -12px; margin-right: 6px; }
.testimonial footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #ffffff; background: var(--grad); flex: 0 0 auto; }
.testimonial .who { display: flex; flex-direction: column; }
.testimonial .who strong { font-size: 0.95rem; }
.testimonial .who span { color: var(--muted); font-size: 0.82rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(0, 191, 165, 0.16), transparent 60%), var(--surface); padding: 56px 48px; text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Trust / logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: center; }
.logo-item { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--muted-2); opacity: 0.7; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo-item svg { width: 18px; height: 18px; opacity: 0.6; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 14px; }
.form-alert { padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px; }
.form-alert.is-hidden { display: none; }
.form-alert--error { background: rgba(255, 92, 108, 0.1); border: 1px solid rgba(255, 92, 108, 0.4); color: #ffb3bb; }
.form-alert--success { background: var(--green-soft); border: 1px solid rgba(80, 192, 175, 0.4); color: var(--green); }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-method { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 14px; }
.contact-method .card-icon { margin: 0; flex: 0 0 auto; }
.contact-method h3 { margin: 0 0 4px; font-size: 1.02rem; }
.contact-method p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.contact-method a { color: var(--cyan); }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--border); }
.svc-row:last-child { border-bottom: 0; }
.svc-row .eyebrow { margin-bottom: 12px; }
.svc-row p { color: var(--muted); }
.svc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.svc-panel h4 { color: var(--cyan); margin-bottom: 14px; }
.svc-panel ul { margin: 0; }

/* ---------- Code block / callout ---------- */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--cyan); background: var(--surface); padding: 20px 22px; border-radius: 10px; margin: 20px 0; }
.callout p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.callout strong { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { margin-top: 40px; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal strong { color: var(--text); }
.legal .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #ffffff; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(35, 44, 57, 0.3);
    padding: 16px 20px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 13px 15px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .stats-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Mega navigation ---------- */
.nav-item { position: relative; }
button.nav-link { background: none; border: 0; cursor: pointer; text-align: left; width: auto; }
.nav-item.is-active > .nav-link { color: var(--cyan); }
.nav-link.caret { display: inline-flex; align-items: center; }
.nav-link.caret::after { content: "▾"; margin-left: 7px; font-size: 0.68rem; opacity: 0.6; transition: transform 0.18s ease; }
.nav-item:hover .nav-link.caret::after, .nav-item:focus-within .nav-link.caret::after { transform: translateY(1px); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 520px; padding: 20px; border-radius: 14px;
  background: #ffffff; border: 1px solid var(--border);
  box-shadow: 0 30px 60px -22px rgba(35, 44, 57, 0.25), 0 0 0 1px rgba(0, 191, 165, 0.06);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 60;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; }
.drop-grid--2 { grid-template-columns: repeat(2, 1fr); }
.drop-col { display: flex; flex-direction: column; }
.drop-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 14px 10px 6px; }
.drop-title:first-child { margin-top: 2px; }
.drop-link { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; font-size: 0.9rem; color: var(--muted); transition: color 0.15s ease, background 0.15s ease; }
.drop-link small { font-size: 0.72rem; color: var(--muted-2); }
.drop-link:hover { color: #01516f; background: var(--cyan-soft); }
.drop-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------- Resource / news cards ---------- */
.resource-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.resource-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 22px 50px -24px rgba(0, 191, 165, 0.4); }
.resource-card .rc-body { padding: 22px 24px; }
.resource-card .rc-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.resource-card .rc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.resource-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.resource-card .link { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }
.resource-card .link:hover { color: var(--green); }

/* ---------- Framework tiles ---------- */
.fw-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: transform 0.18s ease, border-color 0.18s ease; }
.fw-tile:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.fw-tile .fw-mono { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.02em; }
.fw-tile .fw-name { font-weight: 600; font-size: 0.98rem; }
.fw-tile .fw-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }

@media (max-width: 768px) {
  .nav-item { width: 100%; }
  .nav-link.caret { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static; transform: none; min-width: 0; padding: 6px 0 6px 14px;
    background: transparent; border: 0; border-left: 1px solid var(--border);
    border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto;
    display: none; margin: 4px 0 8px 8px;
  }
  .dropdown.is-open { display: block; }
  .drop-grid { grid-template-columns: 1fr; gap: 2px; }
  .drop-title { margin: 12px 10px 4px; }
}

/* ---------- Splash / preloader ---------- */
.splash {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1; visibility: visible;
  transition: opacity 1.4s ease, visibility 1.4s ease;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
html.no-splash .splash { display: none; }
.splash-logo {
  width: min(560px, 80vw);
  height: auto;
  background: #ffffff;
  padding: 18px 26px;
  border-radius: 16px;
  box-shadow: 0 24px 70px -24px rgba(35, 44, 57, 0.45);
  animation: splashIn 0.9s ease both;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Header logo "pop" when the splash finishes */
.brand-mark.pop { animation: logoPop 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes logoPop {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

