/* =========================================================
   IBWare — Corporate Design System
   ========================================================= */

:root {
  /* Brand palette */
  --brand-500: #2563eb;
  --brand-400: #3b82f6;
  --brand-300: #60a5fa;
  --brand-600: #1d4ed8;
  --accent-500: #8b5cf6;
  --accent-400: #a78bfa;
  --cyan-400: #06b6d4;

  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-text: linear-gradient(120deg, #2563eb 0%, #8b5cf6 60%, #06b6d4 100%);

  /* Light theme surfaces */
  --bg: #ffffff;
  --bg-subtle: #f6f8fc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  --text: #0b1324;
  --text-soft: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --container: 100%;
  --gutter: clamp(18px, 4.5vw, 96px);
  --nav-h: 70px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #070b16;
  --bg-subtle: #0b1120;
  --bg-elevated: #0f1729;
  --surface: #0f1729;
  --surface-2: #131c30;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);

  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 70px rgba(59, 130, 246, 0.25);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; color: var(--text-soft); }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-400) 12%, transparent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--text-muted); }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.2rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand-400); }

.btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-light:hover { color: #fff; background: rgba(255, 255, 255, 0.26); }

.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 550;
  font-size: 0.97rem;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Dropdown */
.has-dropdown > a svg { transition: transform 0.25s var(--ease); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown-item {
  display: flex !important;
  gap: 12px;
  align-items: center;
  padding: 11px 12px !important;
  border-radius: var(--radius-sm);
}
.dropdown-item .ic {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dropdown-item .ic img { width: 24px; height: 24px; }
.dropdown-item strong { display: block; color: var(--text); font-size: 0.95rem; }
.dropdown-item span { display: block; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand-400); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(139, 92, 246, 0.14), transparent 70%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 640px; margin: 0 auto 34px; font-size: 1.22rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 46px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--brand-400); }

/* ---------- Grid helpers ---------- */
.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); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.feature-ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-400) 14%, transparent);
  color: var(--brand-500);
  margin-bottom: 18px;
}
.feature-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.98rem; color: var(--text-muted); }

/* ---------- Product cards ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-card:hover::before { opacity: 1; }
.product-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px;
}
.product-logo img { width: 100%; height: 100%; object-fit: contain; }
.product-card h3 { margin-bottom: 6px; }
.product-card .muted { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-500);
  background: color-mix(in srgb, var(--accent-500) 12%, transparent);
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.product-card .links { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); }
.feature-list svg { width: 22px; height: 22px; color: var(--brand-500); flex: none; margin-top: 1px; }

/* ---------- About preview / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: 2.1rem; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; }
.cta-inner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
}
.cta-inner h2 { color: #fff; position: relative; }
.cta-inner p { color: rgba(255, 255, 255, 0.9); position: relative; max-width: 560px; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-inner .hero-cta { position: relative; }

/* ---------- Page header ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg { background: radial-gradient(60% 70% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%); }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.12rem; color: var(--text-muted); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-500); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border-strong);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gradient-brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.timeline-item .yr { font-weight: 800; color: var(--brand-500); font-size: 0.95rem; }
.timeline-item h4 { margin: 2px 0 4px; font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 550; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps (SSR) ---------- */
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.step .n {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gradient-brand); color: #fff;
  font-weight: 800; font-size: 1.2rem;
}
.step h4 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0 0 14px; color: var(--text-muted); }
.step img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.video-wrap {
  position: relative; padding-top: 56.25%; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose a { font-weight: 600; }
.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-row .ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-400) 13%, transparent);
  color: var(--brand-500);
}
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { margin: 0 0 2px; font-size: 1.02rem; }
.info-row p, .info-row a { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.info-row a:hover { color: var(--brand-500); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-400) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; }
.map-embed {
  width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
  display: grid; place-items: center; color: var(--text-muted); text-align: center; padding: 20px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Careers ---------- */
.empty-state {
  text-align: center; max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg); padding: 56px 32px; box-shadow: var(--shadow-sm);
}
.empty-state .feature-ic { margin: 0 auto 20px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
}
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h5 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 16px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: 0.95rem; }
.footer-col a:hover { color: var(--brand-500); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); transition: all 0.2s;
}
.social a:hover { color: #fff; background: var(--gradient-brand); border-color: transparent; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------- Animated headline rotator ---------- */
.rotator { display: inline-grid; }
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  animation: rotate-word 9s infinite;
}
.rotator > span:nth-child(1) { animation-delay: 0s; }
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
@keyframes rotate-word {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-12px); }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--brand-500); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 14px 18px 22px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--border);
    border-radius: 0; margin: 4px 0 4px 14px; min-width: 0; padding: 4px 0;
  }
  .nav-links .has-dropdown > a { pointer-events: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; }
  .step .n { margin-bottom: -6px; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
}

/* ---- Large / full-screen displays: use more of the viewport ---- */
@media (min-width: 1750px) {
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
