/* ==========================================================================
   Abhishek Mehta — Design System
   Shared styles for every page. Plain CSS, no build step.
   Sections: fonts · tokens · themes · base · layout · components · pages ·
             utilities · motion
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Instrument Serif", ui-serif, Georgia, Cambria, "Times New Roman", serif;

  /* Brand colours (vivid — fills, glows, nodes) */
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --indigo: #6366f1;
  --orange: #f97316;

  /* Fluid type scale */
  --fs-display: clamp(2.55rem, 1.1rem + 6.1vw, 6rem);
  --fs-h1: clamp(2.35rem, 1.45rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.32vw, 1.25rem);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2rem);
  --section-y: clamp(4rem, 2rem + 6vw, 7.5rem);
  --header-h: 82px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ---------- Themes ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080a;
  --bg-raised: #0e0e11;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.085);
  --surface-solid: #111114;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.15);
  --heading: #fafafa;
  --text: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-subtle: #8a8a94;
  --nav-bg: rgba(16, 16, 20, 0.6);
  --nav-bg-solid: rgba(16, 16, 20, 0.94);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --dot: rgba(255, 255, 255, 0.075);
  --btn-bg: #fafafa;
  --btn-fg: #09090b;
  --btn-bg-hover: #ffffff;
  --btn-glow: rgba(255, 255, 255, 0.4);
  --input-bg: rgba(255, 255, 255, 0.03);
  --spot: rgba(255, 255, 255, 0.055);
  --spot-border: rgba(255, 255, 255, 0.32);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --aurora-opacity: 0.6;
  --noise-opacity: 0.03;
  /* Text-safe accent tints (WCAG AA on the dark background) */
  --t-blue: #8ab4f8;
  --t-red: #f28b82;
  --t-yellow: #fdd663;
  --t-green: #81c995;
  --t-indigo: #a5b4fc;
  --t-orange: #fdba74;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --bg-raised: #ffffff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: rgba(9, 9, 11, 0.035);
  --surface-3: rgba(9, 9, 11, 0.065);
  --surface-solid: #ffffff;
  --border: rgba(9, 9, 11, 0.09);
  --border-strong: rgba(9, 9, 11, 0.16);
  --heading: #09090b;
  --text: #3f3f46;
  --text-muted: #52525b;
  --text-subtle: #66666f;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-bg-solid: rgba(255, 255, 255, 0.96);
  --card-bg: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.88));
  --card-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 10px 30px -18px rgba(9, 9, 11, 0.18);
  --dot: rgba(9, 9, 11, 0.085);
  --btn-bg: #09090b;
  --btn-fg: #fafafa;
  --btn-bg-hover: #27272a;
  --btn-glow: rgba(9, 9, 11, 0.3);
  --input-bg: #ffffff;
  --spot: rgba(66, 133, 244, 0.06);
  --spot-border: rgba(66, 133, 244, 0.5);
  --shadow-lg: 0 24px 60px -28px rgba(24, 24, 27, 0.28);
  --aurora-opacity: 0.32;
  --noise-opacity: 0.018;
  --t-blue: #1a73e8;
  --t-red: #d93025;
  --t-yellow: #b45309;
  --t-green: #188038;
  --t-indigo: #4f46e5;
  --t-orange: #c2410c;
}

/* Accent helpers: set --accent (fill) and --accent-text (AA text) */
.accent-blue { --accent: var(--blue); --accent-text: var(--t-blue); }
.accent-red { --accent: var(--red); --accent-text: var(--t-red); }
.accent-yellow { --accent: var(--yellow); --accent-text: var(--t-yellow); }
.accent-green { --accent: var(--green); --accent-text: var(--t-green); }
.accent-indigo { --accent: var(--indigo); --accent-text: var(--t-indigo); }
.accent-orange { --accent: var(--orange); --accent-text: var(--t-orange); }

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--surface-3) transparent;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Film grain — dithers large gradients to prevent banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

