/* ============================================================================
   Artemis AI — useartemisai.com
   ========================================================================== */

:root {
  /* Brand */
  --brand-primary: #245bef;
  --brand-secondary: #31adea;
  --brand-tertiary: #ced9ea;
  --brand-dark: #070d1a;

  /* Surfaces — extended from #070D1A to give the page depth */
  --bg: #070d1a;
  --bg-2: #0a1424;
  --surface: #0e1a30;
  --surface-2: #142440;
  --border: rgba(206, 217, 234, 0.10);
  --border-strong: rgba(206, 217, 234, 0.20);

  /* Text */
  --text: #f2f6fc;
  --text-muted: #a9bcd8;
  --text-dim: #7e93b4;

  /* Accents */
  --accent: #4d84ff;
  --accent-soft: rgba(36, 91, 239, 0.14);
  --accent-line: rgba(49, 173, 234, 0.32);
  --emerald: #34d399;
  --amber: #f7c948;

  /* Restrained on purpose. The full #31ADEA→#245BEF sweep is the logomark's
     gradient and reads as electric across a large fill, so buttons use a
     tighter, deeper span of the same blue — it still stands out against the
     near-black ground without dominating the page. */
  --grad: linear-gradient(135deg, #3a72e8 0%, #2255d8 100%);
  --grad-soft: linear-gradient(135deg, rgba(49, 173, 234, 0.16), rgba(36, 91, 239, 0.16));

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky header must not cover an anchor target. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1.1em; }

a { color: var(--brand-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--brand-tertiary);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

/* Mobile menu toggle — injected by site.js, hidden until the phone breakpoint. */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(206, 217, 234, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}
.menu-btn:hover { background: rgba(206, 217, 234, 0.12); }

/* ── Logo ────────────────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.logo .word {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  /* The brand sets the wordmark at .38em tracking — preserved here. */
  letter-spacing: 0.30em;
  text-transform: uppercase;
  padding-left: 2px;
}
.logo-lg .mark { width: 76px; height: 76px; }
.logo-lg .word { font-size: 25px; letter-spacing: 0.34em; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 85, 216, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(34, 85, 216, 0.38); }
.btn-ghost {
  background: rgba(206, 217, 234, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(206, 217, 234, 0.10); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
/* Two soft brand glows, echoing the logomark's gradient sweep. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 620px; height: 620px;
  top: -280px; right: -180px;
  background: radial-gradient(circle, rgba(49, 173, 234, 0.20), transparent 68%);
}
.hero::after {
  width: 560px; height: 560px;
  bottom: -320px; left: -220px;
  background: radial-gradient(circle, rgba(36, 91, 239, 0.18), transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lead {
  font-size: clamp(1.06rem, 1.9vw, 1.27rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--text-dim); margin-top: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 6px 15px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: clamp(40px, 5vw, 62px) 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head p { color: var(--text-muted); font-size: 1.04rem; margin: 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }

/* ── Cards / bento grid ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(160deg, var(--surface) 0%, rgba(14, 26, 48, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--text-muted); }
.card .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--brand-secondary);
}
.card.span-2 { grid-column: span 2; }

/* Stat tiles */
.stat { text-align: left; }
.stat .v {
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat .k { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 2px;
}
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; font-size: 15px; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 560px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(206, 217, 234, 0.03); }

/* ── Callout ─────────────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-left: 3px solid var(--brand-secondary);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 15px;
}
.callout.warn { border-color: rgba(247, 201, 72, 0.32); background: rgba(247, 201, 72, 0.09); border-left-color: var(--amber); }
.callout strong { color: var(--text); }

/* ── Pills ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}
.pill-yes { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.10); color: var(--emerald); }
.pill-no { border-color: rgba(247, 201, 72, 0.32); background: rgba(247, 201, 72, 0.09); color: var(--amber); }

/* ── CTA band ────────────────────────────────────────────────────────── */
/* A dark panel lit from one corner rather than a solid blue slab — the blue
   reads as an accent on the CTA button instead of flooding the whole block. */
.cta-band {
  background:
    radial-gradient(760px 300px at 50% -30%, rgba(49, 173, 234, 0.20), transparent 70%),
    linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 54px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--text); margin-bottom: 10px; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 24px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 40px;
  margin-top: 40px;
  font-size: 14.5px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.footer-brand { max-width: 34ch; }
.footer-brand p { font-size: 14px; color: var(--text-dim); margin: 14px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 9px; font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { padding: 56px 0 20px; max-width: 78ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-size: 1.42rem;
  margin-top: 46px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 30px;
}
.legal .toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); margin-bottom: 12px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin-bottom: 5px; font-size: 14.5px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { gap: 12px; }
  .menu-btn { display: grid; order: 3; }
  /* The header CTA stays visible; the section links move into a drop panel so
     they are still reachable rather than simply disappearing. */
  .site-header > .wrap > .btn { order: 2; margin-left: auto; padding: 9px 16px; font-size: 14px; }
  .nav-links {
    display: none;
    order: 4;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    /* Fully opaque — at 0.98 the hero headline ghosted through the panel. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .footer-cols { gap: 32px; }
  .hero-cta .btn { width: 100%; }
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .btn:hover { transform: none; }
  * { transition: none !important; }
}
