/* Light is the default theme; `html[data-theme="dark"]` (set by theme.js) swaps the palette. */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-soft-strong: rgba(37, 99, 235, 0.14);
  --accent-border: rgba(37, 99, 235, 0.28);
  --on-accent: #ffffff;
  --surface-tint: rgba(15, 23, 42, 0.04);
  --surface-tint-strong: rgba(15, 23, 42, 0.08);
  --scrollbar: rgba(15, 23, 42, 0.18);
  --page-glow: rgba(37, 99, 235, 0.07);
  --page-glow-2: rgba(14, 165, 233, 0.05);
  --hero-glow-a: rgba(37, 99, 235, 0.08);
  --hero-glow-b: rgba(168, 85, 247, 0.06);
  --nav-blur-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.1);
  --accent-vocab: #6ee7b7;
  --accent-workout: #fb923c;
  --accent-otg: #60a5fa;
  --accent-peak: #43a047;
  --accent-photo: #a855f7;
  --accent-swap: #22d3ee;
  --accent-speaking: #2563eb;
  --accent-beauty: #0e7490;
  --logo-a: #7c3aed;
  --logo-b: #2563eb;
  --logo-ai: #2563eb;
  --radius: 16px;
  --page-max: 1120px;
  --app-card-width: min(18rem, 78vw);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-elevated: #141a22;
  --text: #eef2f7;
  --text-muted: #9aa8b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #5b8def;
  --accent-hover: #8ab4ff;
  --accent-text: #93c5fd;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --accent-soft-strong: rgba(91, 141, 239, 0.2);
  --accent-border: rgba(91, 141, 239, 0.35);
  --on-accent: #0c0f14;
  --surface-tint: rgba(255, 255, 255, 0.04);
  --surface-tint-strong: rgba(255, 255, 255, 0.08);
  --scrollbar: rgba(255, 255, 255, 0.14);
  --page-glow: rgba(91, 141, 239, 0.18);
  --page-glow-2: rgba(110, 231, 183, 0.08);
  --hero-glow-a: rgba(91, 141, 239, 0.22);
  --hero-glow-b: rgba(168, 85, 247, 0.16);
  --nav-blur-bg: rgba(20, 26, 34, 0.92);
  --logo-a: #8b5cf6;
  --logo-b: #60a5fa;
  --logo-ai: #60a5fa;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--page-glow), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--page-glow-2), transparent),
    var(--bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  width: min(var(--page-max), 100%);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 900px) {
  :root {
    --page-max: 1280px;
    --app-card-width: clamp(16.5rem, 24vw, 19rem);
  }
}

@media (min-width: 1200px) {
  :root {
    --page-max: 1520px;
    --app-card-width: clamp(17rem, 20vw, 19.5rem);
  }
}

@media (min-width: 1600px) {
  :root {
    --page-max: 1760px;
    --app-card-width: clamp(17.5rem, 18vw, 20rem);
  }
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.team-links {
  display: flex;
  gap: 0.5rem;
}

.team-links[hidden] {
  display: none;
}

.team-link {
  text-decoration: none;
}

.lang-toggle,
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"],
.pill-btn:hover {
  color: var(--text);
  background: var(--surface-tint-strong);
  border-color: var(--border-strong);
}

.lang-icon,
.pill-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  width: 2.25rem;
  padding: 0;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

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

.lang-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-option:hover,
.lang-option--active {
  color: var(--text);
  background: var(--accent-soft);
}

/* Sticky site header: sibling of .hero so it stays pinned for the whole page. */
.hero-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -1.5rem calc(-1 * clamp(1.25rem, 3vw, 2.5rem)) 0;
  padding: 0.75rem clamp(1.25rem, 3vw, 2.5rem);
  background: var(--nav-blur-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.btn.btn--sm {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }
}

/* Home: left panel (sticky TOC + scrollspy) beside Company → Products → Vision → Contact. */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 5.5rem);
  min-width: 0;
}

.home-main > .home-section {
  margin-top: 0;
}

.home-section {
  scroll-margin-top: 8rem;
}

.home-toc {
  display: flex;
  gap: 0.35rem;
}

.home-toc-title {
  display: none;
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.home-toc-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.home-toc-link:hover {
  color: var(--text);
  background: var(--surface-tint-strong);
}

.home-toc-link[aria-current="true"] {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: var(--accent-border);
  font-weight: 600;
}

.home-toc-count {
  margin-left: auto;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: var(--surface-tint-strong);
  border-radius: 999px;
}

/* Narrow: horizontal chip row pinned under the site header. */
@media (max-width: 1023px) {
  .home-sidebar {
    position: sticky;
    top: 4rem;
    z-index: 25;
    margin: 0 calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
    padding: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
    background: var(--nav-blur-bg);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
  }

  .home-toc {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-toc::-webkit-scrollbar {
    display: none;
  }
}

/* Wide: real left panel. */
@media (min-width: 1024px) {
  .home-layout {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 3.5rem);
    align-items: start;
  }

  .home-sidebar {
    position: sticky;
    top: 5.5rem;
  }

  .home-toc {
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .home-toc-title {
    display: block;
  }

  .home-section {
    scroll-margin-top: 5.5rem;
  }
}

.company-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .company-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.company-copy p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.company-copy p:first-child {
  font-size: 1.1rem;
  color: var(--text);
}

.company-facts {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-facts h2,
.company-facts h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.company-facts dl {
  margin: 0;
}

.company-facts dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

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

.company-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.company .vision-stats {
  margin: 2rem 0 2.5rem;
}

.company-subtitle {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.vision-pillars--spaced {
  margin-top: 2rem;
}

/* Registration / verification marks: only claims backed by the business registration certificate. */
:root {
  --verified: #047857;
  --verified-soft: rgba(4, 120, 87, 0.08);
  --verified-border: rgba(4, 120, 87, 0.28);
}

:root[data-theme="dark"] {
  --verified: #6ee7b7;
  --verified-soft: rgba(110, 231, 183, 0.08);
  --verified-border: rgba(110, 231, 183, 0.28);
}

.hero-verified {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem 0.6rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-verified:hover {
  border-color: var(--verified);
}

.hero-verified-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--verified);
}

.hero-verified-text {
  font-weight: 600;
}

.hero-verified-id {
  padding-left: 0.6rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  border-left: 1px solid var(--verified-border);
}

.trust {
  margin-top: 2.5rem;
  scroll-margin-top: 8rem;
}

@media (min-width: 1024px) {
  .trust {
    scroll-margin-top: 5.5rem;
  }
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.trust-badge {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-badge-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--verified);
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  border-radius: 50%;
}

.trust-badge-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.trust-badge h2,
.trust-badge h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.trust-badge p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}

.trust-link:hover {
  text-decoration: underline;
}

.trust-link svg {
  width: 0.9rem;
  height: 0.9rem;
}

.footer-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  margin-top: 0.75rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--verified);
  text-decoration: none;
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  border-radius: 999px;
}