::selection {
  background: rgba(66, 133, 244, 0.35);
  color: var(--heading);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2 * var(--gutter), 900px);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section--flush-top {
  padding-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stack {
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.g-logo {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  max-width: 1140px;
  height: 58px;
  margin-inline: auto;
  padding: 0 9px 0 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-radius: var(--r-pill);
  background: var(--nav-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -14px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled .nav-shell {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px -18px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .nav-shell {
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 10px 30px -16px rgba(9, 9, 11, 0.2);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--heading);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.82;
}

.footer-brand .brand {
  padding: 2px 0;
  border-radius: var(--r-xs);
  font-size: 1.5rem;
}

.brand-dot {
  color: var(--blue);
}

[data-theme="light"] .brand-dot {
  color: var(--t-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--heading);
  background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
  color: var(--heading);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--heading);
  background: var(--surface-2);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  pointer-events: auto;
  max-width: 1140px;
  margin: 8px auto 0;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--nav-bg-solid);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
  animation: menu-in 0.28s var(--ease-out);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-menu a:not(.btn) .icon {
  width: 1rem;
  height: 1rem;
  color: var(--text-subtle);
}

.mobile-menu a:not(.btn):hover,
.mobile-menu a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--heading);
}

.mobile-menu .btn {
  margin-top: 8px;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-actions .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: var(--btn-h);
  padding: 0 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: 0 10px 30px -12px var(--btn-glow);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--heading);
}

.btn-secondary:hover {
  background: var(--surface-3);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--heading);
  background: var(--surface-2);
}

.btn-sm {
  --btn-h: 38px;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  --btn-h: 50px;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:hover .icon-arrow-right,
.link-arrow:hover .icon-arrow-right {
  transform: translateX(3px);
}

.btn:hover .icon-arrow-up-right,
.link-arrow:hover .icon-arrow-up-right {
  transform: translate(2px, -2px);
}

.btn:hover .icon-arrow-down {
  transform: translateY(2px);
}

.btn:hover .icon-arrow-left {
  transform: translateX(-3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--heading);
}

.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-out);
}

/* ---------- Eyebrows, pills, tags ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Four Google-coloured dots */
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 24px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 8px 0 0 var(--red), 16px 0 0 var(--yellow), 24px 0 0 var(--green);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 2.2s var(--ease-out) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  80%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.code-inline {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--accent-text, var(--t-blue));
}

/* ---------- Cards & spotlight ---------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), background-color 0.3s ease;
}

.card-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

/* Cursor-following glow (fill + border). --mx / --my are set from main.js */
.spotlight::before,
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spotlight::after {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 45%);
}

.spotlight::before {
  z-index: 2;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--spot-border), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.spotlight:hover::before,
.spotlight:hover::after {
  opacity: 1;
}

