:root {
  --accent: #058c87;
  --foreground: #121a1f;
  --warning: #faad33;
  --destructive: #f24f40;
  --sky: #2e80db;
  --paper: #fbfaf7;
  --muted: #657179;
  --line: rgba(18, 26, 31, 0.12);
  --line-strong: rgba(18, 26, 31, 0.2);
  --shadow-soft: 0 24px 70px rgba(18, 26, 31, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--foreground);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

code,
pre {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.78);
  box-shadow: 0 16px 40px rgba(18, 26, 31, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  background: url(/assets/badge.png) center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(5, 140, 135, 0.4));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: rgba(18, 26, 31, 0.72);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a,
.site-footer a,
.text-link {
  text-underline-offset: 0.22em;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: min(760px, 88svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(251, 250, 247, 0.98) 0%,
      rgba(251, 250, 247, 0.88) 32%,
      rgba(251, 250, 247, 0.5) 52%,
      rgba(251, 250, 247, 0.1) 78%
    ),
    linear-gradient(180deg, rgba(251, 250, 247, 0) 70%, var(--paper) 100%);
}

.hero-content {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: min(760px, 88svh);
  align-content: center;
  margin: 0 auto;
  padding: 112px 0 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4.6rem, 14vw, 10rem);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 0.84;
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(18, 26, 31, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.94rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(5, 140, 135, 0.22);
}

.button-primary:hover {
  background: #047a76;
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  backdrop-filter: blur(18px);
}

.button-ghost:hover {
  border-color: rgba(5, 140, 135, 0.42);
  color: var(--accent);
}

.proof-strip {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  margin: -30px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.proof-strip div {
  min-height: 96px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 0.98rem;
}

.proof-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0 0;
}

.section-heading {
  display: grid;
  max-width: 720px;
  gap: 6px;
  margin-bottom: 34px;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 780;
  line-height: 1.2;
}

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

.feature-card,
.use-case-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 40px rgba(18, 26, 31, 0.06);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card p,
.use-case-grid p,
.quickstart-copy p,
.final-cta p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 820;
}

.feature-icon-teal {
  background: var(--accent);
}

.feature-icon-blue {
  background: var(--sky);
}

.feature-icon-amber {
  background: var(--warning);
  color: var(--foreground);
}

.quickstart-section,
.activity-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.quickstart-copy {
  max-width: 440px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 760;
}

.terminal,
.activity-code {
  overflow: hidden;
  border: 1px solid rgba(18, 26, 31, 0.84);
  border-radius: var(--radius);
  background: #111a1f;
  box-shadow: 0 24px 70px rgba(18, 26, 31, 0.22);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #526067;
}

.terminal-bar span:first-child {
  background: var(--destructive);
}

.terminal-bar span:nth-child(2) {
  background: var(--warning);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #eef7f6;
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  line-height: 1.65;
}

.activity-section {
  align-items: stretch;
}

.activity-panel {
  display: grid;
  align-content: space-between;
  gap: 42px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foreground);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.activity-panel .eyebrow {
  color: #8de4df;
}

.activity-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.activity-header h2 {
  max-width: 8ch;
  color: #ffffff;
}

.activity-pill {
  display: inline-grid;
  min-width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid rgba(5, 140, 135, 0.96);
  border-radius: 50%;
  color: #ffffff;
  font-weight: 820;
}

.activity-demo {
  display: grid;
  gap: 18px;
}

.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(5, 140, 135, 0.16);
}

.activity-row strong {
  color: #8de4df;
  font-size: 0.9rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.progress-track-demo span {
  width: 67%;
}

.activity-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  text-align: right;
}

.activity-code {
  display: grid;
  align-content: center;
  min-height: 360px;
}

.use-case-grid article {
  min-height: 190px;
  padding: 22px;
}

.use-case-grid span {
  display: inline-grid;
  min-width: 42px;
  height: 28px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 999px;
  background: rgba(5, 140, 135, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
}

.use-case-grid article:nth-child(5n + 1) span {
  background: rgba(46, 128, 219, 0.1);
  color: var(--sky);
}

.use-case-grid article:nth-child(2n + 3) span {
  background: rgba(250, 173, 51, 0.16);
  color: #8a5a00;
}

.final-cta {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(96px, 13vw, 150px) 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0 auto;
  max-width: 820px;
}

.final-cta p {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 1.08rem;
}

.final-cta .button {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.brand-small {
  color: var(--foreground);
  font-size: 0.88rem;
}

.brand-small .brand-mark {
  width: 20px;
  height: 20px;
}

.static-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 128px;
}

.static-hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--line);
}

.static-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.92;
}

.static-hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-page {
  padding: 42px 0 108px;
}

.content-page h2 {
  margin: 38px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page p {
  margin: 14px 0 0;
}

.content-page ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
}

.content-page li + li {
  margin-top: 10px;
}

.content-page a {
  color: var(--accent);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 900px) {
  .hero {
    min-height: 90svh;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(251, 250, 247, 0.98) 0%,
        rgba(251, 250, 247, 0.92) 44%,
        rgba(251, 250, 247, 0.28) 74%,
        var(--paper) 100%
      );
  }

  .hero-content {
    min-height: 90svh;
    align-content: start;
    padding-top: 122px;
  }

  .hero-copy {
    max-width: 520px;
  }

  .proof-strip,
  .feature-grid,
  .use-case-grid,
  .quickstart-section,
  .activity-section {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: 0;
  }

  .quickstart-copy {
    max-width: 640px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1120px);
    min-height: 52px;
    gap: 12px;
    padding: 10px 12px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.82rem;
  }

  .site-nav a[href="#use-cases"] {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    min-height: 88svh;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: clamp(4rem, 24vw, 7rem);
  }

  .hero-copy {
    max-width: 34rem;
    font-size: 1.02rem;
  }

  .button {
    min-height: 44px;
    padding: 0 16px;
  }

  .proof-strip,
  .section,
  .final-cta,
  .static-main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .proof-strip div,
  .feature-card,
  .use-case-grid article,
  .activity-panel {
    padding: 20px;
  }

  .feature-card,
  .use-case-grid article {
    min-height: auto;
  }

  .feature-icon {
    margin-bottom: 28px;
  }

  pre {
    padding: 18px;
    font-size: 0.76rem;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
