/* Reflexa — premium monochrome: near-black ground, white ink, chrome accents */
:root {
  --bg: #08080a;
  --bg2: #141416;
  --ink: #f6f6f8;
  --mut: #a7a7ae;
  --faint: #6f6f77;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --good: #4ade80;
  --bad: #ff6b6b;
  --violet: #d6d6dc;
  --magenta: #ededf0;
  --pink: #ffffff;
  --grad: linear-gradient(180deg, #ffffff 0%, #c2c2ca 100%);
  --glow: 0 0 80px rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(900px 640px at -12% 12%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  text-wrap: balance;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
em { font-style: normal; }
.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bad { color: var(--bad); }
.good { color: var(--good); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ── engine logo primitives (svg sprite injected by site.js) ── */
.lg { display: inline-block; width: 100%; height: 100%; }
.lg-openai { color: #1a1a1a; }
.lg-claude { color: #d97757; }
.lg-perplexity { color: #1f9daf; }
.lg-copilot { color: #24292f; }
.lg-mistral { color: #fa520f; }
/* app-icon tile: glossy light square like a phone home screen */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 24%;
  background: linear-gradient(160deg, #ffffff, #e9e6f4 78%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(96, 76, 170, 0.16),
    0 14px 34px rgba(4, 2, 12, 0.55);
}
.tile svg { width: 54%; height: 54%; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.6), transparent 42%);
  pointer-events: none;
}
.tile--dark { background: linear-gradient(160deg, #23202e, #121017 78%); }
.tile--dark::after { background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), transparent 42%); }

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 24px));
  margin-inline: auto;
  padding: 10px 12px 10px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { background: rgba(12, 8, 24, 0.82); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-word { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; color: var(--ink); }
.foot2-brand .logo-img { height: 28px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--mut); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-auth { display: inline-flex; align-items: center; gap: 18px; }
.nav-login { color: var(--mut); text-decoration: none; font-size: 15px; }
.nav-login:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: #ffffff;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(0, 0, 0, 0.5); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-s { padding: 10px 20px; font-size: 14px; }
.btn-l { padding: 17px 38px; font-size: 16.5px; }

/* ── shared type & rhythm ────────────────────────────────── */
.sect { padding-block: clamp(56px, 7vw, 100px); }
.sect-tight { padding-block: clamp(44px, 5.5vw, 76px); }
.h-giant { font-size: clamp(34px, 3.8vw, 54px); font-weight: 700; text-align: center; }
.h-big { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; }
.h-left { font-size: clamp(34px, 3.8vw, 54px); font-weight: 700; }
.center { text-align: center; }
.lede-c { margin: 26px auto 0; max-width: 52ch; color: var(--mut); text-align: center; font-size: 18px; }
.eyebrow-c, .eyebrow-l, .page-head .eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
  font-weight: 600;
}
.eyebrow-c { text-align: center; }

/* audit form */
.audit-form { max-width: 560px; }
.audit-input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.audit-input::placeholder { color: var(--faint); }
.audit-input:focus-visible { outline: none; border-color: var(--magenta); background: rgba(255, 255, 255, 0.08); }
.audit-form.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.audit-form.inline .audit-input { flex: 1; min-width: 230px; }
.audit-form.inline .btn-l { white-space: nowrap; }
.trust, .trust2 { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; color: var(--faint); font-size: 14px; }
.trust span, .trust2 span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg, .trust2 svg { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* glass card base */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── subpages ────────────────────────────────────────────── */
.page-head { padding-block: clamp(70px, 9vw, 120px) clamp(40px, 6vw, 70px); }
.page-head h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; max-width: 18ch; }
.page-head .lede { margin-top: 24px; color: var(--mut); max-width: 54ch; font-size: 18px; }

.layers-list { list-style: none; margin: 0; padding: 0; }
.layers-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.layers-list .ln {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.layers-list h3 { font-size: 24px; margin-bottom: 8px; }
.layers-list p { color: var(--mut); max-width: 64ch; }
.layers-list .gate-note { margin-top: 10px; font-size: 13.5px; color: var(--faint); }

.shot {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), var(--glow);
}
.shot img { display: block; width: 100%; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1060px;
  margin: clamp(46px, 6vw, 70px) auto 0;
}
.ev-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 6px 22px; }
.ev-card summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; align-items: baseline; gap: 14px; }
.ev-card summary::-webkit-details-marker { display: none; }
.ev-mark { font-size: 20px; font-weight: 800; }
.ev-mark.no { color: var(--bad); }
.ev-mark.ok { color: var(--good); }
.ev-title { font-weight: 600; font-size: 15.5px; }
.ev-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); display: block; }
.ev-body { border-top: 1px solid var(--line); padding: 16px 0 18px; color: var(--mut); font-size: 14px; }

/* pricing plans */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; margin-top: clamp(36px, 5vw, 56px); }
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 26px 24px;
  position: relative;
}
.price-card--hot { border-color: transparent; background: linear-gradient(var(--bg2), var(--bg2)) padding-box, var(--grad) border-box; box-shadow: 0 24px 70px rgba(139, 92, 246, 0.25); }
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50%;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price-card h2 { font-size: 19px; }
.price-for { margin-top: 4px; color: var(--faint); font-size: 13px; }
.price-amount { margin-top: 16px; font-family: "Space Grotesk", sans-serif; font-size: 38px; font-weight: 700; line-height: 1; }
.price-amount span { font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; color: var(--faint); }
.price-feat { list-style: none; margin: 18px 0 22px; padding: 0; flex: 1; }
.price-feat li { position: relative; padding: 7px 0 7px 24px; border-bottom: 1px solid var(--line); color: var(--mut); font-size: 14px; }
.price-feat li:last-child { border-bottom: none; }
.price-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-size: 12px; font-weight: 700; }
.price-feat li.na { color: var(--faint); }
.price-feat li.na::before { content: "—"; color: var(--faint); }
.price-card .btn { text-align: center; }
.annual-note { margin-top: 26px; text-align: center; color: var(--mut); font-size: 15px; }
.annual-note strong { color: var(--ink); }