.footer-verified svg {
  width: 1rem;
  height: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-verified {
    transition: none;
  }
}

/* Product grid: category chips + layered cards tinted by each app's brand color (--app-rgb). */
.app-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.app-filter {
  min-height: 2.5rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.app-filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.app-filter[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--text);
  border-color: var(--text);
  font-weight: 600;
}

:root[data-theme="dark"] .app-filter[aria-pressed="true"] {
  color: var(--bg);
}

.hero {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn--primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 6px 16px -6px var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

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

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-platforms-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-platforms ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.hero-platforms svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--text-muted);
}

/* Hero backdrop: faint grid + aurora glow, both clipped to the hero so nothing scrolls sideways. */
:root {
  --hero-grid: rgba(15, 23, 42, 0.055);
  --hero-aurora-a: rgba(37, 99, 235, 0.16);
  --hero-aurora-b: rgba(168, 85, 247, 0.14);
  --hero-aurora-c: rgba(236, 72, 153, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] {
  --hero-grid: rgba(255, 255, 255, 0.045);
  --hero-aurora-a: rgba(91, 141, 239, 0.24);
  --hero-aurora-b: rgba(168, 85, 247, 0.2);
  --hero-aurora-c: rgba(236, 72, 153, 0.1);
  --glass-bg: rgba(20, 26, 34, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  isolation: isolate;
}

/* Bleed into the .page gutter so the backdrop edge never sits flush against the copy. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -5rem calc(-1 * clamp(1.25rem, 3vw, 2.5rem)) -1rem;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 25%, transparent 75%);
}

.hero::after {
  background:
    radial-gradient(38% 48% at 12% 30%, var(--hero-aurora-a), transparent 70%),
    radial-gradient(34% 44% at 82% 35%, var(--hero-aurora-b), transparent 70%),
    radial-gradient(30% 40% at 55% 95%, var(--hero-aurora-c), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero .btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  box-shadow: 0 10px 28px -10px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero .btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -12px rgba(124, 58, 237, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero .btn--primary svg {
  transition: transform 0.2s ease;
}

.hero .btn--primary:hover svg {
  transform: translateX(3px);
}

.hero .btn--secondary {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-visual {
  display: none;
}

@media (min-width: 960px) {
  .hero-visual {
    position: relative;
    display: block;
    padding: 2rem 1.5rem;
  }

  /* Slow rotating conic glow behind the glass stage. */
  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 12% 10%;
    z-index: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 0deg,
      rgba(37, 99, 235, 0.6),
      rgba(168, 85, 247, 0.55),
      rgba(236, 72, 153, 0.5),
      rgba(249, 115, 22, 0.45),
      rgba(16, 185, 129, 0.45),
      rgba(37, 99, 235, 0.6)
    );
    filter: blur(56px);
    opacity: 0.4;
    animation: hero-spin 22s linear infinite;
  }

  :root[data-theme="dark"] .hero-visual::before {
    opacity: 0.55;
  }

  .hero-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.35rem);
    padding: clamp(1.6rem, 2.6vw, 2.4rem) clamp(1.4rem, 2.4vw, 2.2rem) clamp(1.1rem, 1.8vw, 1.5rem);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 14px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    /* --rx / --ry / --mx / --my are driven by home-motion.js on pointer move. */
    transform: perspective(1400px) rotateY(var(--ry, -5deg)) rotateX(var(--rx, 3deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Enter (scale/opacity) then one calm float (translate) for the whole stage. */
    animation:
      hero-stage-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards,
      hero-stage-float 9s ease-in-out 1s infinite;
  }

  .hero-visual:hover .hero-stage {
    --rx: 0deg;
    --ry: 0deg;
    transition-duration: 0.25s;
  }

  /* Pointer spotlight + periodic glass sheen, both under the icons. */
  .hero-stage::before,
  .hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
  }

  .hero-stage::before {
    background: radial-gradient(
      circle at var(--mx, 50%) var(--my, 0%),
      rgba(255, 255, 255, 0.55),
      transparent 45%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .hero-visual:hover .hero-stage::before {
    opacity: 1;
  }

  :root[data-theme="dark"] .hero-stage::before {
    background: radial-gradient(
      circle at var(--mx, 50%) var(--my, 0%),
      rgba(168, 140, 255, 0.22),
      transparent 45%
    );
  }

  .hero-stage::after {
    background: linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 60%
    );
    background-size: 250% 100%;
    background-position: 150% 0;
    animation: hero-sheen 7s ease-in-out 1.6s infinite;
  }

  :root[data-theme="dark"] .hero-stage::after {
    background-image: linear-gradient(
      115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 60%
    );
  }

  .hero-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem 0.55rem 0.55rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    animation:
      hero-chip-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s backwards,
      hero-float 7s ease-in-out infinite;
  }

  .hero-chip strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
  }

  .hero-chip--top {
    top: 0.25rem;
    left: -0.75rem;
  }

  .hero-chip--bottom {
    right: -0.5rem;
    bottom: 0.5rem;
    --chip-from: 0 1.25rem;
    animation-delay: 1.15s, -3.5s;
  }

  .hero-chip-icon {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 9px;
  }

  .hero-chip--bottom .hero-chip-icon {
    background: linear-gradient(135deg, #10b981, #0ea5e9);
  }

  .hero-chip-icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/*
 * Spotlight: home-motion.js puts .is-cycling on the stage and .is-active on one icon at a time.
 * Entrance uses opacity/filter/translate; spotlight uses scale/opacity/box-shadow via transitions,
 * so the two never fight over the same property.
 */
.hero-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: 0 14px 26px -16px rgba(var(--c), 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  animation: hero-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.2s + var(--i) * 60ms);
  transition:
    scale 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    filter 0.5s ease,
    box-shadow 0.5s ease;
}

.hero-stage.is-cycling img:not(.is-active) {
  opacity: 0.62;
  filter: saturate(0.75);
}

.hero-stage img.is-active {
  scale: 1.08;
  box-shadow:
    0 22px 40px -14px rgba(var(--c), 0.95),
    0 0 0 2px rgba(var(--c), 0.6),
    0 0 32px rgba(var(--c), 0.35);
}