/* Soft accent wash in a card corner */
.card-glow {
  position: absolute;
  inset: auto -20% -45% auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, var(--blue)) 22%, transparent), transparent);
  pointer-events: none;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-text, var(--heading));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.card-title {
  margin-top: 1.25rem;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

.card-text {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-text strong {
  color: var(--heading);
  font-weight: 600;
}

/* App tile (add-on icon) */
.app-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 78%, #fff) 0%, var(--accent) 50%, color-mix(in srgb, var(--accent) 72%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 26px -12px color-mix(in srgb, var(--accent) 85%, transparent);
}

.app-tile .icon {
  width: 26px;
  height: 26px;
}

.app-tile--sm {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.app-tile--sm .icon {
  width: 21px;
  height: 21px;
}

.app-tile--lg {
  width: 80px;
  height: 80px;
  border-radius: 24px;
}

.app-tile--lg .icon {
  width: 38px;
  height: 38px;
}

/* ---------- Section headings ---------- */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin-top: 1.1rem;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.section-head--center .section-lead {
  margin-inline: auto;
  max-width: 40rem;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -0.015em;
}

.text-gradient {
  background: linear-gradient(100deg, #8ab4f8 0%, #4285f4 42%, #34a853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Italic glyphs overhang their advance box on both sides (the "g" of
     "great.", the "A" of "Add-ons"); background-clip: text only paints inside
     the padding box, so pad all round and cancel it with negative margins. */
  padding: 0.06em 0.16em 0.18em;
  margin: 0 -0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

[data-theme="light"] .text-gradient {
  background-image: linear-gradient(100deg, #4285f4 0%, #1a73e8 45%, #188038 100%);
}

/* ---------- Backgrounds ---------- */
.bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 38%, #000 15%, transparent 72%);
}

/* main.js redraws the same dots on a canvas so they can ripple under the cursor;
   the CSS pattern above stays as the no-JS / reduced-motion fallback. */
.dot-grid.is-live {
  background-image: none;
}

.dot-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  left: 50%;
  top: -26%;
  width: min(1500px, 150vw);
  height: 72%;
  opacity: var(--aurora-opacity);
  filter: blur(64px);
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 20% 58%, rgba(66, 133, 244, 0.9), transparent 78%),
    radial-gradient(closest-side at 41% 42%, rgba(234, 67, 53, 0.6), transparent 78%),
    radial-gradient(closest-side at 60% 46%, rgba(251, 188, 5, 0.55), transparent 78%),
    radial-gradient(closest-side at 81% 58%, rgba(52, 168, 83, 0.75), transparent 78%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora-drift {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-48%) translateY(3%) scale(1.05);
  }

  100% {
    transform: translateX(-52%) translateY(-2%) scale(0.97);
  }
}

.section-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(640px 420px at var(--glow-x, 10%) var(--glow-y, 20%), color-mix(in srgb, var(--accent, var(--blue)) 10%, transparent), transparent 70%);
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin-top: 1.75rem;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.hero-title .line {
  display: block;
}

.hero-lead {
  margin-top: 1.6rem;
  max-width: 37rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stats {
  width: 100%;
  max-width: 1000px;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat dd {
  font-family: var(--font-mono);
  font-size: clamp(1.65rem, 1.2rem + 1.3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--heading);
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* Inline numbers (chips, tile labels) share the same mono face. */
.num {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .stat {
    padding: 1.1rem 1.15rem;
  }
}

/* ---------- Home: logo strip ---------- */
.logos {
  position: relative;
  padding-block: 2.6rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, var(--surface), transparent);
}

.logos-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.logo-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2.25rem, 1rem + 5vw, 5.5rem);
  list-style: none;
  padding: 0;
}

.logo {
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.logo-row li:hover .logo {
  opacity: 1;
  transform: translateY(-2px);
}

.logo-google {
  height: 30px;
}

.logo-wipro {
  height: 46px;
}

.logo-zomato {
  height: 24px;
}

.logo-searce {
  height: 24px;
}

/* Brand logos keep their original colours. Logos with a dark wordmark (Wipro,
   Searce) also ship an "-on-dark" file with a white wordmark; only the file
   that matches the active theme is displayed. */
.logo-on-light {
  display: none;
}

[data-theme="light"] .logo-on-dark {
  display: none;
}

[data-theme="light"] .logo-on-light {
  display: block;
}

/* ---------- Home: bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.bento > * {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.bento > .span-4 {
  grid-column: span 4;
}

.bento .card-foot {
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento > * {
    grid-column: span 1;
  }

  .bento > .span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento > *,
  .bento > .span-4 {
    grid-column: auto;
  }
}

.big-stat {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--heading);
}

.big-stat small {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.flow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.flow-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--t-blue) 50%, transparent 0) 0 0 / 12px 2px repeat-x;
  opacity: 0.8;
  animation: flow-dash 0.9s linear infinite;
}

@keyframes flow-dash {
  to {
    background-position: 12px 0;
  }
}

.mini-prompt {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mini-prompt .icon {
  width: 1rem;
  height: 1rem;
  color: var(--t-blue);
}

.caret {
  width: 2px;
  height: 1.05em;
  margin-left: -0.3rem;
  border-radius: 1px;
  background: var(--t-blue);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.tile-row {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.tile-row .app-tile + .app-tile {
  margin-left: -10px;
}

.tile-row .app-tile {
  border: 2px solid var(--bg);
}

.tile-row-label {
  margin-left: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tile-row-label strong {
  display: block;
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* ---------- Home: timeline (scroll-driven; logic in main.js) ---------- */
.timeline {
  position: relative;
  margin-left: 1rem;
}

@media (min-width: 768px) {
  .timeline {
    margin-left: 3rem;
  }
}

.timeline-track,
.timeline-fill {
  position: absolute;
  left: 0;
  width: 2px;
  border-radius: var(--r-pill);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-track {
  background: var(--border-strong);
}

.timeline-fill {
  height: 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--indigo) 36%, var(--red) 68%, var(--orange) 100%) no-repeat;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.65);
  transition: height 75ms ease-out;
}

