:root {
  --fg: #ececf1;
  --muted: #9aa3b2;
  --accent: #ff6b35;
  --accent-2: #3b82f6;
  --bg: #08080b;
  --bg-elevated: #0e0e14;
  --card: #12121a;
  --line: #22222e;
  --live: #22c55e;
  --beta: #eab308;
  --roadmap: #64748b;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 107, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  z-index: 0;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 22px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--fg);
  text-decoration: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0 4px;
  }
  .site-nav.open {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.14);
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.06;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.hero-accent {
  color: var(--accent);
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

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

.catalog-line {
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Panels & cards */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.status-grid {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.dot.live {
  background: var(--live);
}

.dot.beta {
  background: var(--beta);
}

.dot.roadmap {
  background: var(--roadmap);
}

@media (prefers-reduced-motion: no-preference) {
  .dot.live {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.meta-line {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 8px;
}

.trust-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(18, 18, 26, 0.8);
}

.trust-pill strong {
  color: var(--fg);
  font-weight: 600;
}

/* Sections */
section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-lede {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 68ch;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  height: 100%;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

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

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}

.tier {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}

.tier.live {
  color: var(--live);
}

.tier.beta {
  color: var(--beta);
}

.tier.roadmap {
  color: var(--roadmap);
}

.pain-card .cure {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--fg);
}

.pain-card .cure-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-elevated);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.compare-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-col.with li {
  color: var(--fg);
}

.compare-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.compare-chip.beta {
  background: rgba(234, 179, 8, 0.15);
  color: var(--beta);
}

.compare-chip.live {
  background: rgba(34, 197, 94, 0.15);
  color: var(--live);
}

/* Split / form */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .split {
    grid-template-columns: 1fr;
  }
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.horizon {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(100, 116, 139, 0.08);
}

.horizon h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.horizon ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
