/* =========================================================================
   ACROS BRAINTECH LTD — Master Stylesheet
   Aesthetic: "Old Money Tech" — clinical white, editorial, premium.
   Palette: #FFFFFF / #0F172A / #2563EB / #F8FAFC / #22C55E
   Type: Poppins (display) + Inter (body)
   ========================================================================= */

:root {
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --slate: #475569;
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #22c55e;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1, .h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2, .h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--slate); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--blue); display: inline-block;
}
.text-navy { color: var(--navy) !important; }
.text-blue { color: var(--blue) !important; }
.text-green { color: var(--green) !important; }
.text-slate { color: var(--slate) !important; }
.bg-gray { background: var(--gray-50) !important; }
.bg-navy { background: var(--navy) !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 0.55rem;
  cursor: pointer;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.4); outline-offset: 3px; }
.btn-primary {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover {
  background: var(--blue-dark); color: #fff; border-color: var(--blue-dark);
  transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--gray-300);
}
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--navy); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn i { font-size: 0.9em; }

/* ---------- Navbar ---------- */
.navbar-acros {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar-acros.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07); }
.navbar-acros .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); font-size: 1.15rem; display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand:hover { color: var(--navy); }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 700; flex: none;
}
.brand .brand-mark span { color: var(--green); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--slate); }
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  color: var(--navy); font-weight: 500; font-size: 0.95rem; padding: 0.6rem 0.95rem;
  border-radius: 999px; position: relative;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--blue); background: var(--gray-50); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a i { font-size: 0.7rem; transition: transform 0.3s var(--ease); }
.nav-dropdown.open > a i { transform: rotate(180deg); }
.dropdown-menu-acros {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 0.6rem; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.28s var(--ease);
}
.nav-dropdown.open .dropdown-menu-acros { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-acros a {
  display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.7rem 0.8rem; border-radius: 12px; color: var(--navy);
}
.dropdown-menu-acros a:hover { background: var(--gray-50); }
.dropdown-menu-acros a i { color: var(--blue); width: 34px; height: 34px; background: rgba(37,99,235,0.09); border-radius: 9px; display: grid; place-items: center; flex: none; }
.dropdown-menu-acros a span { font-size: 0.8rem; color: var(--slate); font-weight: 400; display: block; }
.dropdown-menu-acros a strong { font-weight: 600; font-size: 0.95rem; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--navy); cursor: pointer; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1.2rem; gap: 0.2rem; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 74px); overflow-y: auto;
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 0.85rem 1rem; }
  .dropdown-menu-acros { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0.2rem 0 0.2rem 1rem; min-width: 0; }
  .nav-cta-mobile { margin-top: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-bg-shape {
  position: absolute; right: -12%; top: -18%; width: 55vw; height: 55vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.10), rgba(37,99,235,0) 62%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { line-height: 1.1; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.line-mask { overflow: hidden; display: block; }
.line-mask > span { display: block; white-space: nowrap; padding-bottom: 0.08em; transform: translateY(0); }
[data-hero-fade] { opacity: 1; transform: none; }
/* Opt-in kinetic entrance (only while .hero-anim is present on <html>) */
html.hero-anim .line-mask > span { transform: translateY(115%); transition: transform 1s var(--ease); }
html.hero-anim .line-mask:nth-child(1) > span { transition-delay: 0.05s; }
html.hero-anim .line-mask:nth-child(2) > span { transition-delay: 0.17s; }
html.hero-anim .line-mask:nth-child(3) > span { transition-delay: 0.29s; }
html.hero-anim.hero-ready .line-mask > span { transform: translateY(0); }
html.hero-anim [data-hero-fade] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: 0.45s; }
html.hero-anim.hero-ready [data-hero-fade] { opacity: 1; transform: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.82rem; font-weight: 500; color: var(--navy); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
  clip-path: inset(0 round 24px);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.hero-stat-card {
  position: absolute; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1rem 1.25rem;
}
.hero-stat-card .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy); letter-spacing: -0.03em; }
.hero-stat-card .l { font-size: 0.78rem; color: var(--slate); }
.hero-stat-a { bottom: 26px; left: -28px; }
.hero-stat-b { top: 40px; right: -24px; }
@media (max-width: 767px) { .hero-stat-a { left: 8px; } .hero-stat-b { right: 8px; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(2rem,4vw,3.5rem) 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; will-change: transform; width: max-content; animation: marqueeScroll 24s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.4px var(--navy);
  text-stroke: 1.4px var(--navy); display: inline-flex; align-items: center; gap: 3rem;
}
.marquee-track span i { -webkit-text-stroke: 0; color: var(--blue); font-size: 0.5em; }

/* ---------- Cards ---------- */
.card-acros {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem;
  height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card-acros:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gray-100); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(37,99,235,0.08); color: var(--blue); font-size: 1.3rem; margin-bottom: 1.3rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.card-acros:hover .card-icon { background: var(--blue); color: #fff; }
.card-acros h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-acros p { font-size: 0.95rem; margin: 0; }

/* Service card (linkable) */
.service-card { display: flex; flex-direction: column; }
.service-card .service-arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--blue);
  font-weight: 600; font-size: 0.9rem; padding-top: 1.3rem;
}
.service-card:hover .service-arrow i { transform: translateX(6px); }
.service-card .service-arrow i { transition: transform 0.3s var(--ease); }
.service-num { font-family: var(--font-display); font-weight: 700; color: var(--gray-200); font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }

