:root {
  color-scheme: light;
  --ink: #16202f;
  --muted: #637083;
  --line: #d9e0e8;
  --panel: #ffffff;
  --page: #f4f7f7;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f2ef;
  --amber: #d99a26;
  --red: #c2412d;
  --shadow: 0 18px 44px rgba(22, 32, 47, 0.14);
  --content-max: 1180px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: var(--safe-top) max(18px, calc((100vw - var(--content-max)) / 2)) 0 max(18px, calc((100vw - var(--content-max)) / 2));
  color: #ffffff;
  background: rgba(15, 22, 30, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand,
.top-nav,
.actions,
.beta-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 7px;
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.28);
}

.top-nav {
  justify-content: flex-end;
  gap: 6px;
}

.top-nav a {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav .nav-action {
  color: var(--ink);
  background: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 92vh);
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(15, 22, 30, 0.86) 0%, rgba(15, 22, 30, 0.66) 38%, rgba(15, 22, 30, 0.12) 100%);
}

.hero-content {
  position: relative;
  width: min(var(--content-max), calc(100% - 36px));
  margin: 0 auto;
  padding: 104px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: 5.75rem;
  line-height: 0.94;
}

h2 {
  font-size: 2.65rem;
  line-height: 1.04;
}

h3 {
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.55;
}

.actions,
.beta-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  touch-action: manipulation;
}

.primary-action {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

.primary-action:hover {
  background: var(--accent-strong);
}

.secondary-action {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.secondary-action:hover {
  border-color: var(--accent);
}

.section-band,
.split-section {
  padding: 72px max(18px, calc((100vw - var(--content-max)) / 2));
}

.section-band {
  background: #ffffff;
}

.section-inner {
  display: grid;
  gap: 36px;
}

.section-heading {
  max-width: 760px;
}

.section-heading .eyebrow,
.split-section .eyebrow {
  color: var(--accent-strong);
}

.section-heading p,
.split-section p,
.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2) {
  border-top: 4px solid var(--amber);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.split-section > div:first-child {
  max-width: 720px;
}

.beta-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-top: 1px solid var(--line);
  padding: 0 max(18px, calc((100vw - var(--content-max)) / 2)) max(var(--safe-bottom), 0px);
  color: var(--muted);
  background: #ffffff;
  font-weight: 750;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    min-height: 86px;
    padding-top: max(14px, var(--safe-top));
  }

  .top-nav {
    overflow-x: auto;
    max-width: 62vw;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .hero {
    min-height: 88vh;
  }

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

  .hero-shade {
    background: linear-gradient(180deg, rgba(15, 22, 30, 0.68) 0%, rgba(15, 22, 30, 0.8) 42%, rgba(15, 22, 30, 0.92) 100%);
  }

  .hero-content {
    padding-top: 128px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lede {
    font-size: 1.06rem;
  }

  .feature-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .beta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 128px;
    white-space: normal;
    line-height: 1.05;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .top-nav a:not(.nav-action) {
    display: none;
  }

  .actions,
  .beta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-band,
  .split-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: max(18px, var(--safe-bottom));
  }
}