/* Caption: active app name, index, and a progress line timed to the cycle. */
.hero-stage-caption {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding: 0.6rem 0.85rem 0.75rem;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: hero-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s backwards;
}

.hero-stage-caption-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(var(--c, 37, 99, 235));
  box-shadow: 0 0 0 4px rgba(var(--c, 37, 99, 235), 0.18);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.hero-stage-caption-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.hero-stage-caption.is-swapping .hero-stage-caption-name {
  opacity: 0;
  translate: 0 0.35rem;
}

.hero-stage-caption-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hero-stage-caption-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: rgb(var(--c, 37, 99, 235));
  transform-origin: left;
  transform: scaleX(0);
}

.hero-stage-caption.is-running .hero-stage-caption-progress {
  animation: hero-caption-progress var(--cycle, 2800ms) linear forwards;
}

.hero-stage.is-paused .hero-stage-caption-progress {
  animation-play-state: paused;
}

@keyframes hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes hero-shimmer {
  to {
    background-position: 300% 50%;
  }
}

@keyframes hero-stage-in {
  from {
    opacity: 0;
    scale: 0.94;
  }
}

@keyframes hero-pop {
  from {
    opacity: 0;
    translate: 0 14px;
    filter: blur(6px);
  }
}

@keyframes hero-stage-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes hero-caption-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-chip-in {
  from {
    opacity: 0;
    translate: var(--chip-from, 0 -1.25rem);
    scale: 0.85;
  }
}

@keyframes hero-sheen {
  0% {
    background-position: 150% 0;
  }
  35%,
  100% {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before,
  .hero-stage,
  .hero-stage::after,
  .hero-stage img,
  .hero-stage-caption,
  .hero-stage-caption-progress,
  .hero-chip,
  .hero h1 em {
    animation: none !important;
  }

  .hero-stage img,
  .hero-stage-caption-name {
    transition: none;
  }

  .hero-stage,
  .hero .btn--primary,
  .hero .btn--primary svg {
    transition: none;
  }

  .hero .btn--primary:hover,
  .hero .btn--primary:hover svg {
    transform: none;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 4.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.contact-band-copy {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 38rem;
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-band-address {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (min-width: 860px) {
  .contact-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }

  .contact-band-address {
    text-align: right;
  }

  .contact-band-actions {
    justify-content: flex-end;
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .home-toc-link,
  .app-filter {
    transition: none;
  }
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
}

/* Logo = inline mark + live DM Sans text (matches assets/brand/powerai-logo.svg) so the
   wordmark gets font hinting and stays sharp on 1x screens. Integer sizes avoid subpixel blur. */
.brand-lockup {
  --glyph: 36px;
  --word: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-lockup--sm {
  --glyph: 28px;
  --word: 21px;
  gap: 5px;
}

.brand-glyph {
  display: block;
  width: var(--glyph);
  height: var(--glyph);
  flex-shrink: 0;
}

.brand-glyph-a {
  stop-color: var(--logo-a);
}

.brand-glyph-b {
  stop-color: var(--logo-b);
}

.brand-word {
  font-size: var(--word);
  font-weight: 700;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.brand-word-ai {
  color: var(--logo-ai);
}

.brand-tagline {
  margin: 0;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-strong);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
}

.hero-eyebrow svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 42rem;
}

.hero h1 {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777, #f97316, #2563eb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 10s linear infinite;
}

:root[data-theme="dark"] .hero h1 em {
  background-image: linear-gradient(90deg, #7aa2ff, #b58cff, #f472b6, #fdba74, #7aa2ff);
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .brand-tagline {
    display: none;
  }
}

.apps {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  /* Size to content (2 rows) — do not flex-grow or the track can clip to one row. */
}

.apps-carousel {
  position: relative;
  min-width: 0;
}

.apps-scroll-btn {
  display: none;
}

@media (min-width: 640px) {
  .apps-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
  }

  .apps-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  }

  .apps-scroll-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
  }

  .apps-scroll-btn:hover:not(:disabled) {
    background: var(--surface-tint-strong);
    border-color: var(--border-strong);
  }

  .apps-scroll-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .apps-scroll-btn:disabled {
    opacity: 0.3;
    cursor: default;
    animation: none !important;
  }

  .apps-scroll-btn[hidden] {
    display: none;
  }

  .apps-scroll-btn--hint.apps-scroll-btn--prev {
    animation: apps-scroll-nudge-left 1.8s ease-in-out infinite;
  }

  .apps-scroll-btn--hint.apps-scroll-btn--next {
    animation: apps-scroll-nudge-right 1.8s ease-in-out infinite;
  }

  .apps-carousel--scrollable .apps-carousel__track {
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 1.5rem,
      #000 calc(100% - 1.5rem),
      transparent 100%
    );
  }

  .apps-carousel--scrollable.apps-carousel--at-start .apps-carousel__track {
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
  }

  .apps-carousel--scrollable.apps-carousel--at-end .apps-carousel__track {
    mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 100%);
  }

  .apps-carousel--scrollable.apps-carousel--at-start.apps-carousel--at-end .apps-carousel__track {
    mask-image: none;
  }
}

@keyframes apps-scroll-nudge-left {
  0%,
  100% {
    transform: translateX(0);
    box-shadow: 0 0 0 rgba(91, 141, 239, 0);
  }
  50% {
    transform: translateX(-5px);
    box-shadow: -6px 0 14px rgba(91, 141, 239, 0.22);
  }
}

@keyframes apps-scroll-nudge-right {
  0%,
  100% {
    transform: translateX(0);
    box-shadow: 0 0 0 rgba(91, 141, 239, 0);
  }
  50% {
    transform: translateX(5px);
    box-shadow: 6px 0 14px rgba(91, 141, 239, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-scroll-btn--hint {
    animation: none !important;
  }
}

@media (min-width: 640px) {
  .apps {
    /* Two rows of cards; extra columns scroll horizontally when needed. */
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: var(--app-card-width);
    gap: 1.25rem;
    align-items: stretch;
    /* overflow-x:auto forces overflow-y to auto (not visible) — pad so
       hover/active translateY(-3px) + selection border are not clipped. */
    overflow-x: auto;
    overflow-y: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: -0.5rem;
    margin-bottom: -0.15rem;
    scrollbar-gutter: stable;
  }

  .apps .app-card {
    width: var(--app-card-width);
    min-width: 0;
    scroll-snap-align: start;
  }

  /* Home grid: show every app at once (2 → 4 columns); carousel JS hides arrows when nothing scrolls. */
  .apps.apps-carousel__track {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
    margin: 0;
    padding: 0;
  }

  .apps.apps-carousel__track .app-card {
    width: auto;
  }

  .apps-carousel {
    display: block;
  }
}

.app-card[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .apps::-webkit-scrollbar {
    height: 6px;
  }

  .apps::-webkit-scrollbar-track {
    background: transparent;
  }

  .apps::-webkit-scrollbar-thumb {
    background: var(--scrollbar);
    border-radius: 999px;
  }

  .apps::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
  }
}

.app-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-card:hover,
  .app-card--active {
    transform: none;
    transition: none;
  }
}

.app-card--soon {
  opacity: 0.92;
}

/* Layered card: brand-tinted wash (::before), gradient hairline on hover/active (::after). */
.app-card {
  --app-rgb: 37, 99, 235;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:is(.app-card, .app-detail)[data-app="workout"] { --app-rgb: 249, 115, 22; }
:is(.app-card, .app-detail)[data-app="vocab"] { --app-rgb: 16, 185, 129; }
:is(.app-card, .app-detail)[data-app="otg"] { --app-rgb: 59, 130, 246; }
:is(.app-card, .app-detail)[data-app="photo"] { --app-rgb: 168, 85, 247; }
:is(.app-card, .app-detail)[data-app="swap"] { --app-rgb: 6, 182, 212; }
:is(.app-card, .app-detail)[data-app="peak"] { --app-rgb: 67, 160, 71; }
:is(.app-card, .app-detail)[data-app="speaking"] { --app-rgb: 37, 99, 235; }
:is(.app-card, .app-detail)[data-app="beauty"] { --app-rgb: 219, 39, 119; }

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9rem;
  z-index: -1;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(var(--app-rgb), 0.2), transparent 65%),
    linear-gradient(180deg, rgba(var(--app-rgb), 0.07), transparent);
  transition: opacity 0.25s ease;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(var(--app-rgb), 0.85), rgba(var(--app-rgb), 0.15) 45%, transparent 70%);
  -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);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.apps .app-card:hover,
