/* ==========================================================================
   Axiom — axiom.inc
   One small stylesheet, no frameworks, no external fonts.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --surface: #ffffff;
  --ink: #0b1023;
  --text: #3c455a;
  --muted: #667085;
  --line: #e5e9f2;
  --dot-grid: rgba(11, 16, 35, 0.16);

  --brand-a: #4f46e5; /* indigo */
  --brand-b: #0891b2; /* cyan-600 (contrast-safe for text) */
  --brand-b-bright: #06b6d4;
  --grad: linear-gradient(120deg, var(--brand-a), var(--brand-b-bright));
  /* Buttons keep white text readable: mostly indigo, cyan only kisses the edge */
  --grad-btn: linear-gradient(120deg, #4338ca, #4f46e5 55%, #0891b2 145%);
  --grad-text: linear-gradient(105deg, var(--brand-a) 20%, var(--brand-b) 90%);

  --ring: rgba(79, 70, 229, 0.28);
  --shadow-sm: 0 1px 2px rgba(11, 16, 35, 0.05);
  --shadow-md: 0 10px 34px rgba(11, 16, 35, 0.09);
  --shadow-brand: 0 10px 28px rgba(79, 70, 229, 0.28);

  --radius: 20px;
  --radius-pill: 999px;
  --header-h: 68px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1023;
    --bg-soft: #0e1530;
    --surface: #121a38;
    --ink: #f0f4fb;
    --text: #b9c3d8;
    --muted: #8b96ad;
    --line: #222c50;
    --dot-grid: rgba(148, 163, 184, 0.28);

    --brand-b: #22d3ee; /* brighten for dark bg */
    --grad-text: linear-gradient(105deg, #818cf8 10%, #22d3ee 90%);

    --ring: rgba(129, 140, 248, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-brand: 0 10px 30px rgba(34, 211, 238, 0.16);
  }
}

/* Base ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

::selection {
  background: rgba(79, 70, 229, 0.18);
}

:focus-visible {
  outline: 2.5px solid var(--brand-a);
  outline-offset: 2px;
  border-radius: 6px;
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand svg {
  height: 27px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav .nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav .nav-link:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-nav .nav-link {
    display: none; /* all destinations remain reachable via footer + in-page links */
  }
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
  filter: saturate(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  box-shadow: none;
  border-color: color-mix(in srgb, var(--brand-a) 45%, var(--line));
}

.btn-light {
  background: #fff;
  color: #1e1b4b;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(64px, 11vh, 112px) 0 88px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot-grid) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(90% 75% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(90% 75% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 16% -4%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(560px 300px at 84% 0%, rgba(6, 182, 212, 0.14), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-b-bright);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-badge .pulse {
    animation: pulse 2.4s ease-out infinite;
  }

  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
  }
}

.hero h1 {
  margin-top: 22px;
  max-width: 17ch;
  font-size: clamp(2.55rem, 6.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 20px;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

/* Search demo ------------------------------------------------------------ */

.search-wrap {
  width: 100%;
  max-width: 680px;
  margin-top: 38px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 22px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.searchbar:focus-within {
  border-color: var(--brand-a);
  box-shadow: 0 0 0 5px var(--ring), var(--shadow-md);
}

.searchbar .glyph {
  flex: none;
  width: 21px;
  height: 21px;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  padding: 10px 0;
}

.searchbar input::placeholder {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.8px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chip:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand-a) 50%, var(--line));
  transform: translateY(-1px);
}

.answer {
  margin-top: 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.answer[hidden] {
  display: none;
}

.answer-accent {
  height: 3px;
  background: var(--grad);
}

.answer-body {
  padding: 22px 26px 20px;
}

.answer-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-b);
}

.answer-meta svg {
  width: 15px;
  height: 15px;
}

.answer-text {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}

.answer-text strong {
  color: var(--ink);
}

.answer-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.answer-text .hit-title {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-a) 45%, transparent);
  text-underline-offset: 3px;
}

.answer-text .hit-title:hover {
  text-decoration-color: var(--brand-a);
}

