:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --background: #f8fafc;
  --foreground: #10151f;
  --muted: #5f6875;
  --line: #d8dee8;
  --line-strong: rgba(15, 23, 42, 0.12);
  --card: #ffffff;
  --card-alpha: rgba(255, 255, 255, 0.8);
  --primary: #10151f;
  --primary-text: #ffffff;
  --accent: #0f766e;
  --accent-soft: #e4f4f1;
  --accent-text: #115e59;
  --gold: #b7791f;
  --gold-soft: #fff5dc;
  --panel: #111827;
  --panel-text: #e5edf7;
  --page-gradient:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #edf1f6 100%);
  --shadow: 0 24px 70px rgba(16, 21, 31, 0.09);
  background: var(--background);
  color: var(--foreground);
}

:root[data-theme="dark"] {
  --background: #090c10;
  --foreground: #f8fafc;
  --muted: #a1a8b3;
  --line: #252b35;
  --line-strong: rgba(226, 232, 240, 0.14);
  --card: #111720;
  --card-alpha: rgba(17, 23, 32, 0.84);
  --primary: #e8f5f0;
  --primary-text: #07110f;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.13);
  --accent-text: #99f6e4;
  --gold: #f7c46a;
  --gold-soft: rgba(247, 196, 106, 0.13);
  --panel: #05070a;
  --panel-text: #e5edf7;
  --page-gradient:
    radial-gradient(circle at 0% 0%, rgba(45, 212, 191, 0.16), transparent 30%),
    linear-gradient(180deg, #090c10 0%, #111318 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-gradient);
  color: var(--foreground);
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

nav a:hover {
  background: var(--accent-soft);
  color: var(--foreground);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-alpha);
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  font-size: 1.16rem;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.section {
  padding: 76px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: 44px;
  padding-top: 34px;
}

.hero-copy,
.section-heading,
.workflow > div,
.contact-section > div {
  display: grid;
  gap: 16px;
}

.eyebrow {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.8vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.lede,
.section-heading p,
.workflow span,
.feature-grid p,
.proof-grid p,
.intro-grid p,
.contact-section p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.lede {
  max-width: 680px;
  font-size: 1.15rem;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}

.button.secondary {
  background: var(--card-alpha);
  color: var(--foreground);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats div,
.feature-grid article,
.proof-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-alpha);
  box-shadow: 0 18px 48px rgba(16, 21, 31, 0.05);
}

.hero-stats div {
  min-height: 98px;
  padding: 18px;
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.profile-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--panel-text);
}

.panel-bar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
}

.panel-bar span:nth-child(2) {
  background: #f59e0b;
}

.panel-bar span:nth-child(3) {
  background: #22c55e;
  margin-right: 8px;
}

pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.72;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
}

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

.feature-grid,
.proof-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-grid article,
.proof-grid article {
  min-height: 230px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: steps;
}

.workflow li {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-alpha);
  counter-increment: steps;
}

.workflow li::before {
  content: counter(steps);
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 900;
}

.workflow strong,
.workflow span {
  grid-column: 2;
}

.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.contact-section p {
  max-width: 720px;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.back-to-top {
  width: 42px;
  height: 42px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.emerge-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.emerge-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero,
  .intro-section,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .proof-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
  }

  nav {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    padding-top: 26px;
    gap: 28px;
  }

  .hero-stats,
  .feature-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .proof-grid article {
    min-height: auto;
  }

  pre {
    padding: 18px;
  }

  code {
    font-size: 0.82rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