.apps .app-card--active {
  border-color: rgba(var(--app-rgb), 0.35);
  box-shadow: 0 24px 48px -20px rgba(var(--app-rgb), 0.45), var(--shadow);
}

.app-card:hover::after,
.app-card--active::after {
  opacity: 1;
}

.app-status {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.app-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.app-status--available {
  color: #047857;
}

.app-status--dev {
  color: #b45309;
}

:root[data-theme="dark"] .app-status--available {
  color: #6ee7b7;
}

:root[data-theme="dark"] .app-status--dev {
  color: #fcd34d;
}

.app-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px -8px rgba(var(--app-rgb), 0.55);
  transition: transform 0.25s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.05) rotate(-2deg);
}

.app-card .app-category {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: color-mix(in srgb, rgb(var(--app-rgb)) 62%, var(--text));
  background: rgba(var(--app-rgb), 0.1);
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .app-icon,
  .app-card::before,
  .app-card::after {
    transition: none;
  }

  .app-card:hover .app-icon {
    transform: none;
  }
}

.app-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
}

:root[data-theme="dark"] .app-badge {
  color: #fcd34d;
}

.app-category {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.app-description {
  margin: 0 0 1.5rem;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.store-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

/* Neutral secondary buttons; the brand mark carries the color (Play = 4-color, Apple = text color). */
.store-btn {
  display: flex;
  min-width: 0;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.store-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: currentColor;
}

.store-btn--web .store-icon {
  color: var(--accent);
}

.store-btn-text--short {
  display: none;
}

@container (max-width: 260px) {
  .store-btn-text--long {
    display: none;
  }

  .store-btn-text--short {
    display: inline;
  }
}

.store-btn:hover {
  background: var(--surface-tint);
  border-color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.store-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.store-btn--soon {
  cursor: default;
  pointer-events: none;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
}

.store-btn--soon .store-icon {
  filter: grayscale(1);
  opacity: 0.45;
}

.store-btn--soon.store-btn--web .store-icon {
  color: currentColor;
}

.store-btn--soon:hover {
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}

:root[data-theme="dark"] .store-btn {
  box-shadow: none;
}

.app-card--expandable {
  cursor: pointer;
}

.app-card--expandable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Products master–detail: app list (3) | selected app detail (7). Stacks below 900px. */
.apps-split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .apps-split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 1.5rem;
  }

  .apps-list {
    position: sticky;
    top: 5.5rem;
  }
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

@media (max-width: 899px) {
  .apps-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .apps-list::-webkit-scrollbar {
    display: none;
  }

  .apps-list .app-card {
    flex: 0 0 13.5rem;
    scroll-snap-align: start;
  }
}

.apps-list .app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
  transform: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.apps-list .app-card::before {
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgba(var(--app-rgb), 0.16), rgba(var(--app-rgb), 0.04));
  opacity: 0;
}

.apps-list .app-card::after {
  background: linear-gradient(90deg, rgba(var(--app-rgb), 0.7), rgba(var(--app-rgb), 0.12) 60%, transparent);
}

.apps-list .app-card:hover {
  background: var(--surface-tint);
  box-shadow: none;
  transform: none;
}

.apps-list .app-card--active,
.apps-list .app-card--active:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 10px 24px -16px rgba(var(--app-rgb), 0.8);
}

.apps-list .app-card--active::before {
  opacity: 1;
}

.apps-list .app-card:hover::after {
  opacity: 0;
}

.apps-list .app-card--active::after {
  opacity: 1;
}

.apps-list .app-card-header {
  display: contents;
}

.apps-list .app-card-header > div {
  min-width: 0;
}

.apps-list .app-icon {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 8px 18px -8px rgba(var(--app-rgb), 0.6);
}

.apps-list .app-card:hover .app-icon {
  transform: none;
}

.apps-list .app-card--active .app-icon {
  transform: scale(1.06);
}

.apps-list .app-card h2 {
  display: block;
  overflow: hidden;
  font-size: 0.93rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.apps-list .app-card .app-category {
  margin-top: 0.15rem;
  padding: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: none;
}

.apps-list .app-card--active .app-category {
  color: color-mix(in srgb, rgb(var(--app-rgb)) 62%, var(--text));
}

/* In the list the status shrinks to a dot; the detail pane shows the full pill. */
.apps-list .app-status {
  position: static;
  grid-column: 3;
  grid-row: 1;
  padding: 0;
  background: none;
  border: 0;
}

.apps-list .app-status > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.apps-list .app-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.apps-list .app-description,
.apps-list .store-links {
  display: none;
}

.app-status--preview {
  color: var(--accent-text);
}

.app-card--expandable {
  cursor: pointer;
}

.app-card--expandable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-detail {
  --app-rgb: 37, 99, 235;
  min-width: 0;
  scroll-margin-top: 8rem;
}

.app-detail-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(var(--app-rgb), 0.16), transparent 65%),
    radial-gradient(55% 45% at 0% 100%, rgba(var(--app-rgb), 0.07), transparent 65%),
    var(--bg-elevated);
  border: 1px solid rgba(var(--app-rgb), 0.28);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 30px 60px -32px rgba(var(--app-rgb), 0.55), var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Oversized, blurred copy of the app icon as an ambient watermark (set via --detail-icon). */