.timeline-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 3rem;
  }
}

.timeline-node {
  position: absolute;
  left: 0;
  top: 2rem;
  z-index: 1;
  width: 10px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 rgba(0, 0, 0, 0);
  transform: translateX(-50%) scale(0.9);
  transform-origin: center;
  transition: all 0.5s ease-in-out;
}

.timeline-item.show .timeline-node {
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px currentColor;
  transform: translateX(-50%) scale(1.1);
}

.timeline-item.show:hover .timeline-node {
  box-shadow: 0 0 0 4px var(--bg), 0 0 30px currentColor;
  transform: translateX(-50%) scale(1.2);
}

.timeline-content {
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), border-color 0.3s ease;
}

.js .timeline-content {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

@media (min-width: 768px) {
  .js .timeline-content {
    transform: translateX(40px) scale(0.95);
  }
}

.js .timeline-item.show .timeline-content {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
}

.tl-logo {
  height: 26px;
  width: auto;
}

.tl-logo.logo-wipro {
  height: 40px;
}

.tl-logo.logo-zomato,
.tl-logo.logo-searce {
  height: 22px;
}

.tl-date {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}

.tl-role {
  margin-top: 1.3rem;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  letter-spacing: -0.028em;
}

.tl-points {
  margin-top: 1.1rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text);
}

.tl-points li {
  position: relative;
  padding-left: 1.35rem;
}

.tl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}

.tl-points strong {
  color: var(--heading);
  font-weight: 600;
}

.timeline-content .tags {
  margin-top: 1.4rem;
}

.tl-watermark {
  position: absolute;
  right: -2.2rem;
  bottom: -2.6rem;
  width: 11rem;
  height: 11rem;
  z-index: -1;
  opacity: 0.05;
  filter: grayscale(1) brightness(2);
  pointer-events: none;
}

[data-theme="light"] .tl-watermark {
  filter: grayscale(1) brightness(0);
  opacity: 0.04;
}

/* ---------- Home: contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-list {
  margin-top: 2.25rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.contact-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-text, var(--heading));
}

.contact-icon .icon {
  width: 20px;
  height: 20px;
}

.contact-meta {
  min-width: 0;
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.contact-value {
  display: block;
  margin-top: 0.1rem;
  font-weight: 500;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.contact-item .chev {
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-subtle);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

a.contact-item:hover .chev {
  color: var(--heading);
  transform: translate(2px, -2px);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea.input {
  height: auto;
  min-height: 150px;
  padding: 0.85rem 1rem;
  line-height: 1.55;
  resize: vertical;
}

.input::placeholder {
  color: var(--text-subtle);
  opacity: 0.85;
}

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.18);
}

/* Honeypot for spam bots — visually hidden, not focusable */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.form-sub {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 22rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.social {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.5rem;
}

.social .icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
}

.social .icon-btn .icon {
  width: 17px;
  height: 17px;
}

.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--heading);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 5.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}

.page-hero .aurora {
  top: -62%;
  height: 92%;
  opacity: calc(var(--aurora-opacity) * 0.75);
}

