/* Design tokens — mapped from Figma Make / Tailwind reference */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --white: #ffffff;

  --border-subtle: rgb(30 41 59 / 0.5);
  --border-card: rgb(51 65 85 / 1);
  --bg-panel: rgb(15 23 42 / 0.5);
  --bg-muted: rgb(15 23 42 / 0.3);
  --bg-nav: rgb(2 6 23 / 0.5);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --container: 80rem;
  --container-narrow: 72rem;
  --container-cta: 56rem;
  --container-prose: 48rem;
  --container-prose-sm: 42rem;

  --space-section-y: 6rem;
  --space-section-y-lg: 8rem;
  --space-hero-y: 6rem;
  --pad-x: 1.5rem;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;

  --shadow-primary: 0 10px 15px -3px rgb(59 130 246 / 0.2), 0 4px 6px -4px rgb(59 130 246 / 0.15);
  --shadow-primary-lg: 0 25px 50px -12px rgb(59 130 246 / 0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--slate-300);
  background: linear-gradient(to bottom, var(--slate-950), var(--slate-900), var(--slate-950));
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--cta {
  max-width: var(--container-cta);
}

/* —— Header / Nav —— */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: linear-gradient(to right, var(--blue-400), var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo--footer {
  letter-spacing: 0.12em;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--slate-300);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav__toggle:hover {
  color: var(--white);
  background: rgb(30 41 59 / 0.6);
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--slate-300);
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}

.nav__link:hover {
  color: var(--white);
}

.nav__cta {
  margin-left: 0.25rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(to right, var(--blue-500), var(--violet-600));
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: linear-gradient(to right, var(--blue-600), var(--violet-700));
  box-shadow: var(--shadow-primary-lg);
}

.btn--outline {
  color: var(--white);
  border: 1px solid var(--slate-700);
  background: transparent;
}

.btn--outline:hover {
  background: var(--slate-800);
}

.btn--outline--thick {
  border-width: 2px;
}

/* —— Icons —— */
.icon {
  flex-shrink: 0;
}

.icon--sm {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

.text-blue {
  color: var(--blue-400);
}

/* —— Sections —— */
.section {
  padding-block: var(--space-section-y);
}

.section--tight {
  padding-block: 2rem;
}

.section--muted {
  background: var(--bg-muted);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--white);
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 4rem;
  max-width: var(--container-prose);
  font-size: 1.125rem;
  color: var(--slate-400);
  text-align: center;
}

.section__subtitle--narrow {
  max-width: var(--container-prose-sm);
  margin-bottom: 4rem;
}

/* —— Hero —— */
.hero {
  padding-top: var(--space-hero-y);
  padding-bottom: var(--space-section-y);
}

.hero__intro {
  text-align: center;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: var(--blue-400);
  background: rgb(59 130 246 / 0.1);
  border: 1px solid rgb(59 130 246 / 0.2);
  border-radius: 9999px;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, var(--white), #dbeafe, #ddd6fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin: 0 auto 2.5rem;
  max-width: var(--container-prose);
  font-size: 1.25rem;
  line-height: 1.625;
  color: var(--slate-400);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero__tagline {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--slate-500);
}

.hero__visual {
  position: relative;
  margin-top: 4rem;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(59 130 246 / 0.2), rgb(139 92 246 / 0.2));
  filter: blur(64px);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.panel {
  border-radius: var(--radius-md);
}

.panel--glass {
  position: relative;
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--slate-800);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* —— Cards —— */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.gap-sm {
  gap: 1rem;
}

.gap-md {
  gap: 1.5rem;
}

.gap-lg {
  gap: 2rem;
}

.card--system {
  padding: 1.5rem;
  background: rgb(30 41 59 / 0.5);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease);
}

.card--system:hover {
  border-color: rgb(59 130 246 / 0.5);
}

.card--system__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card--system__title {
  font-weight: 500;
  color: var(--white);
}

.card--system__status {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.card--system__metric {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
}

.card--pillar {
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease);
}

.card--pillar:hover {
  border-color: rgb(59 130 246 / 0.3);
}

.card--pillar__icon {
  margin-bottom: 1rem;
  color: var(--blue-400);
  transition: color var(--duration) var(--ease);
}

.card--pillar:hover .card--pillar__icon {
  color: var(--violet-400);
}