.app-detail-inner::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -4rem;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  background: var(--detail-icon) center / cover no-repeat;
  border-radius: 30%;
  filter: blur(48px) saturate(1.3);
  opacity: 0.22;
  pointer-events: none;
}

.app-detail-inner--enter > * {
  animation: detail-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-detail-inner--enter > :nth-child(2) { animation-delay: 0.04s; }
.app-detail-inner--enter > :nth-child(3) { animation-delay: 0.08s; }
.app-detail-inner--enter > :nth-child(4) { animation-delay: 0.12s; }
.app-detail-inner--enter > :nth-child(5) { animation-delay: 0.16s; }

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.app-detail-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.app-detail-heading {
  flex: 1;
  min-width: 0;
}

.app-detail-icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 22px;
  box-shadow: 0 18px 36px -14px rgba(var(--app-rgb), 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-detail-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.app-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.app-detail-meta .app-category {
  margin: 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, rgb(var(--app-rgb)) 62%, var(--text));
  background: rgba(var(--app-rgb), 0.12);
  border-radius: 999px;
}

.app-detail-meta .app-status {
  position: static;
}

.app-detail-summary {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.app-detail-highlights {
  display: grid;
  gap: 0.6rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .app-detail-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-detail-highlights li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.93rem;
  line-height: 1.5;
}

.app-detail-highlights li::before {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  background: rgba(var(--app-rgb), 0.15);
  border-radius: 50%;
}

.app-detail-highlights li::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0.42rem;
  width: 0.38rem;
  height: 0.2rem;
  border-bottom: 2px solid rgb(var(--app-rgb));
  border-left: 2px solid rgb(var(--app-rgb));
  transform: rotate(-45deg);
}

.app-detail-screenshots {
  display: flex;
  gap: 0.9rem;
  margin: 0 calc(clamp(1.4rem, 3vw, 2.25rem) * -1) 1.5rem;
  padding: 0.25rem clamp(1.4rem, 3vw, 2.25rem) 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Snap ignores padding; without this the first shot snaps flush to the card edge. */
  scroll-padding-inline: clamp(1.4rem, 3vw, 2.25rem);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.app-screenshot {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.app-screenshot img {
  display: block;
  height: min(400px, 50vh);
  width: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px -20px rgba(var(--app-rgb), 0.55), var(--shadow);
}

.store-links--detail {
  max-width: 24rem;
}

@media (min-width: 640px) {
  .store-links--detail.store-links--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-list .app-card,
  .apps-list .app-icon,
  .app-detail-inner {
    transition: none;
  }

  .apps-list .app-card--active .app-icon {
    transform: none;
  }

  .app-detail-inner--enter > * {
    animation: none;
  }
}

.store-links--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 639px) {
  .app-detail-header {
    gap: 1rem;
  }

  .app-detail-icon {
    width: 68px;
    height: 68px;
    border-radius: 17px;
  }

  .app-screenshot img {
    height: min(360px, 48vh);
  }
}

/* Home vision: company-voice summary of about.html#vision (mission, stats, 3 pillars, CTA). */
.vision {
  margin-top: 4.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, var(--hero-glow-a), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, var(--hero-glow-b), transparent 60%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.vision-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 46rem;
}

.vision-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.vision-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.vision-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vision-stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.15rem;
}

.vision-stat dd {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.vision-stat dt {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.vision-pillar {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.vision-pillar:hover {
  border-color: var(--accent-border);
}

.vision-pillar-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  color: var(--accent-text);
  background: var(--accent-soft-strong);
}

.vision-pillar-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vision-pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.vision-pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.vision-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 6px;
}

.vision-cta svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.vision-cta:hover {
  color: var(--accent-hover);
}

.vision-cta:hover svg {
  transform: translateX(3px);
}

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

@media (max-width: 560px) {
  .vision-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vision-cta svg {
    transition: none;
  }
}

/* Footer: brand + inline links (top row), one-line legal facts + verified badge (bottom row). */
.footer {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}


.footer-blurb {
  margin: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.1rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0;
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-legal > * + *::before {
  content: "·";
  margin: 0 0.55rem;
  opacity: 0.5;
}

.footer-legal-num {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.footer-legal a {
  color: var(--accent-text);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-bottom .footer-verified {
  margin-top: 0;
  min-height: 2rem;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-blurb {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-link:hover {
  color: var(--accent-text);
}

.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* —— About page —— */
.top-bar--about {
  justify-content: space-between;
  align-items: center;
}

.about-back {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.about-back:hover {
  color: var(--accent-hover);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-page {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, var(--hero-glow-a), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, var(--hero-glow-b), transparent 60%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-avatar {
  flex-shrink: 0;
  width: clamp(5.5rem, 16vw, 7.5rem);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #5b8def, #a855f7, #22d3ee, #5b8def);
  box-shadow: 0 0 32px var(--hero-glow-a);
}

.about-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.about-hero-copy {
  min-width: 0;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.65rem 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-tint);
}

.about-eyebrow svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-role {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-text);
}

.about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.about-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-tint);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-contact svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex-shrink: 0;
}

.about-contact:hover {
  background: var(--surface-tint-strong);
  border-color: var(--border-strong);
}

.about-contact--primary {
  color: var(--on-accent);
  border-color: transparent;
  background: var(--accent);
}

.about-contact--primary:hover {
  background: var(--accent-hover);
  border-color: transparent;
}

.about-contact:focus-visible,
.about-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.about-page-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Left nav + panels */
.about-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.about-nav {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.about-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.about-nav-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-nav-link:hover {
  color: var(--text);
  background: var(--surface-tint);
}

.about-nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}

.about-nav-link[aria-current="page"] svg {
  color: var(--accent-text);
}

.about-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.about-content {
  min-width: 0;
}

.about-panel--company {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-panel[hidden] {
  display: none;
}

.about-company-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, var(--hero-glow-a), transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, var(--hero-glow-b), transparent 60%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.about-company-hero .about-eyebrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-company-hero h1 {
  margin: 0.35rem 0 0;
  max-inline-size: 16em;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about-company-lead {
  margin: 0.9rem 0 0;
  max-inline-size: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.about-company-copy,
.about-company-copy p {
  margin: 0;
  max-inline-size: 65ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.about-company-copy p + p {
  margin-top: 0.85rem;
}

.about-company-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.about-company-actions a {
  cursor: pointer;
}

.about-company-actions .about-cta {
  margin-top: 0;
}

.about-panel--company .company-stats {
  margin: 0;
}

.about-panel-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about-block {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.about-block h2 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-mission {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #5b8def, #a855f7) 1;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.about-background {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Experience timeline */
.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-border), var(--border));
}

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

.about-timeline-dot {
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(91, 141, 239, 0.7);
  background: var(--bg-elevated);
}

.about-timeline-item.is-current .about-timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.2);
}

.about-timeline-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.about-timeline-toggle:hover,
.about-timeline-item.is-open .about-timeline-toggle {
  background: var(--surface-tint);
}

.about-timeline-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.about-timeline-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.about-timeline-company {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
}

.about-timeline-title {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-timeline-aside {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.about-timeline-meta {
  display: flex;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.about-timeline-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}

.about-timeline-item.is-open .about-timeline-chevron {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 0.15rem;
}

.about-timeline-panel {
  padding: 0.35rem 0.75rem 1rem;
}

.about-timeline-intro {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.about-timeline-details {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-timeline-details li {
  margin: 0 0 0.35rem;
}

.about-timeline-details li::marker {
  color: var(--accent);
}

/* Building Power AI */
.about-building-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.about-pillar {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-tint);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.about-pillar:hover {
  border-color: rgba(91, 141, 239, 0.35);
  background: rgba(91, 141, 239, 0.05);
}

.about-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.about-pillar-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--accent-text);
  background: var(--accent-soft-strong);
}

.about-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-pillar h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
}

.about-pillar ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-pillar li {
  margin-bottom: 0.25rem;
}

.about-goal-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-pillar li::marker {
  color: var(--accent);
}

/* Principles */
.about-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem 1.25rem;
}

.about-principle {
  display: flex;
  gap: 0.75rem;
}

.about-principle-num {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
  padding-top: 0.15rem;
}

.about-principle-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}

.about-principle-body {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  min-height: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 6px;
}

.about-cta svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.about-cta:hover {
  color: var(--accent-hover);
}

.about-cta:hover svg {
  transform: translateX(3px);
}

/* Toolbox + education */
.about-skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-skills li {
  padding: 0.35rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-tint);
}

.about-edu-school {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
}

.about-edu-degree {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.about-edu-dates {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .about-nav {
    top: 0.5rem;
    z-index: 5;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--nav-blur-bg);
    backdrop-filter: blur(10px);
  }

  .about-nav-link {
    flex: 1 0 auto;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.85rem;
  }

  .about-nav-link[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent);
  }
}

@media (max-width: 480px) {
  .about-nav-link {
    gap: 0;
    padding: 0.55rem 0.6rem;
    font-size: 0.8rem;
  }

  .about-nav-link svg {
    display: none;
  }
}

@media (max-width: 560px) {
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-timeline-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .about-timeline-aside {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-contact,
  .about-nav-link,
  .about-pillar,
  .about-timeline-toggle,
  .about-timeline-chevron,
  .about-cta svg {
    transition: none;
  }
}

/* Company section polish: copy + stats (left), company "ID card" (right), verified badges, tinted pillars. */
.company .company-grid {
  align-items: start;
}

.company-copy {
  display: flex;
  flex-direction: column;
}

.company-copy p:first-child {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.company .company-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  /* Follow the copy at a fixed rhythm; bottom-pinning left a hole when the facts card is taller. */
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}

.about-panel--company .company-stats {
  margin: 0;
}

@media (min-width: 600px) {
  .company .company-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.company .vision-stat {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.company .vision-stat:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
}

.company .vision-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, #db2777, #f97316, var(--accent));
  background-size: 200% 100%;
  opacity: 0.85;
  animation: company-stat-bar 6s linear infinite;
}

.company .vision-stat:nth-child(2)::before { animation-delay: -1.5s; }
.company .vision-stat:nth-child(3)::before { animation-delay: -3s; }
.company .vision-stat:nth-child(4)::before { animation-delay: -4.5s; }

@keyframes company-stat-bar {
  to {
    background-position: 200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company .vision-stat::before {
    animation: none;
  }

  .company .vision-stat {
    transition: none;
  }

  .company .vision-stat:hover {
    transform: none;
  }
}

.company .vision-stat dd {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.company .vision-stat dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.company-facts {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}

.company-facts::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 7.5rem;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(37, 99, 235, 0.16), transparent 65%),
    radial-gradient(80% 120% at 100% 0%, rgba(124, 58, 237, 0.14), transparent 65%);
}

.company-facts-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px dashed var(--border-strong);
}

.company-facts-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.company-facts-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.company-facts-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--verified);
}

.company-facts-verified svg {
  width: 1rem;
  height: 1rem;
}

.company-facts h2,
.company-facts h3 {
  margin: 0;
  padding: 1rem 1.4rem 0.25rem;
}

.company-facts dl {
  padding: 0 1.4rem 1.1rem;
}

.company-facts dl > div {
  align-items: baseline;
  padding: 0.7rem 0;
}

.company-facts dl > div:first-child {
  border-top: 0;
}

/* Verification badges: green gradient tile, hairline glow on hover. */
.company .trust-badge {
  position: relative;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, var(--verified-soft), transparent 55%),
    var(--bg-elevated);
  border-color: var(--verified-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.company .trust-badge:hover {
  transform: translateY(-2px);
  border-color: var(--verified);
  box-shadow: 0 20px 40px -24px rgba(4, 120, 87, 0.55), var(--shadow);
}

.company .trust-badge-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #047857);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 20px -10px rgba(4, 120, 87, 0.8);
}

:root[data-theme="dark"] .company .trust-badge-icon {
  color: #052e1f;
  background: linear-gradient(135deg, #6ee7b7, #10b981);
}

.company .trust-badge h2,
.company .trust-badge h4 {
  font-size: 1rem;
}

/* Single licence card: icon · text · verify button in one row (stacks on narrow screens). */
.company .trust-badge--single {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.5rem;
}

.trust-badge--single .trust-badge-body p {
  max-width: 62ch;
}

.trust-link--button {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0;
  padding: 0 1rem;
  min-height: 2.75rem;
  white-space: nowrap;
  color: var(--verified);
  background: var(--bg-elevated);
  border: 1px solid var(--verified-border);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trust-link--button:hover {
  text-decoration: none;
  background: var(--verified-soft);
  border-color: var(--verified);
}

@media (min-width: 760px) {
  .company .trust-badge--single {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .trust-link--button {
    grid-column: auto;
  }
}

/* Pillars: one brand tint per card. */
.company .vision-pillar {
  --pillar-a: #2563eb;
  --pillar-b: #60a5fa;
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.company .vision-pillar:nth-child(2) {
  --pillar-a: #7c3aed;
  --pillar-b: #c084fc;
}

.company .vision-pillar:nth-child(3) {
  --pillar-a: #db2777;
  --pillar-b: #fb923c;
}

.company .vision-pillar::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pillar-a) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.company .vision-pillar:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--pillar-a) 40%, transparent);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--pillar-a) 70%, transparent), var(--shadow);
}

