/* ============================================================
   Telion marketing site — design tokens (dark, matches app)
   Palette pulled directly from the approved icon mark:
   charcoal outline (#33353f), stone grey (#7a7d8f), purple (#863bff)
   ============================================================ */

:root {
  --purple:       #863bff;
  --purple-light: #9d5fff;
  --purple-tint:  rgba(134,59,255,0.14);
  --purple-tint-2:rgba(134,59,255,0.07);

  --stone:        #7a7d8f;
  --stone-dim:    #5e6172;

  --bg:           #0b0d13;
  --bg-alt:       #0f1119;
  --surface:      #12141c;
  --surface-2:    #171a24;
  --line:         #23252e;
  --line-strong:  #33353f;

  --text:         #eceef3;
  --text-muted:   #9aa0b4;
  --text-faint:   #6b6f80;
  --white:        #ffffff;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --maxw: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--purple-light);
  display: inline-block;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11,13,19,0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--text) !important;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); }

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--purple-light); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

@media (max-width: 780px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; border-bottom: 1px solid var(--line); gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.18s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-light); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-light); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); }
.hero .lede { font-size: 18px; max-width: 560px; margin: 0 auto 30px; color: var(--text-muted); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

.page-hero { padding: 56px 0 20px; text-align: left; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.page-hero .lede { max-width: 620px; font-size: 17px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }

.bg-alt { background: var(--bg-alt); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card .ref { font-family: var(--font-mono); font-size: 12px; color: var(--purple-light); margin-bottom: 10px; display: block; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.stat .num { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--purple-light); }
.stat .label { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 18px; text-align: center; } }

/* ---------- Logo mark (hero signature) ---------- */
.mark-wrap { display: flex; justify-content: center; margin: 40px 0 8px; }
.mark-wrap svg { width: 220px; height: auto; }

/* ---------- Numbered steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--font-mono); font-size: 15px; color: var(--purple-light); font-weight: 600; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---------- Callout box ---------- */
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--purple); border-radius: 8px; padding: 22px 24px; background: var(--purple-tint-2); }
.callout h3 { font-size: 16px; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Skill matrix strip ---------- */
.skill-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.skill-tag { font-family: var(--font-mono); font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; color: var(--text-muted); background: var(--surface); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
table.compare th, table.compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
table.compare th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 500; }
table.compare td:first-child, table.compare th:first-child { text-align: left; font-family: var(--font-body); color: var(--text); font-size: 14.5px; }
table.compare th:first-child { color: var(--text-faint); }
table.compare th.telion-col { color: var(--purple-light); }
table.compare td.telion-col { background: var(--purple-tint-2); }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--purple-light); font-weight: 700; }
.no { color: var(--text-faint); }
table.compare tr.headline td { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text); }

/* ---------- Pricing ---------- */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.highlight { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.price-card .tier { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple-light); margin-bottom: 10px; }
.price-card .amount { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.price-card .amount span { font-family: var(--font-body); font-size: 14px; color: var(--text-faint); font-weight: 400; }
.price-card ul { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.price-card li::before { content: '—'; color: var(--purple-light); margin-right: 8px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card.beta { border-color: var(--purple); background: var(--purple-tint-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--font-body); font-size: 14.5px; background: var(--surface); color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.contact-fact { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-fact:last-child { border-bottom: 1px solid var(--line); }
.contact-fact b { font-size: 13.5px; display: block; color: var(--text); }
.contact-fact span { font-size: 13.5px; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; padding: 56px 40px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-banner p { max-width: 480px; margin: 0 auto 24px; }
.cta-banner .hero-ctas { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--purple-light); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 13.5px; color: var(--text-faint); }