/* ── footer ──────────────────────────────────────────────── */
.foot2 { position: relative; border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 60px) 34px; }
.foot2-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 1.5fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.foot2-brand p { margin-top: 14px; color: var(--faint); font-size: 13.5px; line-height: 1.65; }
.foot2-col { display: grid; gap: 12px; font-size: 14.5px; justify-items: start; }
.foot2-cap { color: var(--faint); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.foot2-col a { color: var(--mut); text-decoration: none; }
.foot2-col a:hover { color: var(--ink); }
.foot2-news { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 20px 22px; }
.foot2-news-head { display: flex; align-items: flex-start; gap: 13px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.foot2-news-head p { margin: 0; }
.foot2-mail { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--card-2); }
.foot2-mail svg { width: 18px; height: 18px; fill: none; stroke: var(--mut); stroke-width: 1.7; stroke-linejoin: round; }
.foot2-news-form { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.foot2-news-form input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.foot2-news-form input::placeholder { color: var(--faint); }
.foot2-news-form button {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.foot2-news-form button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot2-tagline { grid-column: 1 / -1; margin-top: 10px; color: var(--faint); font-size: 13px; text-align: center; }
.foot2-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--mut); text-decoration: none; font-size: 14px; }
.foot2-linkedin:hover { color: var(--ink); }
.foot2-linkedin svg { width: 18px; height: 18px; fill: currentColor; }

/* ── check list & FAQ (shared) ───────────────────────────── */
.peek-list { list-style: none; margin: 28px 0 0; padding: 0; }
.peek-list li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); color: var(--mut); font-size: 16px; line-height: 1.6; }
.peek-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--good);
  font-size: 13px;
  font-weight: 700;
}
.faq-list { max-width: 780px; margin: clamp(40px, 5vw, 60px) auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--magenta); font-size: 24px; font-weight: 400; transition: rotate 0.25s ease; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item .faq-a { padding: 0 4px 24px; color: var(--mut); font-size: 15.5px; line-height: 1.75; max-width: 64ch; }

