/* ============================================================
   EDUSION — foundation
   tokens · reset · typography · primitives · nav · footer
   ============================================================ */

/* Sans text uses the device's own UI font (SF Pro on Apple devices, Segoe UI on Windows, Roboto on Android).
   SF Pro is never bundled or downloaded: Apple's licence does not allow it on the web. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- type: Noto Sans Devanagari sits after each site font, so Latin is unchanged and
     Hindi/Marathi text uses it (its stylesheet is only loaded on hi/mr pages) ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial,
    'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', sans-serif;
  --font-serif: 'Instrument Serif', 'Noto Sans Devanagari', 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Noto Sans Devanagari', ui-monospace, SFMono-Regular, monospace;
  /* ---- surface & ink ------------------------------------ */
  --canvas: #f4f5f7;
  --canvas-2: #eef1f6;
  --canvas-3: #e7ebf2;
  --paper: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);

  --ink: #0b0d12;
  --ink-2: #5b6575;
  --ink-3: #636c7c;
  --ink-4: #b3bac6;

  --hair: rgba(11, 13, 18, 0.08);
  --hair-2: rgba(11, 13, 18, 0.14);
  --hair-3: rgba(11, 13, 18, 0.22);

  /* ---- signal ------------------------------------------- */
  --accent: #2f6bff;
  --accent-deep: #1c4ed0;
  --accent-soft: rgba(47, 107, 255, 0.1);
  --accent-soft-2: rgba(47, 107, 255, 0.18);
  --accent-hair: rgba(47, 107, 255, 0.32);

  /* ---- states (muted, never candy) ---------------------- */
  --sage: #5e7a63;
  --amber: #a9812f;
  --clay: #ad5f4a;

  /* ---- dark band ---------------------------------------- */
  --dark: #07080c;
  --dark-2: #0e1017;
  --dark-hair: rgba(255, 255, 255, 0.1);
  --dark-hair-2: rgba(255, 255, 255, 0.18);
  --dark-ink-2: rgba(255, 255, 255, 0.6);

  /* ---- geometry ----------------------------------------- */
  --r-lg: 18px;
  --r-card: 14px;
  --r-sm: 10px
  ;
  --r-xs: 8px;
  --r-pill: 999px;
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  /* ---- elevation (hairlines first, shadow as air) ------- */
  --lift-1: 0 1px 2px rgba(11, 13, 18, 0.04);
  --lift-2: 0 12px 24px -18px rgba(11, 13, 18, 0.16), 0 2px 4px -2px rgba(11, 13, 18, 0.04);
  --lift-3: 0 20px 40px -24px rgba(11, 13, 18, 0.12), 0 4px 10px -6px rgba(11, 13, 18, 0.05);
  --lift-4: 0 40px 80px -40px rgba(11, 13, 18, 0.22), 0 8px 20px -12px rgba(11, 13, 18, 0.07);

  /* ---- physics ------------------------------------------ */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-io: cubic-bezier(0.6, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;
  --t-slow: 600ms;

  /* ---- type scale (fluid) ------------------------------- */
  --fs-hero: clamp(2.75rem, 7.2vw, 5.6rem);
  --fs-h2: clamp(2rem, 4.3vw, 3.35rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-lead: clamp(1rem, 1.25vw, 1.175rem);
  --fs-body: 0.9375rem;
  --fs-sm: 0.8125rem;
  --fs-xs: 0.6875rem;

  --sp-section: clamp(88px, 12vw, 172px);

  /* ---- iOS-style type scale (size / line height) ---------
     tight tracking on the big sizes, a touch of air on the small ones */
  --ios-large: 700 34px/41px var(--font-sans);
  --ios-title1: 700 28px/34px var(--font-sans);
  --ios-title2: 700 22px/28px var(--font-sans);
  --ios-title3: 600 20px/25px var(--font-sans);
  --ios-headline: 600 17px/22px var(--font-sans);
  --ios-body: 400 17px/24px var(--font-sans);
  --ios-callout: 400 16px/22px var(--font-sans);
  --ios-subhead: 400 15px/21px var(--font-sans);
  --ios-footnote: 400 13px/18px var(--font-sans);
  --ios-caption: 400 12px/16px var(--font-sans);
  --ios-caption2: 500 11px/14px var(--font-sans);
  --track-large: -0.022em;
  --track-title: -0.018em;
  --track-body: -0.012em;
  --track-small: 0;

  /* ---- motion: springs ----------------------------------
     cubic-bezier fallbacks here; real spring curves (CSS linear(), sampled from a damped
     spring) replace them below where the browser supports linear(). */
  --spring-smooth: cubic-bezier(0.2, 0.9, 0.25, 1);
  --spring: cubic-bezier(0.25, 1.1, 0.4, 1);
  --spring-bouncy: cubic-bezier(0.3, 1.45, 0.45, 1);
  --spring-snappy: cubic-bezier(0.2, 0.9, 0.3, 1);
  --dur-snappy: 0.3s;
  --dur-spring: 0.5s;
  --dur-sheet: 0.5s;
  /* notes sidebar and side panels: open/close. The panel moves for --sb-dur; its contents fade out in
     --sb-fade-out (faster than the close) and fade in for --sb-fade-in after --sb-fade-delay (once mostly open) */
  --sb-dur: 280ms;
  --sb-dur-drawer: 300ms;
  --sb-ease: var(--spring-smooth);
  --sb-fade-out: 110ms;
  --sb-fade-in: 170ms;
  --sb-fade-delay: 110ms;
  --dur-bouncy: 0.6s;
  --dur-fade: 0.25s;

  /* ---- materials (translucent bars and sheets) ---------- */
  --material-bar: rgba(255, 255, 255, 0.84);
  --material-sheet: rgba(242, 243, 247, 0.95);
  --material-blur: saturate(180%) blur(20px);
  --grouped-bg: #f2f3f7;
  --grouped-cell: #ffffff;
  --separator: rgba(60, 60, 67, 0.18);
  --fill-segment: rgba(118, 118, 128, 0.12);

  /* ---- depth: one hue family, kept subtle ----------------
     The accent shades blue to indigo (about 8deg of hue); ink shades near-black to slate.
     Every gradient has a solid twin (--accent-deep, --ink, --paper) for fallbacks and the
     contrast profiles, which swap these for flat colour (a11y.css). */
  --grad-accent: linear-gradient(180deg, #4079ff 0%, #2f63f6 55%, #2b58ea 100%);
  --grad-accent-soft: linear-gradient(180deg, #f5f8ff 0%, #eaf0fd 100%);
  --grad-ink: linear-gradient(180deg, #0b0d12 10%, #3a4150 100%);
  --grad-surface: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  --grad-canvas: linear-gradient(180deg, #f3f6fa 0%, #eceff5 100%);
  --grad-dark: linear-gradient(180deg, #2b303b 0%, #11141a 100%);
  --grad-accent-text: linear-gradient(180deg, #3a72ff 0%, #2849dc 100%);

  /* inner light: a soft top highlight only (the "glossy" part). No bottom shade: a 1px dark inset
     under the gradient read as a hard line along the bottom of every pill. --lo-inset stays as a no-op. */
  --hi-inset: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  --hi-inset-soft: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --lo-inset: 0 0 #0000;

  /* layered soft shadows: contact + near + far, never one hard drop */
  --shadow-1: 0 1px 1px rgba(11, 13, 18, 0.04), 0 2px 4px -1px rgba(11, 13, 18, 0.05), 0 6px 12px -6px rgba(11, 13, 18, 0.08);
  --shadow-2: 0 1px 2px rgba(11, 13, 18, 0.04), 0 6px 14px -6px rgba(11, 13, 18, 0.08), 0 18px 36px -18px rgba(11, 13, 18, 0.14);
  --shadow-3: 0 1px 2px rgba(11, 13, 18, 0.04), 0 10px 24px -10px rgba(11, 13, 18, 0.1), 0 34px 68px -30px rgba(22, 34, 72, 0.22);
  /* button drops: wide, blurred and pulled in (negative spread), so no tight contact shadow draws a line */
  --shadow-accent: 0 6px 16px -6px rgba(40, 82, 230, 0.42), 0 2px 6px -2px rgba(40, 82, 230, 0.2);
  --shadow-accent-hover: 0 10px 22px -8px rgba(40, 82, 230, 0.48), 0 3px 8px -3px rgba(40, 82, 230, 0.22);
  --shadow-dark: 0 6px 16px -6px rgba(11, 13, 18, 0.34), 0 2px 6px -2px rgba(11, 13, 18, 0.14);
  --shadow-dark-hover: 0 10px 22px -8px rgba(11, 13, 18, 0.4), 0 3px 8px -3px rgba(11, 13, 18, 0.16);

  /* rings: the decorative halo around hero CTAs (off: stacked on the drop shadow it drew an edge), and the
     keyboard focus ring (solid accent + halo) */
  --ring-halo: 0 0 #0000;
  --ring-focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent), 0 0 0 8px rgba(47, 107, 255, 0.16);

  /* glass: translucent fill, blur, 1px white inner edge, soft shadow */
  --glass-fill: rgba(255, 255, 255, 0.66);
  --glass-fill-strong: rgba(255, 255, 255, 0.82);
  --glass-blur: saturate(170%) blur(18px);
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 0 0 1px rgba(11, 13, 18, 0.05), 0 1px 2px rgba(11, 13, 18, 0.04), 0 10px 30px -14px rgba(22, 34, 72, 0.2);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* response 0.42s, damping 1.0: no overshoot (sheets, drawers, widths) */
    --spring-smooth: linear(0, 0.0374, 0.1231, 0.2296, 0.3401, 0.4453, 0.5405, 0.6237, 0.6948, 0.7544, 0.8036, 0.8439, 0.8765, 0.9027, 0.9237, 0.9403, 0.9534, 0.9638, 0.9719, 0.9783, 0.9832, 0.987, 0.99, 0.9923, 0.9941, 0.9955, 0.9965, 0.9974, 1);
    /* response 0.42s, damping 0.82: about 1% overshoot (default) */
    --spring: linear(0, 0.0223, 0.0787, 0.1564, 0.2456, 0.3389, 0.4313, 0.5191, 0.6, 0.6728, 0.7369, 0.7923, 0.8394, 0.8787, 0.911, 0.9371, 0.9578, 0.9738, 0.9861, 0.9951, 1.0016, 1.006, 1.0088, 1.0104, 1.011, 1.011, 1.0106, 1.0098, 1.0088, 1.0078, 1.0068, 1.0058, 1.0048, 1.004, 1.0032, 1.0026, 1);
    /* response 0.42s, damping 0.62: about 8% overshoot (card flip, quiz feedback, press release) */
    --spring-bouncy: linear(0, 0.0228, 0.0828, 0.1682, 0.2692, 0.3777, 0.4869, 0.5921, 0.6896, 0.7769, 0.8528, 0.9168, 0.9688, 1.0096, 1.0401, 1.0614, 1.0749, 1.0818, 1.0835, 1.0811, 1.0758, 1.0684, 1.0599, 1.0508, 1.0417, 1.033, 1.0249, 1.0178, 1.0115, 1.0063, 1.0021, 0.9988, 0.9964, 0.9947, 0.9936, 0.9931, 0.993, 0.9933, 0.9937, 0.9944, 0.9951, 0.9959, 0.9966, 0.9973, 1);
    /* response 0.3s, damping 0.9 (small things: indicators, toggles) */
    --spring-snappy: linear(0, 0.0251, 0.0871, 0.17, 0.2626, 0.3572, 0.4486, 0.5337, 0.6107, 0.6789, 0.7381, 0.7888, 0.8315, 0.8671, 0.8964, 0.9202, 0.9394, 0.9547, 0.9667, 0.9761, 0.9833, 0.9887, 0.9928, 0.9957, 1);
  }
}
/* translucent materials go solid: when asked, on slow devices (html.lite), and in high contrast */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --material-bar: #ffffff;
    --material-sheet: #f2f3f7;
    --material-blur: none;
    --glass-fill: #ffffff;
    --glass-fill-strong: #ffffff;
    --glass-blur: none;
  }
}
html.lite {
  --material-bar: #ffffff;
  --material-sheet: #f2f3f7;
  --material-blur: none;
  --glass-fill: #ffffff;
  --glass-fill-strong: #ffffff;
  --glass-blur: none;
}
/* no backdrop-filter at all: solid fill instead of an unreadable see-through one */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass-fill: #ffffff;
    --glass-fill-strong: #ffffff;
  }
}

/* ============================================================ reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
/* kerning + ligatures where they show (headings); body text keeps the fast default for cheap phones */
:is(h1, h2, h3, .display) {
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.dark-band :focus-visible {
  outline-color: #fff;
}

/* thin, quiet scrollbars where scrollable */
.thin-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--hair-3) transparent;
}
.thin-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.thin-scroll::-webkit-scrollbar-thumb {
  background: var(--hair-2);
  border-radius: 99px;
}

