/* =========================================================
   iQuator V2 — Design System
   ========================================================= */

:root {
  --brand-50:  #eef6ff;
  --brand-100: #d9ebff;
  --brand-200: #b6d6ff;
  --brand-300: #85b8ff;
  --brand-400: #5690ff;
  --brand-500: #2f6bff;
  --brand-600: #1a4ce0;
  --brand-700: #163cb3;
  --brand-800: #153493;
  --brand-900: #0f2a73;

  --accent: #00b894;
  --accent-2: #ffb703;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow:    0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --text: #0b1220;
  --text-muted: #5a6478;
  --text-soft: #7a8396;
  --border: #e6eaf2;
  --border-strong: #d3d9e5;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --brand: var(--brand-600);
  --brand-soft: var(--brand-50);
  --grid-color: rgba(15, 23, 42, 0.06);
  --glow: rgba(47, 107, 255, 0.18);

  /* Global page atmosphere (visible but calm; all pages) */
  --page-bloom-a: rgba(47, 107, 255, 0.18);
  --page-bloom-b: rgba(0, 184, 148, 0.1);
  --page-bloom-c: rgba(22, 60, 180, 0.08);
  --page-bg-tile: url("../img/BG.svg");
  --page-bg-tile-opacity: 0.62;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg: #07090f;
  --bg-alt: #0b0f1a;
  --bg-elev: #0f1422;
  --surface: #0f1422;
  --surface-2: #141a2b;
  --text: #eef2fa;
  --text-muted: #a8b0c3;
  --text-soft: #7a8396;
  --border: #1d2538;
  --border-strong: #2a344c;
  --nav-bg: rgba(11, 15, 26, 0.72);
  --brand: #6fa0ff;
  --brand-soft: rgba(47, 107, 255, 0.12);
  --grid-color: rgba(255, 255, 255, 0.06);
  --glow: rgba(111, 160, 255, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow:    0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  --page-bloom-a: rgba(111, 160, 255, 0.14);
  --page-bloom-b: rgba(0, 184, 148, 0.08);
  --page-bloom-c: rgba(47, 107, 255, 0.1);
  --page-bg-tile: url("../img/BG.svg");
  --page-bg-tile-opacity: 0.38;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background-color: var(--bg);
  transition: background-color .3s var(--ease);
}

/*
 * Page fill: soft blooms + tiled BG.svg (geometric pattern).
 * Pattern sits under in-flow content; ::before keeps tile opacity theme-tunable.
 */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 125% 85% at 50% -22%, var(--page-bloom-a), transparent 56%),
    radial-gradient(ellipse 88% 70% at 100% 0%, var(--page-bloom-b), transparent 52%),
    radial-gradient(ellipse 78% 58% at 0% 100%, var(--page-bloom-c), transparent 50%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--page-bg-tile);
  background-size: 48px 48px;
  background-repeat: repeat;
  opacity: var(--page-bg-tile-opacity);
  transition: opacity .35s var(--ease);
}
img, picture, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-500); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1em; color: var(--text-muted); }

::selection { background: var(--brand); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.max-w-prose { max-width: 65ch; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-color);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--glow); color: var(--btn-color); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  --btn-bg: var(--brand);
  --btn-color: #fff;
  border-color: var(--brand);
}

.btn-light {
  --btn-bg: #fff;
  --btn-color: var(--brand-700);
}