.more-label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.more-hits {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.more-hits li {
  margin-top: 5px;
  font-size: 14.5px;
}

.more-hits a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.more-hits a:hover {
  color: var(--brand-a);
  text-decoration-color: var(--brand-a);
}

@media (prefers-reduced-motion: no-preference) {
  .answer.pop {
    animation: rise 0.28s ease both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.55rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.06rem;
  color: var(--muted);
}

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

/* Feature cards ---------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-a) 26%, var(--line));
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-a) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-a) 22%, var(--line));
  color: var(--brand-a);
}

@media (prefers-color-scheme: dark) {
  .card-icon {
    color: #a5b4fc;
  }
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-top: 18px;
  font-size: 1.14rem;
  font-weight: 700;
}

.card p {
  margin-top: 9px;
  font-size: 15.3px;
  color: var(--muted);
}

/* The Axioms ------------------------------------------------------------- */

.axioms {
  margin: 52px auto 0;
  max-width: 780px;
  padding: 0;
  list-style: none;
  counter-reset: axiom;
}

.axioms li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.axioms li:last-child {
  border-bottom: 1px solid var(--line);
}

.axioms li::before {
  counter-increment: axiom;
  content: "0" counter(axiom);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.axioms h3 {
  font-size: 1.22rem;
  font-weight: 750;
}

.axioms p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.8px;
  max-width: 56ch;
}

@media (max-width: 560px) {
  .axioms li {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* CTA band --------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 6vw, 72px);
  background:
    radial-gradient(720px 340px at 85% 115%, rgba(34, 211, 238, 0.4), transparent 65%),
    linear-gradient(118deg, #4338ca, #4f46e5 45%, #0e7490);
  color: #e8ecff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 10%, transparent 80%);
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 10%, transparent 80%);
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 14px auto 0;
  max-width: 52ch;
  color: rgba(232, 236, 255, 0.85);
  font-size: 1.05rem;
}

.cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cta .btn-light:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta .btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.cta .btn-outline:hover {
  border-color: #fff;
  box-shadow: none;
}

/* FAQ -------------------------------------------------------------------- */

.faq-list {
  max-width: 780px;
  margin: 40px auto 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 21px 44px 21px 2px;
  font-size: 1.07rem;
  font-weight: 650;
  color: var(--ink);
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--brand-a), var(--brand-a)) center/12px 2px no-repeat,
    linear-gradient(var(--brand-a), var(--brand-a)) center/2px 12px no-repeat;
  transition: transform 0.2s ease;
}

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

.faq-list .faq-a {
  padding: 0 2px 22px;
  color: var(--muted);
  font-size: 15.8px;
  max-width: 68ch;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  background: var(--bg);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand svg {
  height: 25px;
  width: auto;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 84px);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  font-size: 14.8px;
  font-weight: 550;
  color: var(--text);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Inner pages (about, privacy) ------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(56px, 9vh, 92px) 0 40px;
  overflow: clip;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 12% -8%, rgba(79, 70, 229, 0.13), transparent 70%),
    radial-gradient(460px 240px at 88% -4%, rgba(6, 182, 212, 0.11), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.page-hero .lede {
  margin-top: 18px;
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  padding-bottom: 88px;
}

.prose h2 {
  margin-top: 52px;
  font-size: 1.5rem;
  font-weight: 750;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.15rem;
  font-weight: 700;
}

.prose p {
  margin-top: 16px;
  line-height: 1.75;
}

.prose ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.prose li {
  margin-top: 9px;
  line-height: 1.65;
}

.prose li::marker {
  color: var(--brand-b);
}

.prose a {
  color: var(--brand-a);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-a) 40%, transparent);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--brand-a);
}

@media (prefers-color-scheme: dark) {
  .prose a {
    color: #a5b4fc;
  }
}

.prose .callout {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-a);
  border-radius: 14px;
  background: var(--bg-soft);
}

.prose .callout p {
  margin-top: 0;
}

.updated {
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* 404 -------------------------------------------------------------------- */

.notfound {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  text-align: center;
}

.notfound .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 72px;
}

.notfound .code {
  font-size: clamp(5rem, 16vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  margin-top: 10px;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.notfound p {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
}

.notfound .btn {
  margin-top: 28px;
}

/* Motion safety ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
