/* =========================================================
   IngeniumZ Technology Limited — Site styles
   Brand system derived from the company logo:
   the infinity mark's blue → indigo → violet sweep, sampled
   from the artwork in assets/img/logo.png.
   Single stylesheet, no build step.
   Sections: 1 Tokens · 2 Reset · 3 Layout · 4 Typography
             5 Buttons · 6 Header/Nav · 7 Hero · 8 Components
             9 Footer · 10 Motion · 11 Responsive
   ========================================================= */

/* ---------- 0. Fonts ----------
   Self-hosted (SIL Open Font License — see assets/fonts/OFL-*.txt) so no
   visitor data is sent to Google. Latin subset only; the site is English. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/poppins-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink / dark surfaces — violet-black, taken from the logo's deep end */
  --ink-900: #090518;
  --ink-800: #110A2C;
  --ink-700: #1A1142;
  --ink-600: #271B5E;

  /* Light surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F8F6FD;
  --bg-tint: #F2ECFE;

  /* Text */
  --text: #17102E;
  --text-2: #3A3159;
  --muted: #675D87;
  --on-dark: #F5F2FF;
  --muted-dark: #A99CD0;

  /* Brand — sampled directly from the logo artwork, which runs
     blue -> indigo -> violet (not cyan -> magenta) */
  --brand-blue: #2CA2FC;
  --brand-blue-300: #8FCCFF;
  --brand: #7C3AED;
  --brand-700: #6425CE;
  --brand-300: #B48CFF;
  --brand-violet: #A545F7;
  --brand-violet-300: #C9A2FF;

  /* The logo gradient, reused everywhere it earns its place */
  --grad: linear-gradient(100deg, #2CA2FC 0%, #4A5BE8 40%, #7C3AED 70%, #AF5CF6 100%);
  --grad-soft: linear-gradient(100deg, #8FCCFF 0%, #A78BFA 52%, #C9A2FF 100%);

  /* Lines */
  --line: #E9E4F6;
  --line-2: #D6CDEC;
  --line-dark: rgba(255, 255, 255, 0.10);

  /* Shape */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(23, 16, 46, .06), 0 4px 14px rgba(23, 16, 46, .05);
  --sh-md: 0 12px 34px rgba(23, 16, 46, .10);
  --sh-lg: 0 28px 70px rgba(23, 16, 46, .16);

  /* Metrics */
  --maxw: 1180px;
  --gutter: 22px;
  --header-h: 92px;

  /* Type — Poppins echoes the logo's rounded geometric wordmark */
  --font-display: "Poppins", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .68, .26, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(124, 58, 237, .18); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: #fff;
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }

.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); }

.stack > * + * { margin-top: 16px; }
.center { text-align: center; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); letter-spacing: -0.038em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.55rem); letter-spacing: -0.032em; }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.015em; }
p  { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: var(--muted);
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .77rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

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

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .lead { color: var(--muted-dark); }
.section--dark .eyebrow { color: var(--brand-300); }   /* 3.5:1 -> 7.3:1 on ink */

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(105deg, #2CA2FC 0%, #5566EC 42%, #8B45EF 74%, #AF5CF6 100%);
  background-size: 160% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .34);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease);
}
.btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .44);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-tint); }

.btn-on-dark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 20px rgba(23, 16, 46, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Brand lockup — the company logo, used exactly as supplied. */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: 60px;
  width: auto;
  flex: none;
}
.site-footer .brand__logo { height: 84px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: var(--brand); background: var(--bg-tint); }
.nav a[aria-current] { color: var(--brand); font-weight: 600; }
.nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-soft);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--bg-tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(23, 16, 46, .10);
  padding: 18px var(--gutter) 30px;
  display: none;
}
.mobile-nav.is-open { display: block; animation: dropIn .28s var(--ease); }
/* :not(.btn) so the CTA keeps its own colour and has no divider rule —
   a bare `.mobile-nav a` outranks `.btn-primary` on specificity. */
.mobile-nav a:not(.btn) {
  display: block;
  padding: 15px 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:not(.btn)[aria-current] { color: var(--brand); font-weight: 600; }
.mobile-nav .btn { margin-top: 22px; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

body.nav-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 96px) 0 104px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* circuit-board grid, echoing the traces in the logo mark */
.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .58;
}
.hero__glow--a {
  width: 620px; height: 620px;
  top: -250px; left: -140px;
  background: radial-gradient(circle, rgba(44, 162, 252, .52), transparent 68%);
}
.hero__glow--b {
  width: 560px; height: 560px;
  top: -170px; right: -150px;
  background: radial-gradient(circle, rgba(165, 69, 247, .46), transparent 68%);
}
.hero__glow--c {
  width: 720px; height: 420px;
  bottom: -290px; left: 38%;
  background: radial-gradient(circle, rgba(124, 58, 237, .42), transparent 70%);
}

/* Oversized infinity watermark, the logo used as furniture */
.hero__mark {
  position: absolute;
  right: -60px;
  top: 46%;
  width: 560px;
  height: auto;
  transform: translateY(-50%);
  opacity: .16;
}