/* ============================================================ layout */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--sp-section);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}
/* visually hidden, still read by screen readers */
.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;
}

/* ============================================================ type */
.display {
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-wrap: balance;
}
.serif,
.serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  /* Instrument Serif has no Devanagari: those letters fall back to Noto Sans Devanagari (see --font-serif),
     kept upright instead of a fake slant */
  font-synthesis: none;
}
/* Devanagari has no italic serif here: keep the fallback sans a touch heavier so it still reads as a heading */
.serif-accent:is(:lang(hi), :lang(mr)) {
  font-weight: 500;
  letter-spacing: 0;
}
.thin {
  font-weight: 300;
  color: var(--ink-2);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.013em;
  max-width: 46ch;
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker .rule {
  height: 1px;
  width: 34px;
  background: var(--hair-2);
}
.sec-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(44px, 6vw, 76px);
}
.sec-head h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
}
.sec-head .lead {
  max-width: 52ch;
}

/* ============================================================ primitives */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: 7px 14px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---- buttons: one glossy recipe, three finishes ------------------------------
   .btn is the dark finish by default; .btn-primary (accent), .btn-dark and .btn-ghost
   also work on their own, on any element. Paint comes from --btn-* so a modifier only
   swaps variables. Hover lifts brightness and grows the shadow, press sinks 1px,
   keyboard focus gets the halo ring (a transparent outline keeps it in forced colours). */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn,
