:root {
  --charcoal: #0f1112;
  --charcoal-2: #151819;
  --charcoal-3: #1d2222;
  --stone: #e9e6e1;
  --ink: #f7f4ef;
  --muted: #a8b4b0;
  --line: #303837;
  --teal: #2d7f73;
  --teal-hover: #246b61;
  --teal-light: #3a9285;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: var(--teal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand img {
  display: block;
  width: min(250px, 46vw);
  max-height: 58px;
  object-fit: contain;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 30px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px) 28px;
  min-height: calc(100vh - 86px);
}

.hero-copy,
.app-preview,
.section,
.legal-section,
.legal-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal-2);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 108px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lede,
.section p,
.legal-hero p,
.legal-section p {
  color: #c9d4d0;
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
.legal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary {
  color: #fff;
  background: var(--teal);
}

.primary:hover {
  background: var(--teal-hover);
}

.secondary,
.legal-links a {
  color: var(--ink);
  background: #171b1c;
  border: 1px solid #394442;
}

.app-preview {
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: var(--teal);
}

.preview-header img {
  width: 190px;
}

.preview-header span {
  padding: 9px 13px;
  background: rgba(15, 17, 18, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  padding: 20px;
}

.preview-grid section {
  min-height: 640px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--charcoal-2);
}

.preview-grid section > p {
  color: var(--teal-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.check,
.searchbar,
.guidance {
  margin-top: 12px;
  padding: 14px;
  color: #dce6e2;
  background: rgba(45, 127, 115, 0.1);
  border: 1px solid rgba(45, 127, 115, 0.52);
  border-radius: 8px;
}

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

.guidance strong {
  grid-column: 1 / -1;
  font-weight: 400;
}

.guidance span {
  padding: 12px;
  border: 1px solid #35413f;
  border-radius: 7px;
  font-size: 12px;
}

.section {
  margin: 20px clamp(20px, 4vw, 56px);
  padding: clamp(26px, 4vw, 46px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
}

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

.feature-grid article,
.stat-stack div,
.steps li,
.legal-section article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.privacy-band,
.deploy,
.licensing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.stat-stack,
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-stack strong {
  display: block;
  font-size: 26px;
  font-weight: 400;
}

.stat-stack span {
  color: var(--muted);
}

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-weight: 800;
}

.steps p,
.feature-grid p,
.legal-section p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer p {
  margin-bottom: 0;
}

.legal-main {
  padding: 28px clamp(20px, 4vw, 56px);
}

.legal-hero,
.legal-section {
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 44px);
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section article h3 {
  color: var(--stone);
}

code {
  color: var(--stone);
  background: rgba(45, 127, 115, 0.14);
  border: 1px solid rgba(45, 127, 115, 0.28);
  border-radius: 5px;
  padding: 2px 6px;
}

@media (max-width: 920px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .privacy-band,
  .deploy,
  .licensing {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .feature-grid,
  .guidance {
    grid-template-columns: 1fr;
  }

  .preview-grid section {
    min-height: auto;
  }
}