.hero__inner { position: relative; max-width: 800px; }

.hero .eyebrow {
  color: var(--brand-blue-300);
  padding: 7px 15px 7px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.hero .eyebrow::before { background: var(--grad-soft); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.235rem);
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero .btn-group { margin-bottom: 46px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--muted-dark);
  margin-bottom: 20px;
}
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- 8. Components ---------- */

/* Card */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--sh-md); }
.card h3 { margin-bottom: 11px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .link-arrow { margin-top: 18px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--brand);
  background: linear-gradient(140deg, #E9F4FE 0%, var(--bg-tint) 55%, #F1EAFE 100%);
  border: 1px solid #E4D9FA;
}
.card__icon svg { width: 24px; height: 24px; }

.card--dark {
  background: var(--ink-800);
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--muted-dark); }
.card--dark:hover { border-color: rgba(255, 255, 255, .22); }
.card--dark .card__icon {
  background: rgba(124, 58, 237, .2);
  border-color: rgba(180, 144, 255, .3);
  color: var(--brand-300);
}

/* Feature list with ticks */
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: .95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .ticks li,
.card--dark .ticks li { color: var(--muted-dark); }
.section--dark .ticks li::before,
.card--dark .ticks li::before { background-color: rgba(180, 144, 255, .18); }

/* Split (media + text) */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 62px;
  align-items: center;
}
.split--start { align-items: start; }

/* Grid children must be allowed to shrink below their min-content width,
   otherwise a wide child (code block, long token) widens the whole page. */
.grid > *, .split > *, .footer-grid > * { min-width: 0; }


/* Contact info cards */
.info-card {
  display: flex;
  gap: 17px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.info-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--brand);
}
.info-card__icon svg { width: 20px; height: 20px; }
.info-card h4 { margin-bottom: 4px; color: var(--text); }
.info-card span span, .info-card p { display: block; font-size: .935rem; color: var(--muted); }
a.info-card:hover h4 { color: var(--brand); }

/* ---------- 9. Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  color: var(--muted);
  padding: 74px 0 0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 52px;
}

.site-footer .footer-legal {
  padding: 0 0 30px;
  max-width: 78ch;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: .85;
}
.footer-legal .todo { font-style: italic; opacity: .75; }
.footer-bottom p { max-width: none; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer p { font-size: .915rem; line-height: 1.72; max-width: 34ch; }
.footer-title {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .92rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-contact li { margin-bottom: 13px; font-size: .92rem; }
.footer-contact a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--brand); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { background: var(--bg-tint); border-color: var(--brand-300); color: var(--brand); }
.socials svg { width: 17px; height: 17px; }

/* Centred card row — lets an odd number of cards finish on a balanced
   last row (3 + 2) instead of leaving one stranded in a four-column grid. */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards > * { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
@media (max-width: 900px) { .cards > * { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .cards > * { flex-basis: 100%; } }

/* ---------- Legal pages ---------- */
.page-head { padding: calc(var(--header-h) + 64px) 0 40px; background: var(--bg-soft);
             border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 12px 0 10px; }
.page-head__meta { color: var(--muted); font-size: .95rem; }
.section--policy { padding-top: 56px; }

.policy { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
.policy__summary { position: sticky; top: calc(var(--header-h) + 28px);
                   background: var(--bg-soft); border: 1px solid var(--line);
                   border-radius: var(--r); padding: 24px 22px; }
.policy__summary h2 { font-size: 1.1rem; margin-bottom: 14px; }
.policy__summary .ticks li { font-size: .9rem; margin-bottom: 10px; }

.prose { max-width: 68ch; color: var(--text-2); }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; line-height: 1.72; }
.prose ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li { margin-bottom: 7px; line-height: 1.65; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-700); }
.prose strong { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 4px 0 18px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.policy-table th, .policy-table td { text-align: left; padding: 12px 14px; vertical-align: top;
                                     border-bottom: 1px solid var(--line); }
.policy-table th { background: var(--bg-soft); color: var(--text); font-weight: 600; font-size: .86rem; }
.policy-table td:first-child { color: var(--text); font-weight: 500; width: 42%; }

@media (max-width: 900px) {
  .policy { grid-template-columns: 1fr; gap: 32px; }
  .policy__summary { position: static; }
}

/* ---------- 10. Motion ---------- */
/* Only hide content when we know scripting is available to reveal it again —
   otherwise a blocked or broken script would leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* The infinity mark draws itself in on the hero */
@keyframes markFade {
  from { opacity: 0; transform: translateY(-50%) scale(.94); }
  to   { opacity: .16; transform: translateY(-50%) scale(1); }
}
.hero__mark { animation: markFade 1.6s var(--ease) .25s both; }

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

}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split { gap: 44px; }
  .hero__mark { right: -150px; width: 460px; opacity: .12; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 70px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding: calc(var(--header-h) + 72px) 0 88px; }
  .hero__mark { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 76px; }
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .site-footer p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-group .btn { width: 100%; }
  .hero .btn-group { margin-bottom: 38px; }
  .brand__logo { height: 46px; }
  .site-footer .brand__logo { height: 68px; }
}