.company .vision-pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--pillar-a), var(--pillar-b));
  box-shadow: 0 10px 20px -10px var(--pillar-a);
}

.company .vision-pillar-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company .company-subtitle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.company .company-subtitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.company .trust {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .company .trust-badge,
  .company .vision-pillar {
    transition: none;
  }

  .company .trust-badge:hover,
  .company .vision-pillar:hover {
    transform: none;
  }
}

/*
 * Mobile pass (< 960px / < 640px): compact sticky chrome, hero app strip, full-width CTAs,
 * single-row scrollable filters, and no fixed-width text that can overflow a 360px screen.
 */
@media (max-width: 959px) {
  .hero-visual {
    display: block;
  }

  .hero-chip {
    display: none;
  }

  .hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(0.4rem, 2vw, 0.85rem);
    padding: clamp(0.8rem, 3vw, 1.25rem);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
  }

  .hero-stage img {
    box-shadow: 0 8px 16px -10px rgba(var(--c), 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .hero-stage img.is-active {
    scale: 1.14;
    box-shadow: 0 10px 20px -8px rgba(var(--c), 0.9), 0 0 0 2px rgba(var(--c), 0.6);
  }

  .hero-stage-caption {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem 0.6rem;
  }

  .vision {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 639px) {
  :root {
    --header-h: 3.5rem;
  }

  .page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-top {
    min-height: var(--header-h);
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.5rem 1rem;
  }

  .hero::before,
  .hero::after {
    inset-inline: -1rem;
  }

  .brand-mark {
    gap: 0.6rem;
  }

  .brand-mark .brand-lockup {
    --glyph: 30px;
    --word: 22px;
    gap: 5px;
  }

  .lang-toggle,
  .pill-btn {
    min-height: 2.5rem;
  }

  .theme-toggle {
    width: 2.5rem;
  }

  .home-sidebar {
    top: var(--header-h);
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0.4rem 1rem;
  }

  .home-toc-link {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.88rem;
  }

  .home-section,
  .app-detail {
    scroll-margin-top: 7rem;
  }

  .hero {
    gap: 1.75rem;
    padding: 2rem 0 2.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-ctas .btn,
  .contact-band-actions .btn {
    flex: 1 1 10rem;
  }

  .hero-verified {
    border-radius: 14px;
  }

  .app-filters {
    flex-wrap: nowrap;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 1rem;
  }

  .app-filters::-webkit-scrollbar {
    display: none;
  }

  .app-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .apps-list {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
    border-inline: 0;
    scroll-padding-inline: 0.5rem;
  }

  .apps-list .app-card {
    flex-basis: 12.5rem;
  }

  .company .trust-badge--single {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    padding: 1.15rem;
  }

  .company-facts dl {
    padding-inline: 1.1rem;
  }

  .company-facts dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .company-facts dt {
    font-size: 0.78rem;
  }

  .trust-link--button {
    justify-self: stretch;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* Header "Hiring" link: live dot + label; collapses to a briefcase icon with the dot on narrow screens. */
.header-hiring {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent-text);
  text-decoration: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.header-hiring:hover,
.header-hiring[aria-current="page"] {
  background: var(--accent-soft-strong);
  border-color: var(--accent);
}

.header-hiring-icon {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
}

.header-hiring-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: hiring-ping 2.2s ease-out infinite;
}

@keyframes hiring-ping {
  70%,
  100% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@media (max-width: 560px) {
  .header-hiring {
    justify-content: center;
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
  }

  .header-hiring-icon {
    display: block;
  }

  .header-hiring .header-hiring-dot {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
  }

  .header-hiring-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-actions {
    gap: 0.4rem;
  }

}

/* —— Hiring page —— */
.hiring-hero {
  align-items: start;
}

@media (min-width: 960px) {
  .hiring-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hiring-hero .hero-eyebrow {
  gap: 0.55rem;
}

.hiring-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hiring-perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hiring-perks svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-text);
}

.hiring-apply {
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-lg);
}

.hiring-apply-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hiring-apply-lead {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hiring-apply-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: apply;
}

.hiring-apply-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  counter-increment: apply;
}

.hiring-apply-steps li::before {
  content: counter(apply);
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 50%;
}

.hiring-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hiring-apply-actions .btn {
  flex: 1 1 12rem;
}

.hiring-apply-note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-strong);
}