/* ── practical tip box & crawler table (how-it-works) ────── */
.tip {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  background: rgba(210, 76, 240, 0.07);
  color: var(--mut);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 60ch;
}
.tip strong { color: var(--ink); }
.crawl-wrap { overflow-x: auto; margin-top: clamp(30px, 4vw, 46px); border: 1px solid var(--line); border-radius: 16px; }
.crawl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.crawl th, .crawl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.crawl tr:last-child td { border-bottom: none; }
.crawl th { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; background: var(--card); }
.crawl td { color: var(--mut); }
.crawl td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ── article prose (guide pages) ─────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: clamp(40px, 5vw, 60px); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; color: var(--mut); font-size: 16.5px; line-height: 1.8; }
.prose p strong, .prose li strong { color: var(--ink); }
.prose ul { margin: 16px 0 0; padding-left: 22px; color: var(--mut); font-size: 16.5px; line-height: 1.8; }
.prose li { margin-top: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.prose .sources { margin-top: 12px; font-size: 14px; color: var(--faint); }
.prose .sources a { color: var(--mut); }
.prose .proof { margin-top: 14px; font-size: 14px; color: var(--faint); padding-left: 14px; border-left: 2px solid var(--line); }
.prose .proof a { color: var(--mut); }
.prose .takeaway {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: var(--mut);
  font-size: 15px;
  line-height: 1.7;
}
.prose .takeaway strong { color: var(--good); }
.prose table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; color: var(--mut); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 96px; }
.prose td:nth-child(2), .prose th:nth-child(2) { min-width: 190px; }
.prose th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.prose td strong { color: var(--ink); }
.prose tbody tr:first-child td { background: rgba(255, 255, 255, 0.03); }
.byline { display: block; margin-top: 18px; color: var(--faint); font-size: 13.5px; }

/* ── about: two-column intro + keynote figure ────────────── */
.about-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-head h1 { max-width: none; }
.about-hero { margin: 0; display: flex; justify-content: center; }
.about-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 480px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), var(--glow);
}
@media (max-width: 860px) {
  .about-head { grid-template-columns: 1fr; }
  .about-hero { margin: 4px auto 0; }
  .about-hero img { max-height: 420px; }
}

/* ── statistics cards ────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 26px 0 8px; }
.stat-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 22px 18px; }
.stat-n {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-c { display: block; margin-top: 10px; color: var(--mut); font-size: 14.5px; line-height: 1.55; }
.stat-src { display: block; margin-top: 10px; font-size: 12px; }
.stat-src a { color: var(--faint); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.stat-src a:hover { color: var(--mut); }

/* ── blog cards ──────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(210, 76, 240, 0.4); }
.blog-tag { align-self: flex-start; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); font-weight: 600; }
.blog-card h2 { margin-top: 14px; font-size: 22px; line-height: 1.3; }
.blog-card p { margin-top: 12px; flex: 1; color: var(--mut); font-size: 15px; line-height: 1.7; }
.blog-meta { display: flex; gap: 14px; margin-top: 20px; color: var(--faint); font-size: 13px; }
.blog-more { margin-top: 14px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.blog-more span { display: inline-block; transition: translate 0.25s ease; }
.blog-card:hover .blog-more span { translate: 4px 0; }

/* simple footer (subpages) */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 13.5px;
}
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-login, .nav-auth .btn { white-space: nowrap; }
  .nav-auth { gap: 12px; }
  .foot2-grid { grid-template-columns: 1fr 1fr; }
  .foot2-news { grid-column: 1 / -1; }
}
