/* =========================================================
   Tiresias — base styles
   Single-file CSS, mobile-first, no build step required.
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-soft: #161a23;
  --border: #232836;
  --text: #e7e9ee;
  --text-dim: #a3a9b8;
  --muted: #6b7283;
  --brand: #635bff;
  --brand-2: #22d3ee;
  --brand-grad: linear-gradient(135deg, #635bff 0%, #22d3ee 100%);
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

p { margin: 0 0 1rem; color: var(--text-dim); }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand-grad);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: var(--bg);
  opacity: 0.85;
}

.brand-name { font-size: 1.05rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.primary-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 91, 255, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: #2e3445;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

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

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0.7;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(40% 60% at 30% 30%, rgba(99, 91, 255, 0.25), transparent 70%),
    radial-gradient(40% 60% at 70% 40%, rgba(34, 211, 238, 0.2), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* ----------- Page hero (about) ----------- */

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(99, 91, 255, 0.15), transparent 70%);
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin: 0; max-width: 60ch; }

/* ----------- Section heads ----------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-head p { font-size: 1.05rem; }

/* ----------- Grids / cards ----------- */

.features { padding: clamp(3rem, 7vw, 5rem) 0; }
.values   { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #2e3445;
  background: var(--bg-soft);
}
.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.card p { margin: 0; }

/* ----------- Two-column / stats ----------- */

.two-col {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding: clamp(3rem, 6vw, 4rem) var(--pad);
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stats div { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ----------- CTA section ----------- */

.cta {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(99, 91, 255, 0.18), transparent 70%);
}
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner .cta-row { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-inner nav {
  display: flex;
  gap: 1.25rem;
}
.footer-inner nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-inner nav a:hover { color: var(--text); }
.footer-inner .muted { font-size: 0.85rem; margin: 0; }

/* ----------- Mobile ----------- */

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .primary-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .primary-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .primary-nav a.btn {
    border-bottom: 0;
    margin-top: 0.75rem;
    justify-content: center;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ----------- Reduced motion ----------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------- Focus rings ----------- */

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