.btn-dark {
  --btn-bg: var(--ink);
  --btn-img: var(--grad-dark);
  --btn-fg: #fff;
  --btn-shadow: var(--hi-inset), var(--shadow-dark);
  --btn-shadow-hover: var(--hi-inset), var(--shadow-dark-hover);
}
.btn-primary {
  --btn-bg: var(--accent-deep);
  --btn-img: var(--grad-accent);
  --btn-fg: #fff;
  --btn-shadow: var(--hi-inset), var(--shadow-accent);
  --btn-shadow-hover: var(--hi-inset), var(--shadow-accent-hover);
}
.btn-ghost,
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.55);
  --btn-img: none;
  --btn-fg: var(--ink);
  --btn-shadow: var(--hi-inset-soft), inset 0 0 0 1px var(--hair-2);
  --btn-shadow-hover: var(--hi-inset-soft), inset 0 0 0 1px var(--hair-3), var(--shadow-1);
}
.btn--invert {
  --btn-bg: #fff;
  --btn-img: var(--grad-surface);
  --btn-fg: var(--ink);
  --btn-shadow: var(--hi-inset-soft), var(--shadow-1);
  --btn-shadow-hover: var(--hi-inset-soft), var(--shadow-2);
}
:is(.btn, .btn-primary, .btn-dark, .btn-ghost) {
  background-color: var(--btn-bg);
  background-image: var(--btn-img);
  /* the gradient covers the border box: with the default padding-box origin it repeats under the
     1px transparent border and shows a light/dark seam along the bottom edge */
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  transition: transform 0.16s var(--ease-out), filter var(--t-fast) linear, box-shadow var(--t-mid) var(--ease-out),
    opacity 0.2s linear, color var(--t-fast) linear;
}
:is(.btn, .btn-primary, .btn-dark, .btn-ghost):hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: var(--btn-shadow-hover);
}
:is(.btn, .btn-primary, .btn-dark, .btn-ghost):active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow: var(--btn-shadow);
  transition-duration: 0.06s;
}
:is(.btn, .btn-primary, .btn-dark, .btn-ghost):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--btn-shadow), var(--ring-focus);
}
.btn--ghost,
.btn-ghost {
  border-color: transparent;
}
.btn .arrow {
  transition: transform var(--t-mid) var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn--sm {
  padding: 9px 16px;
  font-size: var(--fs-sm);
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}
/* the key CTAs only (hero, final band): a white circle holding the arrow, inset evenly (6px) on the right */
.btn-arrow {
  padding-block: 6px;
  padding-right: 6px;
  padding-left: 24px;
  gap: 14px;
  line-height: 1.2;
}
.btn-arrow .arrow {
  flex: none;
  align-self: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 9.5px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  stroke-width: 2.2;
  /* a soft lift only; no tight contact shadow under the circle */
  box-shadow: 0 2px 6px -2px rgba(11, 13, 18, 0.22);
}
.btn-arrow:hover .arrow {
  transform: translateX(2px);
}
.btn-arrow .arrow {
  order: 2;
}

/* ---- glass: frosted fill + white inner edge + soft shadow; solid where blur is off */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}

