/* ELEVX GROUP — independent site stylesheet
   Identity derived from the founder-authored ELEVX ONE landing (palette + Inter stack). */

:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel2: #f0f4ff;
  --text: #0f172a;
  --muted: #55637a;
  --line: #e2e8f0;
  --blue: #2563eb;
  --violet: #7c3aed;
  --teal: #0e7490;
  --gold: #a16207;
  --green: #15803d;
  /* Pill foregrounds tuned for >= 4.5:1 on their tinted backgrounds */
  --pill-ea-fg: #1e40af;
  --pill-ea-bg: rgba(37, 99, 235, .13);
  --pill-ea-bd: rgba(37, 99, 235, .38);
  --pill-beta-fg: #5b21b6;
  --pill-beta-bg: rgba(124, 58, 237, .13);
  --pill-beta-bd: rgba(124, 58, 237, .38);
  --pill-pilot-fg: #115e59;
  --pill-pilot-bg: rgba(6, 148, 162, .14);
  --pill-pilot-bd: rgba(6, 148, 162, .38);
  --pill-integ-fg: #92400e;
  --pill-integ-bg: rgba(180, 120, 20, .16);
  --pill-integ-bd: rgba(146, 64, 14, .38);
  --shadow: 0 22px 70px rgba(15, 23, 42, .10);
  --radius: 20px;
  --maxw: 1160px;
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #060916;
  --panel: #0d1325;
  --panel2: #10182d;
  --text: #f8fafc;
  --muted: #a9b6cc;
  --line: #1f2a44;
  --blue: #6f9cff;
  --violet: #a78bfa;
  --teal: #22d3ee;
  --gold: #e2c05a;
  --green: #4ade80;
  --pill-ea-fg: #a9c3ff;
  --pill-ea-bg: rgba(111, 156, 255, .16);
  --pill-ea-bd: rgba(111, 156, 255, .40);
  --pill-beta-fg: #ccbcff;
  --pill-beta-bg: rgba(167, 139, 250, .16);
  --pill-beta-bd: rgba(167, 139, 250, .40);
  --pill-pilot-fg: #6ee7e0;
  --pill-pilot-bg: rgba(34, 211, 238, .14);
  --pill-pilot-bd: rgba(34, 211, 238, .40);
  --pill-integ-fg: #f5cf7a;
  --pill-integ-bg: rgba(226, 192, 90, .16);
  --pill-integ-bd: rgba(226, 192, 90, .40);
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
b { font-weight: 750; }
strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--panel); color: var(--text); padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-text { font-size: 1.02rem; letter-spacing: .12em; font-weight: 600; }
.brand-text b { font-weight: 800; }
.brand-mark { flex: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--text); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 10px 30px rgba(37, 99, 235, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 36px rgba(124, 58, 237, .34); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.site-nav .btn-sm { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px); }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 720px; pointer-events: none;
  background:
    radial-gradient(560px 340px at 22% 30%, rgba(37, 99, 235, .18), transparent 70%),
    radial-gradient(520px 320px at 78% 12%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(420px 260px at 55% 70%, rgba(6, 182, 212, .12), transparent 70%);
  filter: blur(8px);
}
.hero-inner { position: relative; max-width: 900px; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.grad { background: linear-gradient(100deg, var(--blue), var(--violet) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--muted); max-width: 66ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 26px; font-size: .92rem; color: var(--muted); max-width: 62ch; }
.hero-note > span:last-child { flex: 1 1 240px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: .45em; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 8vw, 92px) 0; }
.section-alt { background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cta { background:
    radial-gradient(600px 300px at 20% 0%, rgba(37, 99, 235, .14), transparent 70%),
    radial-gradient(600px 300px at 80% 20%, rgba(124, 58, 237, .12), transparent 70%);
}
.section-lede { font-size: 1.06rem; color: var(--muted); max-width: 68ch; margin-bottom: 30px; }

.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .pillar, .principle, .panel-demo {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.card p, .pillar p, .principle p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
.card-icon { font-size: 1.3rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 14px; }
.pillar .glyph { font-size: 1.15rem; display: block; margin-bottom: 10px; }
.pillar h3, .card h3, .principle h3 { margin-bottom: .35em; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.checklist strong { color: var(--text); }

.panel-demo { padding: 0; overflow: hidden; background: var(--panel); }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-bar em { margin-left: 8px; font-size: .78rem; letter-spacing: .1em; font-style: normal; color: var(--muted); text-transform: uppercase; }
.demo-body { padding: 20px 18px; }
.demo-line { font-size: .94rem; color: var(--text); margin-bottom: 10px; }
.demo-line i { color: var(--blue); font-style: normal; margin-right: 8px; }
.demo-tag { font-size: .72rem; letter-spacing: .14em; color: var(--muted); margin: 18px 0 0; }

/* ---------- status ---------- */
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin-bottom: 18px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.pill { font-size: .68rem; letter-spacing: .1em; font-weight: 750; padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill-ea { background: var(--pill-ea-bg); color: var(--pill-ea-fg); border-color: var(--pill-ea-bd); }
.pill-beta { background: var(--pill-beta-bg); color: var(--pill-beta-fg); border-color: var(--pill-beta-bd); }
.pill-pilot { background: var(--pill-pilot-bg); color: var(--pill-pilot-fg); border-color: var(--pill-pilot-bd); }
.pill-integ { background: var(--pill-integ-bg); color: var(--pill-integ-fg); border-color: var(--pill-integ-bd); }
.pill-soon { background: var(--panel); color: var(--muted); border-color: var(--line); }
.fineprint { font-size: .82rem; color: var(--muted); max-width: 80ch; }

/* ---------- forms ---------- */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .98rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field select:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 1px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid color-mix(in srgb, var(--blue) 25%, transparent); outline-offset: 1px; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.error { color: #b91c1c; font-size: .85rem; margin: 7px 0 0; }
html[data-theme="dark"] .error { color: #fca5a5; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b91c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b91c1c; }
html[data-theme="dark"] .form-status.err { color: #fca5a5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--panel2); padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 28px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.footer-grid nav a:hover { color: var(--text); }
.foot-h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-tag { color: var(--muted); margin-top: 12px; font-size: .94rem; max-width: 34ch; }
.foot-p { color: var(--muted); font-size: .94rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { font-size: .8rem; color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- subpages ---------- */
.page-hero { padding: clamp(44px, 6vw, 74px) 0 0; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.backlink { font-size: .9rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .5em; color: var(--muted); }
.prose p, .prose li { font-size: 1rem; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel2); }
tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .cols-3, .cols-4, .cols-2, .footer-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .hero-glow { opacity: .7; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 14px 22px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a:last-child { border-bottom: 0; margin-top: 10px; }
  .site-nav .btn-sm { text-align: center; }
  .cta-row .btn { width: 100%; }
  .site-header { position: sticky; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}

.section-flush { padding-top: 0; }
.pt-80 { padding-top: 80px; }
.mt-18 { margin-top: 18px; }