.hiring-apply-note a {
  display: inline-block;
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}

.hiring-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.hiring-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.hiring-overview-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(var(--role-rgb), 0.12), transparent 65%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hiring-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--role-rgb), 0.45);
  box-shadow: 0 20px 40px -24px rgba(var(--role-rgb), 0.7), var(--shadow);
}

.hiring-role-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--role-rgb)), rgba(var(--role-rgb), 0.7));
  border-radius: 12px;
  box-shadow: 0 10px 20px -10px rgb(var(--role-rgb));
}

.hiring-role-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hiring-role-icon--lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
}

.hiring-role-icon--lg svg {
  width: 1.7rem;
  height: 1.7rem;
}

.hiring-overview-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.hiring-overview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hiring-overview-meta span,
.hiring-tags li,
.hiring-role-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hiring-overview-meta svg,
.hiring-tags svg,
.hiring-role-facts svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.hiring-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, rgb(var(--role-rgb)) 75%, var(--text));
}

.hiring-overview-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.hiring-overview-card:hover .hiring-overview-link svg {
  transform: translateX(3px);
}

.hiring-roles {
  display: grid;
  gap: 1.5rem;
}

.hiring-role {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 5.5rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(var(--role-rgb), 0.12), transparent 65%),
    var(--bg-elevated);
  border: 1px solid rgba(var(--role-rgb), 0.25);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 30px 60px -36px rgba(var(--role-rgb), 0.55), var(--shadow);
}

