/* ==========================================================================
   ABC Tour — base layer: design tokens, reset, typography, layout helpers.
   Visual language: neumorphism (soft extruded surfaces) after the UI-kit
   reference, recoloured to the blue-dragon logo (royal blue → violet).
   ========================================================================== */

:root {
  /* Surfaces — neumorphism only works when raised items share the page colour */
  --surface: #e9ecf6;
  --surface-hi: #f5f7fd;
  --surface-lo: #dfe3f1;
  --shadow-dark: 193 200 224;   /* rgb triplets so alpha can vary */
  --shadow-light: 255 255 255;

  /* Ink */
  --ink: #1b1f3b;
  --ink-2: #464c74;
  --ink-3: #5f6590;

  /* Dark indigo panels (the reference's dark cards) */
  --panel: #252a50;
  --panel-2: #2f3560;
  --panel-3: #3b4272;
  --on-panel: #f3f5ff;
  --on-panel-2: #b9bee3;

  /* Brand accents — logo blues + reference violet */
  --accent: #2d5bff;
  --accent-text: #2147db;
  --accent-2: #8e3cff;
  --sky: #5b95fa;
  --cyan: #4bb8ee;
  --navy: #0b2f80;
  --grad: linear-gradient(135deg, #2d5bff 0%, #5b4dff 52%, #8e3cff 100%);
  --grad-cool: linear-gradient(135deg, #4bb8ee 0%, #2d5bff 100%);
  --glow: 0 12px 26px -8px rgb(70 82 255 / .6);

  --wa: #25d366;
  --wa-dark: #0f8a47;
  --success: #12a87a;

  /* Shape */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --pill: 999px;

  /* Elevation — paired dark (bottom-right) + light (top-left) shadows */
  --raise-sm: 4px 4px 10px rgb(var(--shadow-dark) / .9), -4px -4px 10px rgb(var(--shadow-light));
  --raise: 8px 8px 20px rgb(var(--shadow-dark) / .95), -8px -8px 20px rgb(var(--shadow-light));
  --raise-lg: 18px 18px 44px rgb(var(--shadow-dark)), -16px -16px 40px rgb(var(--shadow-light));
  --inset: inset 5px 5px 12px rgb(var(--shadow-dark)), inset -5px -5px 12px rgb(var(--shadow-light));
  --inset-sm: inset 3px 3px 7px rgb(var(--shadow-dark)), inset -3px -3px 7px rgb(var(--shadow-light));
  --panel-shadow: 16px 20px 44px -14px rgb(37 42 80 / .5), -10px -10px 28px rgb(var(--shadow-light) / .9);
  --panel-inset: inset 3px 3px 8px rgb(8 10 30 / .5), inset -2px -2px 6px rgb(255 255 255 / .06);

  /* Type */
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.2rem, 1.08rem + .55vw, 1.45rem);
  --fs-xl: clamp(1.55rem, 1.25rem + 1.4vw, 2.2rem);
  --fs-2xl: clamp(1.95rem, 1.4rem + 2.5vw, 3.1rem);
  --fs-hero: clamp(2.35rem, 1.45rem + 4vw, 4.3rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 88px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }  /* :where() = zero specificity, so components can set their own padding */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
::selection { background: rgb(45 91 255 / .22); }

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

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

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--panel); color: var(--on-panel); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section + .section { padding-top: 0; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, .75rem); }

/* ---------- Typography helpers ---------- */
.section-title { font-size: var(--fs-2xl); font-weight: 800; }
.section-lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 62ch; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