/* ---- gradient ink for large headlines. Solid --ink is the fallback; muted second
   clauses (.thin, .soft) keep their flat grey, so two-tone headings stay two-tone. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html:not([data-a11y-contrast]) .grad-text {
    background-image: var(--grad-ink);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  html:not([data-a11y-contrast]) .grad-text :is(.thin, .soft) {
    -webkit-text-fill-color: var(--ink-2);
  }
}

/* ---- small parts */
/* a blue-gradient circle holding a white check */
.check-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-deep) var(--grad-accent);
  color: #fff;
  box-shadow: var(--hi-inset), 0 1px 2px rgba(26, 52, 170, 0.25);
}
.check-dot svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}
/* tiny grey pill: New / Soon / On roadmap */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(11, 13, 18, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink-3);
  font: 500 10px/14px var(--font-sans);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* soft blurred clouds at the bottom corners of a section: static, never interactive */
.clouds {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.clouds::before,
.clouds::after {
  content: '';
  position: absolute;
  bottom: -22%;
  width: 56%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 160, 255, 0.34), rgba(120, 160, 255, 0));
  filter: blur(40px);
}
.clouds::before {
  left: -14%;
}
.clouds::after {
  right: -14%;
  bottom: -26%;
  background: radial-gradient(closest-side, rgba(110, 130, 245, 0.28), rgba(110, 130, 245, 0));
}
/* on the dark band: fainter, and lifted off the bottom edge so the next section meets no glow */
.dark-band .clouds::before,
.dark-band .clouds::after {
  bottom: 2%;
  opacity: 0.2;
}
html.a11y-focusmode .clouds,
html[data-a11y-contrast] .clouds {
  display: none;
}