.hiring-role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--role-rgb)), rgba(var(--role-rgb), 0.15));
}

.hiring-role-head {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.hiring-role-heading {
  min-width: 0;
}

.hiring-role-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hiring-role-heading p {
  margin: 0.45rem 0 0;
  max-width: 48rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hiring-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hiring-tags li {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: color-mix(in srgb, rgb(var(--role-rgb)) 70%, var(--text));
  background: rgba(var(--role-rgb), 0.1);
  border-radius: 999px;
}

.hiring-role-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hiring-role-facts > div {
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hiring-role-facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hiring-role-facts dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.hiring-levels {
  margin: 0 0 1.5rem;
}

.hiring-levels table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.93rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hiring-levels th,
.hiring-levels td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hiring-levels tbody tr:last-child > * {
  border-bottom: 0;
}

.hiring-levels thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(var(--role-rgb), 0.06);
}

.hiring-levels tbody th {
  font-weight: 600;
}

.hiring-levels td {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, rgb(var(--role-rgb)) 70%, var(--text));
  text-align: right;
  white-space: nowrap;
}

.hiring-levels thead th:last-child {
  text-align: right;
}

.hiring-levels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hiring-levels .hiring-levels-head h3 {
  margin: 0;
}

.hiring-levels-edit svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hiring-levels-inputs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.hiring-levels-inputs input {
  width: 7.5rem;
  max-width: 40vw;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
  background: var(--surface, var(--bg));
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hiring-levels-inputs input:focus-visible {
  outline: 2px solid rgb(var(--role-rgb));
  outline-offset: 1px;
}

.hiring-levels-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hiring-levels-error {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.85rem;
  color: #dc2626;
  text-align: right;
}

.hiring-role-body {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .hiring-role-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

.hiring-role h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.hiring-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hiring-list li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  background: rgba(var(--role-rgb), 0.14);
  border-radius: 50%;
}

.hiring-list li::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.42rem;
  width: 0.38rem;
  height: 0.2rem;
  border-bottom: 2px solid rgb(var(--role-rgb));
  border-left: 2px solid rgb(var(--role-rgb));
  transform: rotate(-45deg);
}

.hiring-fundamentals {
  margin-top: 1.25rem;
}

.hiring-fundamentals h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.hiring-fundamentals ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiring-fundamentals li {
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid rgba(var(--role-rgb), 0.3);
  border-radius: 8px;
}

.hiring-benefits {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(var(--role-rgb), 0.08), transparent 70%);
  border: 1px solid rgba(var(--role-rgb), 0.2);
  border-radius: 14px;
}

.hiring-list--benefits li {
  font-weight: 500;
}

.hiring-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hiring-cta {
  margin-top: 0.5rem;
}

/* Role detail page (hiring-job.html): `--role-rgb` is set on main by hiring-job.js. */
.hiring-job-main {
  --role-rgb: 79, 70, 229;
  padding-top: 1rem;
}

.hiring-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.hiring-back:hover {
  color: var(--text);
}

.hiring-back svg {
  width: 1rem;
  height: 1rem;
}

.hiring-not-found {
  margin: 0;
  padding: 2rem;
  font-size: 1.05rem;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
}

.hiring-apply-options {
  scroll-margin-top: 5.5rem;
}

.hiring-apply-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .hiring-apply-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: start;
  }
}

.hiring-apply-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hiring-apply-card--featured {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(var(--role-rgb), 0.16), transparent 70%),
    var(--bg-elevated);
  border: 2px solid rgba(var(--role-rgb), 0.55);
  box-shadow: 0 30px 60px -30px rgba(var(--role-rgb), 0.65), var(--shadow);
}

.hiring-apply-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--role-rgb)), rgba(var(--role-rgb), 0.75));
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgb(var(--role-rgb));
}

.hiring-apply-badge svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hiring-apply-option-num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.hiring-apply-card--featured .hiring-apply-option-num {
  color: #fff;
  background: rgb(var(--role-rgb));
  border-color: transparent;
}

.hiring-apply-card-title {
  margin: 0.25rem 0 0;
  padding-right: 2.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hiring-apply-card-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hiring-form-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .hiring-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hiring-field--wide {
    grid-column: 1 / -1;
  }
}

.hiring-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hiring-field b {
  color: rgb(var(--role-rgb));
}

.hiring-field input,
.hiring-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-sizing: border-box;
}

.hiring-field textarea {
  resize: vertical;
}

.hiring-field input:focus-visible,
.hiring-field textarea:focus-visible {
  outline: none;
  border-color: rgb(var(--role-rgb));
  box-shadow: 0 0 0 3px rgba(var(--role-rgb), 0.2);
}

.hiring-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  background: rgba(var(--role-rgb), 0.06);
  border: 1.5px dashed rgba(var(--role-rgb), 0.45);
  border-radius: 10px;
}

.hiring-file svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: rgb(var(--role-rgb));
}

.hiring-field .hiring-file input {
  min-height: 2.25rem;
  padding: 0.3rem 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hiring-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hiring-form-status {
  margin: 0.5rem 0 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
}

.hiring-form-status[data-kind="success"] {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.hiring-form-status[data-kind="error"] {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.hiring-form-submit {
  align-self: flex-start;
  margin-top: 0.75rem;
  background: rgb(var(--role-rgb));
  box-shadow: 0 10px 22px -10px rgb(var(--role-rgb));
}

.hiring-form-submit:hover {
  background: rgba(var(--role-rgb), 0.88);
}

.hiring-form-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

.hiring-apply-alt {
  display: grid;
  gap: 1rem;
}

.hiring-apply-card--alt {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hiring-apply-card--alt:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.hiring-apply-alt-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hiring-apply-alt-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hiring-apply-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
}

.hiring-apply-alt-link svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 639px) {
  .hiring-form-submit {
    align-self: stretch;
  }
}

@media (max-width: 639px) {
  .hiring-role-head {
    flex-direction: column;
    gap: 0.85rem;
  }

  .hiring-role-actions .btn {
    flex: 1 1 100%;
  }

  .hiring-role {
    scroll-margin-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-hiring-dot {
    animation: none;
  }

  .header-hiring,
  .hiring-overview-card,
  .hiring-overview-link svg,
  .hiring-apply-card--alt {
    transition: none;
  }

  .hiring-overview-card:hover,
  .hiring-apply-card--alt:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .header-cta {
    display: none;
  }
}
