/* Tiqora product landing — Cobalt Compact tokens (dark primary) */
:root {
  --bg: #0e1015;
  --surface: #151821;
  --surface-subtle: #1b1f2b;
  --ink: #e7eaf2;
  --muted: #8891a3;
  --hairline: #242a38;
  --accent: #5b8cff;
  --accent-dim: rgba(91, 140, 255, 0.14);
  --green: #3ecf9a;
  --amber: #f5a83c;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(14, 16, 21, 0.82);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0e1015;
}

.btn-primary:hover {
  background: #7aa3ff;
  text-decoration: none;
  color: #0e1015;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--muted);
  text-decoration: none;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 16ch;
  font-weight: 800;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

.notice {
  margin-top: 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(245, 168, 60, 0.28);
  background: rgba(245, 168, 60, 0.08);
  color: #f0d9a8;
  font-size: 0.92rem;
  max-width: 52ch;
}

/* ── Sections ────────────────────────────────────────────── */
section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

/* ── Features ────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.feature .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature p.feature-link {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.feature-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.feature-link a:hover {
  text-decoration: underline;
}

/* ── Screenshots ─────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.shot {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--surface-subtle);
}

.shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}

.shot-wide {
  grid-column: 1 / -1;
}

/* ── Paths / stack ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Compatibility matrix ───────────────────────────────── */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.matrix th,
.matrix td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.matrix th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-subtle);
}

.matrix tr:last-child td {
  border-bottom: none;
}

.matrix code {
  font-size: 0.85em;
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-ok {
  background: rgba(62, 207, 154, 0.15);
  color: var(--green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(91, 140, 255, 0.16), transparent 55%),
    var(--surface);
  border-block: 1px solid var(--hairline);
  padding: 3rem 0;
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta p {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  max-width: 42ch;
}

.cta .btn-row {
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.legal {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 70ch;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .shots {
    grid-template-columns: 1fr;
  }

  .shot-wide {
    grid-column: auto;
  }

  .hero {
    padding-top: 3rem;
  }
}

/* Per-screenshot light/dark switch — one on each shot, all kept in sync.
   Sits as a compact overlay in the top-right corner of the image. */
.shot-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.82;
  transition: opacity 0.12s ease;
}
.shot:hover .shot-toggle,
.shot-toggle:focus-within {
  opacity: 1;
}
.shot-toggle button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: color 0.12s ease, background 0.12s ease;
}
.shot-toggle button:hover {
  color: var(--ink);
}
.shot-toggle button.is-active {
  color: #fff;
  background: var(--accent);
}