/* keyboard affordance: ⏎ appears on focus, desktop only */
.btn .kbd {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.7);
  margin-left: 2px;
}
.btn--invert .kbd,
.btn--ghost .kbd {
  border-color: var(--hair-2);
  color: var(--ink-3);
}
@media (hover: hover) and (min-width: 900px) {
  .btn:focus-visible .kbd {
    display: inline-block;
  }
}

.card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-3);
}

/* status dot */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ink-4);
  flex: none;
}
.dot--ready {
  background: var(--sage);
}
.dot--work {
  background: var(--amber);
  animation: dotPulse 1.4s var(--ease-io) infinite;
}
.dot--error {
  background: var(--clay);
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ============================================================ logo */
.mark {
  display: block;
  overflow: visible;
  color: var(--ink);
}
.mark .e-stroke,
.mark .e-bar {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .ring {
  fill: none;
  stroke: currentColor;
  opacity: 0.5;
}
.mark .spark {
  fill: var(--accent);
}
.on-dark .mark,
.dark-band .mark {
  color: #fff;
}
.on-dark .mark .spark,
.dark-band .mark .spark {
  fill: #fff;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  padding-top: 1px;
  transform: translateY(0.5px);
  white-space: nowrap;
}
.dark-band .wordmark,
.on-dark .wordmark {
  color: #fff;
  -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.9);
  color: transparent;
}

/* first-load stroke draw of the E: the spine draws, then the middle bar */
.logo-draw .e-stroke {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: drawS 700ms var(--ease-out) 120ms forwards;
}
.logo-draw .e-bar {
  stroke-dasharray: 7;
  stroke-dashoffset: 7;
  animation: drawS 360ms var(--ease-out) 560ms forwards;
}
.logo-draw .ring {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawS 800ms var(--ease-out) 260ms forwards;
}
.logo-draw .spark {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.2) rotate(-40deg);
  opacity: 0;
  animation: sparkIn 520ms var(--ease-out) 720ms forwards;
}
@keyframes drawS {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes sparkIn {
  60% {
    opacity: 1;
    transform: scale(1.25) rotate(6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* ============================================================ nav */
/* One quiet row: brand · plain text links · language · one CTA.
   Transparent over the hero; a light frosted bar once the page scrolls. */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 14px var(--gutter) 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: padding var(--t-mid) var(--ease-out);
}
/* a floating frosted-glass bar (the .glass recipe): lighter over the hero, a touch more
   opaque once the page scrolls under it */
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 1080px);
  min-height: 54px;
  padding: 7px 7px 7px 18px;
  border-radius: 18px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  transition: background var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.nav-wrap.is-stuck {
  padding-top: 10px;
}
.nav-wrap.is-stuck .nav {
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-edge), 0 0 0 1px rgba(11, 13, 18, 0.06), 0 1px 2px rgba(11, 13, 18, 0.04),
    0 14px 34px -16px rgba(22, 34, 72, 0.24);
}
/* the CTA sits inside the bar's rounded corner */
.nav__btn {
  border-radius: 12px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  border-radius: 8px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  border-radius: 8px;
  transition: color var(--t-fast) linear;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--ink);
}
/* active section: darker text + a small accent dot underneath (no filled pill) */
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity var(--t-fast) linear, transform var(--t-mid) var(--ease-out);
}
.nav__link[aria-current='true'] {
  color: var(--ink);
}
.nav__link[aria-current='true']::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.nav__link:focus-visible,
.nav__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav__btn {
  padding: 9px 16px;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .nav__links {
    display: none;
  }
  .nav {
    justify-content: space-between;
    padding-left: 14px;
  }
}
@media (max-width: 420px) {
  .nav-wrap {
    padding-inline: 10px;
  }
  .nav {
    gap: 8px;
  }
}

