:root {
  --bg: #0b0b0f;
  --bg-2: #111117;
  --surface: #15151c;
  --surface-2: #1c1c25;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #9a9ba6;
  --accent: #f2101a;
  --accent-2: #ff4d55;
  --radius: 16px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* Background glows */
.glow {
  position: fixed;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
}

.glow-a {
  top: -220px;
  right: -160px;
  background: var(--accent);
}

.glow-b {
  bottom: -320px;
  left: -220px;
  background: #5b1018;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 30px rgba(242, 16, 26, 0.3);
}

.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s;
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 520px;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, rgba(242, 16, 26, 0.18), transparent 62%);
}

.ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  animation: spin 40s linear infinite;
}

.hero-logo {
  position: relative;
  width: 62%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(242, 16, 26, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Clients */
.clients {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.clients p {
  margin: 0;
  font-size: 14px;
}

.clients ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clients li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  font-size: 14px;
}

/* Sections */
.section {
  padding-top: 110px;
}

/* Jumping to a section from the menu: its heading clears the sticky bar. */
section[id] {
  scroll-margin-top: 0;
}

.section[id] {
  padding-top: 0;
  margin-top: 110px;
  scroll-margin-top: 92px;
}

.section h2 {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 12px 0 40px;
  color: var(--muted);
  font-size: 17px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(242, 16, 26, 0.35);
  transform: translateY(-3px);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

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

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(242, 16, 26, 0.12);
}

.icon svg,
.search svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Modules */
.module-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.tab .count {
  margin-left: 6px;
  opacity: 0.65;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.search svg {
  stroke: var(--muted);
  width: 18px;
  height: 18px;
}

.search input {
  width: 100%;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.search:focus-within {
  border-color: rgba(242, 16, 26, 0.5);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.module h3 {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.module .tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}

.module p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.empty {
  margin-top: 24px;
  text-align: center;
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq a {
  color: var(--accent-2);
}

/* CTA */
.cta {
  padding-top: 110px;
}

.cta-box {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid rgba(242, 16, 26, 0.3);
  border-radius: 22px;
  background: radial-gradient(circle at 0% 0%, rgba(242, 16, 26, 0.18), transparent 60%), var(--surface);
}

.cta-box > div {
  flex: 1;
}

.cta-box h2 {
  font-size: 30px;
}

.cta-box p {
  margin: 6px 0 0;
}

/* Footer */
.footer {
  margin-top: 110px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.footer-row p {
  margin: 0;
}

.footer-row a.muted {
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: left;
  }

  .hero-art {
    max-width: 360px;
    margin: 0 auto;
    order: -1;
  }

  .features,
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  .features,
  .modules {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 28px;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .ring::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