/* ---------- Industries bento ---------- */
.industry-tile {
  position: relative; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff;
  padding: 1.75rem; height: 100%; overflow: hidden; transition: all 0.4s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 160px;
}
.industry-tile:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-6px); }
.industry-tile:hover .industry-name, .industry-tile:hover .industry-num { color: #fff; }
.industry-tile:hover .industry-icon { color: var(--green); }
.industry-icon { font-size: 1.6rem; color: var(--blue); transition: color 0.4s var(--ease); }
.industry-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); transition: color 0.4s var(--ease); }
.industry-num { font-size: 0.75rem; color: var(--gray-300); font-weight: 600; letter-spacing: 0.1em; transition: color 0.4s var(--ease); }

/* ---------- Timeline / manifesto chapters ---------- */
.timeline { position: relative; }
.timeline-item { position: relative; padding: 0 0 3rem 4.5rem; }
.timeline-item::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: -8px; width: 2px; background: var(--gray-200); }
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center;
  font-weight: 700; font-family: var(--font-display); font-size: 0.85rem; z-index: 2;
}
.timeline-chapter-num {
  position: absolute; right: 0; top: -1rem; font-family: var(--font-display); font-weight: 700;
  font-size: 5rem; color: var(--gray-100); z-index: 0; letter-spacing: -0.04em; pointer-events: none;
}
.timeline-item h3 { margin-bottom: 0.4rem; }
.timeline-item p { max-width: 560px; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2.2rem; height: 100%; }
.quote-card .stars { color: var(--green); margin-bottom: 1rem; font-size: 0.85rem; letter-spacing: 0.15em; }
.quote-card blockquote { font-size: 1.05rem; color: var(--navy); font-weight: 500; line-height: 1.55; margin: 0 0 1.6rem; }
.quote-card .who { display: flex; align-items: center; gap: 0.85rem; }
.quote-card .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--gray-50); display: grid; place-items: center; color: var(--blue); font-weight: 700; font-family: var(--font-display); border: 1px solid var(--gray-200); }
.quote-card .who .nm { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.quote-card .who .rl { font-size: 0.82rem; color: var(--slate); }

/* ---------- Clients ---------- */
.client-logo {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem 1.2rem;
  color: var(--gray-500); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  filter: grayscale(1); opacity: 0.75; transition: all 0.35s var(--ease);
}
.client-logo:hover { filter: grayscale(0); opacity: 1; color: var(--navy); }
.client-logo i { font-size: 1.4rem; }

/* ---------- Stats strip ---------- */
.stat-block .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem,4vw,3.2rem); color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.stat-block .l { color: var(--slate); font-size: 0.92rem; margin-top: 0.5rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy); border-radius: 28px; padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ""; position: absolute; right: -6%; top: -40%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35), rgba(37,99,235,0) 65%);
}
.cta-banner h2, .cta-banner p { color: #fff; position: relative; z-index: 2; }
.cta-banner p { color: rgba(255,255,255,0.72); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: clamp(3rem,6vw,5.5rem) 0 clamp(2.5rem,5vw,4rem); }
.breadcrumb-acros { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.2rem; font-size: 0.85rem; color: var(--slate); }
.breadcrumb-acros li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--gray-300); }
.breadcrumb-acros a { color: var(--slate); }
.breadcrumb-acros a:hover { color: var(--blue); }
.breadcrumb-acros li[aria-current] { color: var(--navy); font-weight: 500; }

