:root {
  --bg: #050509;
  --bg-elevated: #0b0c10;
  --bg-soft: #111217;
  --border-subtle: #1f2933;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #ffffff;
  --accent-soft: #27272f;
  --accent-strong: #f9fafb;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.55);
  --max-width: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background:
    radial-gradient(circle at top, #1e293b 0, #020617 36%, #000000 100%);
  color: var(--text);
  line-height: 1.7;
}

/* Global */

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 25%, #ffffff, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(148, 163, 184, 0.5);
}

.brand-logo span {
  font-weight: 800;
  color: #000000;
  font-size: 18px;
  letter-spacing: -0.08em;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 15px;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.nav a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(75, 85, 99, 0.6);
  color: var(--accent-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav a.nav-active {
  background: #f9fafb;
  color: #020617;
  border-color: #e5e7eb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

/* Main */

main {
  flex: 1;
}

/* Hero */

.hero {
  padding: 34px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero-highlight {
  background: linear-gradient(to right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, transform 0.06s ease;
}

.btn-primary {
  background: #f9fafb;
  color: #020617;
  border-color: #e5e7eb;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.95);
}

.btn-primary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

.hero-footnote {
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  background: radial-gradient(circle at top, #111827, #020617 58%);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.hero-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-metric {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-metric-sub {
  font-size: 13px;
  color: var(--muted);
}

.hero-tools {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tool-pill {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sections */

section {
  padding: 10px 0 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 380px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: radial-gradient(circle at top left, #111827, #020617 70%);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: 14px;
  font-weight: 600;
}

.card-text {
  font-size: 13px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

/* Page layouts */

.page-hero {
  padding: 30px 0 12px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
}

.page-card {
  background: radial-gradient(circle at top left, #111827, #020617 70%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8);
}

.page-card h2 {
  margin-top: 18px;
  font-size: 16px;
}

.page-card p,
.page-card li {
  font-size: 14px;
  color: var(--muted);
}

.page-card ul {
  padding-left: 20px;
}

/* Footer */

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, #020617, #020617 40%, #000000 100%);
}

.footer-inner {
  padding: 16px 0 20px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-inner {
    padding: 10px 0;
  }
  .nav {
    display: none;
  }
  .hero {
    padding-top: 24px;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 24px;
  }
}
