
:root {
  --bg: #020617;
  --bg-elevated: #020817;
  --bg-soft: #020617;
  --bg-alt: #020617;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --primary: #6366f1;
  --primary-soft: rgba(99, 102, 241, 0.1);
  --primary-strong: #4f46e5;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --accent: #22c55e;
  --danger: #ef4444;
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.8);
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617 55%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 55%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 0%, #22c55e, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f9fafb;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.93rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.15s ease-out;
}

.main-nav a:hover {
  color: #e5e7eb;
  background: rgba(148, 163, 184, 0.12);
}

.nav-link-active {
  color: #e5e7eb;
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
}

/* Mobile nav */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
  transition: all 0.18s ease-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 56px 1.25rem auto;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), rgba(15, 23, 42, 0.98));
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  margin: 0.4rem 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  color: var(--text-soft);
  max-width: 32rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #a5b4fc;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-meta span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

/* Hero visual */

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 420px;
  border-radius: 1.75rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.45), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.app-window-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.65));
}

.app-window-header .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.38);
}

.app-title {
  margin-left: 0.25rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.9);
}

.app-window-body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.92);
  opacity: 0.8;
}

.pill-active {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

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

.dash-card {
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
}

.dash-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
}

.dash-card p {
  margin: 0;
  color: rgba(209, 213, 219, 0.9);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.85);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.85);
}

.btn-full {
  width: 100%;
}

/* Generic cards */

.feature-card,
.module-card,
.panel,
.form-card,
.download-card,
.roadmap-card,
.docs-nav,
.docs-content {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.section-alt .feature-card,
.section-alt .module-card,
.section-alt .panel {
  background: rgba(15, 23, 42, 0.96);
}

.feature-card h3,
.module-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.feature-card p,
.module-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Grids */

.features-grid,
.module-grid {
  display: grid;
  gap: 1.25rem;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.two-col {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: flex-start;
}

/* CTA */

.cta-section {
  padding: 3.5rem 0 4.5rem;
}

.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.9rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.4), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(129, 140, 248, 0.6);
  box-shadow: var(--shadow-soft);
}

.cta-card h2 {
  margin-top: 0;
}

.cta-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Page hero */

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  max-width: 620px;
  color: var(--text-soft);
}

/* Download cards */

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

.download-card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.download-card p {
  margin-top: 0;
  color: var(--text-soft);
}

.download-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.download-list li {
  margin-bottom: 0.2rem;
}

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

/* Roadmap */

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

.roadmap-card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.roadmap-card ul {
  padding-left: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
}

.tag-active {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
}

/* Docs */

.docs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
}

.docs-nav {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  padding: 1rem 1rem;
  border-radius: var(--radius-lg);
}

.docs-nav a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.5rem;
  margin-bottom: 0.1rem;
  transition: background 0.12s ease-out, color 0.12s ease-out;
}

.docs-nav a:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

.docs-content article + article {
  margin-top: 1.15rem;
}

/* Forms */

.form-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-size: 0.83rem;
  color: var(--text-soft);
}

.input,
textarea.input,
select.input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
}

.input:focus,
textarea.input:focus,
select.input:focus {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6);
}

textarea.input {
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-row .input {
  flex: 1;
}

.form-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Checklist */

.checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.checklist li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.25rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: #22c55e;
}

/* Legal */

.legal h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 1.8rem;
  margin-top: 1.5rem;
}

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

.footer-logo {
  margin-bottom: 0.6rem;
}

.footer-text {
  margin-top: 0;
  max-width: 320px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-footer h3 {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.site-footer a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Responsive */

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

  .hero-visual {
    order: -1;
  }

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

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

  .docs-nav {
    position: static;
    order: -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .nav-container {
    padding-inline: 1.25rem;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .cta-card {
    padding: 1.4rem 1.3rem;
  }

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

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
}