.card--pillar__head {
  margin-bottom: 0.5rem;
}

.text-gradient--pillars {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--blue-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card--pillar__subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.card--pillar__text {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.625;
}

.card--capability {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease);
}

.card--capability:hover {
  border-color: rgb(59 130 246 / 0.3);
}

.card--capability__icon {
  margin-top: 0.125rem;
}

.card--capability__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

.card--capability__text {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.625;
}

.card--benefit {
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease);
}

.card--benefit:hover {
  border-color: rgb(59 130 246 / 0.3);
}

.card--benefit__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.card--benefit__text {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.625;
}

/* —— Trust —— */
.trust {
  border-block: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.trust__inner {
  text-align: center;
  color: var(--slate-400);
}

.trust__inner p {
  margin: 0;
}

/* —— Process —— */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.process__step {
  text-align: center;
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to bottom right, var(--blue-500), var(--violet-600));
  border-radius: var(--radius-sm);
}

.process__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
}

.process__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-400);
}

/* —— Platform preview —— */
.stack {
  display: flex;
  flex-direction: column;
}

.stack--sm {
  gap: 0.75rem;
}

.stack--md {
  gap: 1.5rem;
}

.preview {
  background: var(--bg-panel);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgb(30 41 59 / 0.5);
  border-bottom: 1px solid var(--slate-700);
}

.preview__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--slate-600);
}

.preview__title {
  margin: 0 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
}

.preview__body {
  padding: 1.5rem;
}

.preview__body--flush {
  padding: 0;
}

.metric {
  padding: 1rem;
  background: rgb(30 41 59 / 0.5);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-sm);
}

.metric__label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.metric__value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.metric__status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--blue-400);
}

.metric__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--blue-500);
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: rgb(30 41 59 / 0.3);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-sm);
}

.integration-row__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.integration-row__pulse {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--blue-500);
}

.integration-row__name {
  color: var(--slate-300);
}

.integration-row__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.integration-row__tp {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.pill--blue {
  color: var(--blue-400);
  background: rgb(59 130 246 / 0.2);
  border: 1px solid rgb(59 130 246 / 0.3);
}

.pill--violet {
  color: var(--violet-400);
  background: rgb(139 92 246 / 0.2);
  border: 1px solid rgb(139 92 246 / 0.3);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-800);
}

.data-table tbody td {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgb(30 41 59 / 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.data-table tbody td:nth-child(1) {
  color: var(--slate-400);
}

.data-table tbody td:nth-child(2) {
  color: var(--slate-300);
}

.data-table tbody td:nth-child(3),
.data-table tbody td:nth-child(4) {
  color: var(--slate-500);
}

/* —— CTA —— */
.section--cta {
  position: relative;
  padding-block: var(--space-section-y-lg);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(37 99 235 / 0.2), rgb(124 58 237 / 0.2));
  filter: blur(64px);
  pointer-events: none;
}

.container--cta {
  position: relative;
  text-align: center;
}

.cta__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}

.cta__lead {
  margin: 0 auto 2.5rem;
  max-width: var(--container-prose);
  font-size: 1.25rem;
  color: var(--slate-300);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.section--cta .btn--primary {
  box-shadow: 0 25px 50px -12px rgb(59 130 246 / 0.3);
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--slate-800);
  padding-block: 4rem;
  background: var(--slate-950);
}

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

.footer__heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li + li {
  margin-top: 0.75rem;
}

.footer__list a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--duration) var(--ease);
}

.footer__list a:hover {
  color: var(--white);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-800);
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

/* —— Capabilities section title spacing —— */
#capabilities .section__title {
  margin-bottom: 4rem;
}

#process .section__title {
  margin-bottom: 4rem;
}

#benefits .section__title {
  margin-bottom: 4rem;
}

/* —— Tablet —— */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 769px) and (max-width: 1024px) {
  .process.grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--4.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Mobile nav —— */
@media (max-width: 768px) {
  .nav__inner {
    position: relative;
  }

  .nav__toggle {
    display: flex;
    z-index: 2;
  }

  .nav__panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--pad-x) 1.25rem;
    background: rgb(2 6 23 / 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
  }

  body.nav-open .nav__panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__link {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
  }

  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    justify-content: center;
  }

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

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

  .process.grid--4 {
    grid-template-columns: 1fr;
  }

  .integration-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .integration-row__right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