.page-hero .dot-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 0%, #000 10%, transparent 70%);
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero--center .page-hero-inner {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  margin-top: 1.1rem;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-lead {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.page-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero--center .page-actions {
  justify-content: center;
}

.breadcrumb {
  margin-bottom: 1.75rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.page-hero--center .breadcrumb ol {
  justify-content: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  opacity: 0.5;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--heading);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}

.meta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-hero--center .meta-row {
  justify-content: center;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  max-width: 100%;
  padding: 0.3rem 0.85rem;
  border-radius: 16px;
  line-height: 1.35;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}

.meta-chip .icon {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
}

.meta-chip .star {
  color: var(--yellow);
}

/* ---------- Add-ons ---------- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

@media (max-width: 760px) {
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-strip .stat:nth-child(3) {
    border-left: 0;
  }

  .summary-strip .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

.summary-strip--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .summary-strip--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-strip--3 .stat:nth-child(3) {
    border-left: 1px solid var(--border);
  }

  .summary-strip--3 .stat:nth-child(n + 3) {
    border-top: 0;
  }

  .summary-strip--3 .stat {
    padding: 1rem 0.95rem;
  }
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1040px) {
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .addon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.addon-card {
  display: flex;
  flex-direction: column;
}

.addon-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.addon-name {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

/* Add-on names (cards, page titles, support guides): Geist Mono with the same
   gradient as "Cloud Architect." */
.addon-wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.addon-source {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.addon-stats {
  margin-top: 1.5rem;
  display: flex;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.addon-stat {
  flex: 1;
  padding: 0.8rem 1rem;
}

.addon-stat + .addon-stat {
  border-left: 1px solid var(--border);
}

.addon-stat-value {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.addon-stat-value .icon {
  width: 1rem;
  height: 1rem;
  color: var(--yellow);
}

.addon-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.addon-desc {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.addon-card .check-list {
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.addon-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.addon-actions .btn {
  padding: 0 0.9rem;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
}

.check-list .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18em;
  color: var(--accent-text, var(--t-green));
}

.check-list--lg li {
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cta-band-title {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.cta-band-text {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Add-on detail */
.detail-hero-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.page-hero--center .detail-hero-head {
  flex-direction: column;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.panel-title .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--accent-text);
}

.panel-kicker {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.panel-body {
  margin-top: 1.5rem;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.15rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  min-height: 1.9rem;
  padding-left: 2.85rem;
  padding-top: 0.15rem;
  color: var(--text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.05rem;
  bottom: -1.1rem;
  width: 1px;
  background: var(--border-strong);
  transform: translateX(-50%);
}

.steps strong {
  color: var(--heading);
  font-weight: 600;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 28%, transparent);
  background: color-mix(in srgb, var(--accent, var(--blue)) 8%, transparent);
  font-size: 0.925rem;
  color: var(--text);
}

.callout .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12em;
  color: var(--accent-text, var(--t-blue));
}

.callout strong {
  color: var(--heading);
}

/* ---------- Legal & long-form ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.toc-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.toc-list {
  list-style: none;
  padding: 0;
  display: grid;
  border-left: 1px solid var(--border);
}

.toc-list a {
  display: block;
  margin-left: -1px;
  padding: 0.42rem 0 0.42rem 1rem;
  border-left: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--heading);
}

.toc-list a.is-active {
  color: var(--heading);
  border-left-color: var(--blue);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    display: none;
  }
}

.prose {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--text);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 1em;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--t-blue);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--t-blue) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  color: var(--heading);
  font-weight: 600;
}

.legal-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.legal-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  letter-spacing: -0.028em;
}

.legal-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-muted);
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

@media (max-width: 760px) {
  .summary-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.summary-card {
  padding: 1.25rem;
}

.summary-card .feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.summary-card .feature-icon .icon {
  width: 19px;
  height: 19px;
}

.summary-card h2,
.summary-card h3 {
  margin-top: 0.9rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.summary-card p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-foot {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.email-big {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.card-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guide-card .guide-name {
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.015em;
}

.guide-card .guide-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-card .chev {
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-subtle);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.guide-card:hover .chev {
  color: var(--heading);
  transform: translateX(3px);
}

.subhead {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--heading);
  border-radius: var(--r-md);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-subtle);
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-muted);
}

.faq-body a {
  color: var(--t-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease-out);
}

.toast .icon {
  width: 1rem;
  height: 1rem;
}

.toast.is-leaving {
  animation: toast-out 0.25s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Utilities ---------- */
.mt-sm {
  margin-top: 1rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.mt-lg {
  margin-top: 2.5rem;
}

.mt-xl {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* ---------- Motion ---------- */
.rise {
  animation: rise 0.9s var(--ease-out) both;
}

.rise-1 {
  animation-delay: 0.06s;
}

.rise-2 {
  animation-delay: 0.14s;
}

.rise-3 {
  animation-delay: 0.22s;
}

.rise-4 {
  animation-delay: 0.3s;
}

.rise-5 {
  animation-delay: 0.4s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.16s;
}

.reveal-d3 {
  transition-delay: 0.24s;
}

.reveal-d4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .timeline-content {
    opacity: 1;
    transform: none;
  }

  .aurora {
    animation: none;
  }
}
