:root {
  --bg-body: #020617;
  --bg-elevated: #020617;
  --bg-elevated-alt: #020617;
  --border-soft: rgba(148, 163, 184, 0.3);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
  --shadow-subtle: 0 18px 40px rgba(15, 23, 42, 0.6);
  --spacing-unit: 1rem;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #020617 0, #000 70%);
  color: var(--text-main);
  min-height: 100vh;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  padding-inline: 1.25rem;
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--text-main);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 26px 60px rgba(56, 189, 248, 0.5);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn.full {
  width: 100%;
}

/* Hero */

.hero {
  padding-block: 4.5rem 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1rem;
}

.hero-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

/* Rail status card */

.rail-status-card {
  background: radial-gradient(circle at top left, #0f172a, #020617 70%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rail-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pill {
  padding: 0.15rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid transparent;
}

.pill-ok {
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.2);
}

.pill-warn {
  border-color: rgba(252, 211, 77, 0.4);
  color: #facc15;
  background: rgba(202, 138, 4, 0.18);
}

.status-list {
  margin: 0;
  padding: 0.4rem 0 0.2rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding-block: 0.18rem;
}

.status-row dt {
  margin: 0;
  color: var(--text-soft);
}

.status-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.status-links a {
  font-size: 0.75rem;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.45);
  text-decoration: none;
  color: var(--text-muted);
}

.status-links a:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* Sections */

.section {
  padding-block: 3.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 70%);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-note {
  margin-top: 1.8rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Demo */

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 1.6rem;
}

.demo-dropzone {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 1.5rem 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

.demo-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-subtle);
}

.demo-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.demo-sub {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.demo-info {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, #020617, #020617 70%);
  padding: 1.5rem 1.4rem;
  font-size: 0.88rem;
}

.demo-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.18rem;
  gap: 1rem;
}

.demo-row span:first-child {
  color: var(--text-soft);
}

.demo-row span:last-child {
  text-align: right;
}

.demo-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top, #020617, #020617 80%);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.pricing-card-featured {
  background: radial-gradient(circle at top, #0f172a, #020617 85%);
  box-shadow: var(--shadow-soft);
  border-color: rgba(56, 189, 248, 0.6);
}

.badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.pricing-card h3 {
  margin: 0 0 0.1rem;
  font-size: 1.02rem;
}

.price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.price-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-card ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top, #020617, #020617 80%);
  padding: 1.3rem 1.2rem;
}

.step-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.step-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

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

/* Trust */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top, #020617, #020617 80%);
  padding: 1.3rem 1.2rem;
}

.trust-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  margin-top: 2.5rem;
}

.footer-inner {
  padding: 1rem 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text-main);
}

/* Utilities */

.mono {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

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

.visually-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-status-card {
    order: -1;
  }

  .demo-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-grid,
  .steps-grid,
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .hero {
    padding-block: 3rem 2.5rem;
  }
}