.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-word { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

/* Nav CTA (compact) */
a.btn.nav-cta,
.btn.nav-cta {
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 4px;
}

/* Day / night switch (day-light-night-switch-button; light mode = .on) */
.icon-btn.theme-toggle {
  width: 58px;
  height: 30px;
  min-width: 58px;
  min-height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn.theme-toggle:hover {
  border-color: transparent;
  color: inherit;
  box-shadow: none;
}
.theme-toggle {
  position: relative;
  overflow: visible;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:active {
  outline: none;
  box-shadow: none;
}
.theme-toggle::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.day-night-switch-wrap {
  display: block;
  width: 56px;
  height: 26px;
  overflow: hidden;
  position: relative;
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
#theme-day-night-root.day-night-switch {
  width: 350px;
  height: 160px;
  border-radius: 100px;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -80px 0 0 -175px;
  transform: scale(0.16);
  transform-origin: center center;
  transition: all 0.7s;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 2px 2px 0 #848484;
}
.day-night-switch.off { background: #14101c; }
.day-night-switch.on { background: #f7f0f3; }
.day-night-switch .handler {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 20px;
  transition: all 0.7s;
  z-index: 10;
}
.day-night-switch .handler:before {
  content: "";
  display: inline-block;
  transition: all 0.7s;
  position: absolute;
}
.day-night-switch.off .handler {
  left: 20px;
  background: radial-gradient(#fffffc, #edff63);
  border-radius: 100%;
  box-shadow: 0 0 5px #f3ff96;
}
.day-night-switch.off .handler:before {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  background: #14101c;
  top: -2%;
  left: 25%;
}
.day-night-switch.on .handler {
  left: calc(100% - 140px);
  background: linear-gradient(120deg, #ffa60f, #febd4f);
  border-radius: 100%;
  box-shadow: 0 0 10px #feb334;
}
.day-night-switch.on .handler:before {
  width: 0;
  background: linear-gradient(120deg, #ffa60f, #febd4f);
  height: 0;
  top: 25%;
  left: 70%;
  opacity: 0;
  visibility: hidden;
}
.day-night-switch.on .scenery.night {
  right: -100%;
  bottom: -100%;
  opacity: 0;
}
.day-night-switch.on .scenery.night:after { left: -50px; top: -50px; }
.day-night-switch.off .scenery.night { right: 0; bottom: 0; }
.day-night-switch.off .scenery.day {
  left: -100%;
  bottom: -100%;
  opacity: 0;
}
.day-night-switch.off .scenery.day:after { left: -50px; top: -50px; }
.day-night-switch.on .scenery.day { left: 0; bottom: 0; }
.day-night-switch .scenery {
  opacity: 1;
  transition: all 0.7s;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.day-night-switch .scenery span { display: inline-block; position: absolute; }
.day-night-switch .scenery:after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 50px;
  height: 50px;
  background: #938753;
  border-radius: 50%;
  left: 15px;
  top: -15px;
  transition: all 0.7s;
}
.day-night-switch .dots {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  right: 23%;
  top: 38%;
  z-index: 3;
}
.day-night-switch .dots:after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  right: 200%;
  top: -185%;
  position: absolute;
}
.day-night-switch .dots:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  right: -45%;
  top: -295%;
  position: absolute;
}
.day-night-switch .bubble {
  width: 160px;
  height: 160px;
  background: linear-gradient(110deg, #ffffff85, #19920c9e);
  border-radius: 50%;
  right: -16px;
  bottom: -18px;
  box-shadow: 0 0 18px #d7ffd3fa, inset 0 0 18px #84ff7759;
  z-index: 2;
}
.day-night-switch .bubble:after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 65px;
  height: 115px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  right: 71px;
  bottom: -50px;
  z-index: 2;
}
.day-night-switch .bush {
  width: 160px;
  height: 130px;
  background: linear-gradient(121deg, #1cac0f, #115e03);
  border-radius: 50%;
  right: 0%;
  bottom: -43%;
  z-index: 1;
}
.day-night-switch .bush:before {
  content: " ";
  display: inline-block;
  width: 100px;
  height: 90px;
  background: linear-gradient(121deg, #1cac0f, #115e03);
  border-radius: 50%;
  right: 73%;
  bottom: 3%;
  position: absolute;
  z-index: 3;
}
.day-night-switch .bush:after {
  content: " ";
  display: inline-block;
  width: 105px;
  height: 250px;
  background: linear-gradient(121deg, #c7e474, #98e844);
  border-radius: 50%;
  right: -11%;
  bottom: -60%;
  position: absolute;
  z-index: 4;
}
.day-night-switch .scenery.day { transform: rotateY(-180deg); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: currentColor;
  position: relative;
  transition: all .3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor;
  transition: all .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); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 16px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--brand-soft); color: var(--brand); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 960px) {
  .hero {
    overflow: visible;
  }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, var(--glow), transparent 60%),
    radial-gradient(500px 250px at 10% 85%, rgba(0, 184, 148, .18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  z-index: -1;
  animation: drift 20s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .7; }
}

.hero h1 span.grad {
  background: linear-gradient(120deg, var(--brand-500), var(--accent) 60%, var(--brand-500));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to { background-position: 200% 0; }
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 520px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 6px;
}

/* Hero visual — square stage + absolute image & floats (same behavior all breakpoints) */
.hero-visual {
  position: relative;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}
@media (max-width: 960px) {
  .hero-visual {
    margin-left: auto;
    margin-right: auto;
    max-width: min(400px, 100%);
  }
}
@media (max-width: 480px) {
  .hero-visual {
    max-width: min(340px, 100%);
  }
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.hero-visual .halo {
  position: absolute;
  inset: 8%;
  background: conic-gradient(from 180deg, var(--brand-500), var(--accent), var(--brand-500));
  border-radius: 50%;
  filter: blur(30px);
  opacity: .35;
  animation: spin 18s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-visual .card-main {
  position: absolute;
  inset: 10% 8% 18% 12%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: auto;
  max-width: none;
  margin: 0;
}

.hero-visual .card-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-floats {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  display: block;
}

.hero-visual .float-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  position: absolute;
  width: auto;
  max-width: min(220px, 46%);
  pointer-events: auto;
  flex-shrink: 0;
  animation: floaty 6s var(--ease) infinite;
  will-change: transform;
}
.hero-visual .float-1 {
  top: 5%;
  left: 2%;
  right: auto;
  bottom: auto;
  animation-duration: 6s;
  animation-delay: 0s;
}
.hero-visual .float-2 {
  bottom: 20%;
  left: 2%;
  right: auto;
  top: auto;
  animation-duration: 7s;
  animation-direction: reverse;
  animation-delay: -1s;
}
.hero-visual .float-3 {
  bottom: 10%;
  right: 4%;
  left: auto;
  top: auto;
  animation-duration: 8s;
  animation-direction: normal;
  animation-delay: -2s;
}
.hero-visual .float-card .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-visual .float-card span:last-child {
  line-height: 1.25;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero-visual .halo {
    display: none;
  }
  .hero-visual .card-main {
    inset: 11% 9% 19% 13%;
  }
  .hero-visual .float-card {
    max-width: min(200px, 50%);
    padding: 10px 12px;
    font-size: 0.78rem;
    box-shadow: var(--shadow);
  }
  .hero-visual .float-card .icon {
    width: 30px;
    height: 30px;
  }
  .hero-visual .float-1 {
    top: 4%;
    left: 1%;
  }
  .hero-visual .float-2 {
    bottom: 18%;
    left: 1%;
  }
  .hero-visual .float-3 {
    bottom: 9%;
    right: 2%;
  }
}

@media (max-width: 480px) {
  .hero-visual .card-main {
    inset: 12% 10% 20% 12%;
  }
  .hero-visual .float-card {
    max-width: min(178px, 52%);
    padding: 9px 10px;
    font-size: 0.74rem;
    gap: 8px;
  }
  .hero-visual .float-card .icon {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(50px, 7vw, 90px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 50% 0%, var(--glow), transparent 70%);
  z-index: -1;
}
.page-hero .eyebrow { margin-inline: auto; }

/* ---------- Section header ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.feature-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: transform .3s var(--ease);
}
.feature-card:hover .icon-wrap { transform: scale(1.08) rotate(-4deg); }
.feature-card .icon-wrap svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* Partner card */
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), transparent 40%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card:hover::before { opacity: 1; }
.partner-card .logo {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.partner-card .logo img {
  max-height: 70px; width: auto;
  filter: grayscale(100%) contrast(0.9);
  opacity: .85;
  transition: all .4s var(--ease);
}
.partner-card:hover .logo img { filter: none; opacity: 1; transform: scale(1.04); }
.partner-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.partner-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Tabs (About) ---------- */
.tabs { max-width: 860px; margin: 0 auto; }
.tab-list {
  display: flex; gap: 8px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .25s var(--ease);
  min-width: 150px;
}
.tab-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; animation: fadeUp .4s var(--ease-out); }
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 10px; width: 2px;
  background: linear-gradient(to bottom, var(--brand) 0%, var(--border) 100%);
}
.timeline-item { position: relative; padding: 0 0 40px 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; top: 4px; left: -28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 700;
  color: var(--brand); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-item p { margin: 0; }

/* ---------- Marquee (global partners) ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px;
  min-height: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.marquee-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
}
.marquee-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 120px;
}
.marquee-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.marquee-mark svg {
  display: block;
  border-radius: 10px;
}
.marquee-item--mark {
  min-width: 118px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Split feature ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse > .split-media { order: 2; }
@media (max-width: 900px) { .split.reverse > .split-media { order: 0; } }

.split-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.split-media:hover img { transform: scale(1.04); }

.bullet-list { list-style: none; padding: 0; margin: 0 0 24px; }
.bullet-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.98rem;
}
.bullet-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f6bff'><path d='M7.629 13.314l-3.193-3.193 1.414-1.414 1.779 1.779 4.95-4.95 1.414 1.414z'/></svg>") center / 14px no-repeat;
}

/* ---------- CTA band (simple CSS waves footer) ---------- */
.cta-band {
  --cta-wave-foam: var(--bg);
  position: relative;
  padding: 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--brand-700), var(--brand-500) 60%, var(--accent));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-band__content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px) clamp(28px, 5vw, 48px);
}
.cta-band__waves {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-bottom: -7px;
}
.cta-waves {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(72px, 12vh, 120px);
  min-height: 72px;
  max-height: 140px;
}
.cta-waves-parallax > use {
  animation: cta-wave-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.cta-waves-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.cta-waves-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.cta-waves-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.cta-waves-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: var(--cta-wave-foam);
}
@keyframes cta-wave-forever {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
@media (max-width: 768px) {
  .cta-waves {
    height: 48px;
    min-height: 48px;
    max-height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-waves-parallax > use {
    animation: none;
  }
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }

/* Checkbox (must win over .field label { display: block } and .field input { width: 100% }) */
.field label.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0;
  cursor: pointer;
}
.field .checkbox-row input[type="checkbox"] {
  width: 1.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
  border: 1px solid var(--border);
  border-radius: 4px;
  align-self: flex-start;
}
.field .checkbox-row span {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all .3s var(--ease);
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.contact-info-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info-card p { margin: 0; font-size: 0.95rem; }
.contact-info-card a { color: var(--text-muted); }
.contact-info-card a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px; font-family: var(--font-sans);
  font-weight: 700;
}
.footer p { font-size: 0.9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
  color: var(--text-muted); font-size: 0.9rem;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-list a:hover { color: var(--brand); padding-left: 4px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-soft);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Scroll to top */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: clamp(40px, 6vw, 72px) 0;
}

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-visual .float-card {
    animation: none !important;
  }
}
