:root {
  --bg-main: #020817;
  --bg-elevated: #050816;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --accent-alt: #22c55e;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 253, 0.12);
  --radius-xl: 22px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.88);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, -apple-system, sans-serif;
  --transition-fast: 0.22s ease;
  --max-width: 1120px;
}

/* Reset / base */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  background: radial-gradient(circle at top, #020817 0, #020817 40%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1440px;
  padding: 16px 16px 32px;
}

/* Header */

header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 60%) border-box,
              rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 10px;
  z-index: 40;
  border: 1px solid rgba(148, 163, 253, 0.16);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0, #38bdf8, transparent),
              radial-gradient(circle at 90% 80%, #22c55e, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.96);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 16px;
  text-transform: uppercase;
  color: #e5e7eb;
}

/* Desktop nav */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-soft);
  flex: 1;
  justify-content: center;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.nav-desktop a:hover {
  color: var(--accent);
  background-color: rgba(15, 23, 42, 0.9);
}

.nav-desktop a.active {
  color: var(--accent);
  background-color: rgba(15, 23, 42, 0.96);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
}

/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-header {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--accent);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cta-header:hover {
  background: rgba(10, 18, 30, 0.98);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.38);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 14px;
  height: 2px;
  background: var(--text-soft);
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(40deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-40deg);
}

/* Mobile nav drawer */

.nav-mobile {
  display: none;
  position: absolute;
  top: 54px;
  right: 10px;
  left: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.99);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.98);
  flex-direction: column;
  gap: 6px;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.nav-mobile a:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--accent);
}

.nav-mobile.open {
  display: flex;
}

/* Main */

main {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero */

#hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2.2fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background-color: rgba(9, 9, 11, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  margin-bottom: 10px;
}

.eyebrow .tag {
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.96);
  color: var(--text-soft);
  font-size: 10px;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #f9fafb;
}

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

.hero-sub {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--text-soft);
}

.hero-metrics span {
  max-width: 160px;
}

.hero-metrics span strong {
  display: block;
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.btn-primary,
.btn-ghost {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  color: #020817;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.95);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 55px rgba(15, 23, 42, 1);
}

.btn-ghost {
  background-color: rgba(9, 9, 11, 0.98);
  color: var(--text-soft);
  border-color: rgba(75, 85, 99, 0.9);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(10, 18, 30, 1);
}

.hero-note {
  font-size: 10px;
  color: var(--text-soft);
}

/* Hero right */

.hero-right {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.13), transparent),
              radial-gradient(circle at bottom, rgba(34, 197, 94, 0.06), transparent),
              rgba(5, 8, 22, 0.98);
  border-radius: var(--radius-xl);
  padding: 14px 12px 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.hero-right-title {
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-spark {
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: rgba(10, 18, 30, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-size: 9px;
  color: var(--text-soft);
}

.pipeline-step {
  padding: 6px;
  border-radius: 10px;
  background-color: rgba(9, 9, 11, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipeline-step .label {
  font-size: 7px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.pipeline-step strong {
  font-size: 9px;
  font-weight: 500;
  color: #e5e7eb;
}

.score-card {
  margin-top: 2px;
  padding: 7px 8px;
  border-radius: 14px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.score-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.mini-metric {
  font-size: 8px;
  color: var(--text-soft);
}

/* Sections */

.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 20px;
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 18px;
}

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

.card {
  padding: 12px 11px;
  border-radius: var(--radius-xl);
  background-color: rgba(5, 8, 22, 0.98);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.95);
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 1);
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--accent);
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
}

.list li::before {
  content: "•";
  color: var(--accent-alt);
  margin-right: 6px;
  font-size: 11px;
}

/* How we work */

.side-by-side {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 18px;
  align-items: flex-start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: var(--text-soft);
}

.step-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.quote {
  padding: 10px 11px;
  border-radius: var(--radius-xl);
  background-color: rgba(9, 9, 11, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.85);
  font-size: 9px;
  color: var(--text-soft);
}

.quote strong {
  color: var(--accent);
  font-weight: 500;
}

/* Contact */

#contact-form {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  color: var(--text-soft);
  font-size: 9px;
}

.field input,
.field textarea {
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background-color: rgba(5, 8, 22, 0.98);
  color: var(--text-main);
  font-size: 10px;
  outline: none;
  transition: all var(--transition-fast);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.field-full {
  grid-column: span 2;
}

.submit-wrap {
  grid-column: span 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.note-inline {
  font-size: 8px;
  color: var(--text-soft);
}

/* Footer */

footer {
  margin-top: 32px;
  padding-top: 12px;
  font-size: 9px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

footer a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 9px;
  transition: all var(--transition-fast);
}

footer a:hover {
  color: var(--accent);
}

/* Breakpoints */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  .page {
    padding: 14px 14px 28px;
  }

  #hero {
    gap: 24px;
  }

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

/* Tablets / portrait */
@media (max-width: 768px) {
  header {
    padding: 10px 14px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  #hero {
    grid-template-columns: 1fr;
  }

  main {
    gap: 54px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .side-by-side {
    grid-template-columns: 1fr;
  }

  #contact-form {
    grid-template-columns: 1fr;
  }

  .field-full,
  .submit-wrap {
    grid-column: span 1;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .page {
    padding: 10px 10px 22px;
  }

  header {
    border-radius: 16px;
    gap: 10px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .hero-metrics span {
    max-width: 100%;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-right {
    margin-top: 6px;
  }
}