/* ---------- Forms ---------- */
.form-acros label { font-weight: 500; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.4rem; display: block; }
.form-acros .req { color: var(--blue); }
.form-acros .form-control, .form-acros .form-select {
  border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.95rem;
  color: var(--navy); background: #fff; width: 100%; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-family: var(--font-body);
}
.form-acros .form-control::placeholder { color: var(--gray-300); }
.form-acros .form-control:focus, .form-acros .form-select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.form-acros textarea.form-control { min-height: 130px; resize: vertical; }
.file-drop {
  border: 1.5px dashed var(--gray-300); border-radius: 12px; padding: 1.6rem; text-align: center;
  color: var(--slate); background: var(--gray-50); cursor: pointer; transition: all 0.25s var(--ease);
}
.file-drop:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.file-drop i { font-size: 1.6rem; color: var(--blue); margin-bottom: 0.4rem; }
.file-drop .fname { font-weight: 600; color: var(--navy); }
.consent-row { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 1rem 1.1rem; }
.consent-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; cursor: pointer; }
.consent-row label { font-size: 0.88rem; color: var(--slate); font-weight: 400; margin: 0; }
.field-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.is-invalid { border-color: #dc2626 !important; }
.is-invalid ~ .field-error { display: block; }
.form-success {
  display: none; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.4); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--navy);
}
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
.form-success i { font-size: 2.4rem; color: var(--green); margin-bottom: 0.8rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.info-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-card i { width: 46px; height: 46px; border-radius: 12px; background: rgba(37,99,235,0.08); color: var(--blue); display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.info-card h4 { font-size: 1rem; margin: 0 0 0.15rem; color: var(--navy); font-family: var(--font-display); }
.info-card p { margin: 0; font-size: 0.92rem; }
.map-placeholder {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); background: var(--gray-50);
  min-height: 340px; display: grid; place-items: center; position: relative; color: var(--slate);
  background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 42px 42px;
}
.map-placeholder .pin { text-align: center; }
.map-placeholder .pin i { font-size: 2.4rem; color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: clamp(3.5rem,6vw,5.5rem) 0 2rem; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 1.2rem; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer .f-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer .brand { color: #fff; }
.footer .brand .brand-mark { background: #fff; color: var(--navy); }
.footer .brand small { color: rgba(255,255,255,0.55); }
.footer-newsletter input {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; border-radius: 999px;
  padding: 0.75rem 1.1rem; width: 100%; font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter input:focus { outline: none; border-color: var(--blue); }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; color: #fff; transition: all 0.3s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.6rem; font-size: 0.85rem; }
.footer-bottom a { margin-left: 1rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 24px; right: 24px; left: auto; z-index: 1080; max-width: 420px;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 1.6rem; box-shadow: 0 30px 60px rgba(15,23,42,0.35);
  transform: translateY(140%); transition: transform 0.6s var(--ease); border: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; }
.cookie-banner p { color: rgba(255,255,255,0.72); font-size: 0.86rem; margin-bottom: 1.1rem; }
.cookie-banner p a { color: var(--green); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.btn-cookie-accept { background: var(--green); border-color: var(--green); color: var(--navy); }
.btn-cookie-accept:hover { transform: translateY(-2px); color: var(--navy); }
.btn-cookie-reject, .btn-cookie-custom { background: transparent; border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-cookie-reject:hover, .btn-cookie-custom:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.cookie-prefs { margin-top: 1rem; display: none; }
.cookie-prefs.show { display: block; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.cookie-pref-row .switch { position: relative; width: 40px; height: 22px; }
.cookie-pref-row input { opacity: 0; width: 0; height: 0; }
.cookie-pref-row .slider { position: absolute; inset: 0; background: rgba(255,255,255,0.2); border-radius: 999px; cursor: pointer; transition: 0.3s; }
.cookie-pref-row .slider::before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.cookie-pref-row input:checked + .slider { background: var(--green); }
.cookie-pref-row input:checked + .slider::before { transform: translateX(18px); }
.cookie-pref-row input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) { .cookie-banner { right: 12px; left: 12px; bottom: 12px; max-width: none; } }

/* ---------- Reveal animations (safe: visible by default) ---------- */
.reveal { opacity: 1; transform: none; }
html.reveal-anim .reveal:not(.is-visible) { opacity: 0; transform: translateY(32px); }
html.reveal-anim .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.divider-line { height: 1px; background: var(--gray-200); border: 0; }
.badge-soft { background: rgba(37,99,235,0.08); color: var(--blue); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 600; display: inline-block; }
.badge-green { background: rgba(34,197,94,0.12); color: #15803d; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 2rem; margin-bottom: 0.9rem; color: var(--slate); }
.list-check li i { position: absolute; left: 0; top: 4px; color: var(--green); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 2000; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .updated { display: inline-block; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.82rem; color: var(--slate); margin-bottom: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--gray-200); padding: 0.8rem 1rem; text-align: left; }
.prose th { background: var(--gray-50); color: var(--navy); font-family: var(--font-display); font-weight: 600; }
.error-hero { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 20vw, 14rem); line-height: 1; letter-spacing: -0.05em; color: var(--gray-100); }

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