/* ============================================================ footer */
.footer {
  background: var(--dark);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) 0 26px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--dark-hair);
}
.footer__note {
  margin-top: 18px;
  color: var(--dark-ink-2);
  font-size: var(--fs-sm);
  max-width: 30ch;
}
.footer h4 {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer li + li {
  margin-top: 10px;
}
.footer li a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast) linear;
}
.footer li a:hover {
  color: #fff;
}
.footer__bottom {
  padding-top: 22px;
  /* keep the last row clear of the floating accessibility button */
  padding-bottom: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--fs-sm);
}
.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer__made:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.footer__made:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.footer__heart {
  width: 16px;
  height: 16px;
}
.footer__flag {
  flex: none;
  border-radius: 2.5px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}
@media (max-width: 820px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ============================================================ reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal='blur'] {
  filter: blur(6px);
  transform: translateY(10px);
  transition-property: opacity, transform, filter;
}
[data-reveal='blur'].is-in {
  filter: blur(0);
}
[data-reveal='scale'] {
  transform: translateY(18px) scale(0.985);
}
[data-reveal='scale'].is-in {
  transform: none;
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .btn:active:not(:disabled) {
    transform: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
  }
  [data-reveal] {
    transform: none !important;
    filter: none !important;
  }
}

/* ============================================================ languages */
/* globe button + small list (a <details> disclosure; works without JS) */
.lang-switch {
  position: relative;
  display: inline-block;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-switch__btn::-webkit-details-marker {
  display: none;
}
.lang-switch__btn:hover,
.lang-switch[open] .lang-switch__btn {
  color: var(--ink);
  border-color: var(--hair-3);
}
.lang-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* quiet variant (landing nav): no border, no fill until hover */
.lang-switch--quiet .lang-switch__btn {
  min-height: 34px;
  padding: 0 9px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-3);
}
.lang-switch--quiet .lang-switch__btn:hover,
.lang-switch--quiet[open] .lang-switch__btn {
  border-color: transparent;
  background: rgba(11, 13, 18, 0.05);
  color: var(--ink);
}
.lang-switch__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lang-pop {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 40px -18px rgba(11, 13, 18, 0.35);
}
.lang-switch--end .lang-pop {
  right: 0;
}
.lang-switch--start .lang-pop {
  left: 0;
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.lang-opt:hover,
.lang-opt:focus {
  background: var(--hair);
}
.lang-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.lang-opt[aria-current='true'] {
  font-weight: 600;
}
.lang-check {
  color: var(--accent);
  flex-shrink: 0;
}
/* footer row of languages */
.lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-inline .lang-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.lang-inline .lang-opt {
  width: auto;
  min-height: 32px;
  padding: 2px 10px;
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
  opacity: 0.8;
}
.lang-inline .lang-opt[aria-current='true'] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang-inline .lang-check {
  display: none;
}

/* Devanagari (Hindi/Marathi pages, and Devanagari content such as a Hindi brief on any page):
   vowel signs (matras) sit above and below the line, so tight line-heights clip them */
/* letter-spacing pulls Devanagari conjuncts and vowel signs apart: never track it */
:is(:lang(hi), :lang(mr)) {
  letter-spacing: 0 !important;
}
html body :is(h1, h2, h3, h4, .display):is(:lang(hi), :lang(mr)) {
  line-height: 1.3;
}
html body :is(button, .btn, [role='tab'], .lang-opt, input, textarea, select):is(:lang(hi), :lang(mr)) {
  line-height: 1.5;
}
