@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #fff;
  --panel: #f6f9fb;
  --line: #dfe7ec;
  --text: #131f30;
  --secondary: #445368;
  --accent: #067163;
  --accent-soft: #e8f8f4;
  --radius: 1.15rem;
  --heading: "Space Grotesk", Inter, sans-serif;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, video { display: block; width: 100%; height: auto; }
a:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(80rem, 100% - 6rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  padding: .7rem 1rem;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  gap: clamp(1rem, 3vw, 2.75rem);
  align-items: center;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  justify-self: start;
  gap: .65rem;
  font: 700 1.55rem/1 var(--heading);
  letter-spacing: -.06em;
  text-decoration: none;
}

.mark {
  width: .75rem;
  height: .75rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.header-inner nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); margin-left: auto; }
.header-inner nav a, .footer-inner > a:last-child {
  font-size: .875rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--secondary);
}

.header-inner nav a:hover, .footer-inner > a:last-child:hover { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 13% 15%, #edf8fb, transparent 56%), var(--background);
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(32rem, 44vw, 39rem);
  padding-block: clamp(3rem, 5vw, 5.25rem);
}

.hero-copy { width: min(46%, 36rem); }

h1, h2, h3 { font-family: var(--heading); letter-spacing: -.045em; }
h1 { font-size: clamp(2.15rem, 3.35vw, 3.25rem); line-height: 1.06; font-weight: 650; text-wrap: balance; }
.project-name {
  display: block;
  width: fit-content;
  margin-bottom: .95rem;
  color: var(--accent);
  font-size: clamp(3.65rem, 6.25vw, 6.2rem);
  line-height: .92;
  font-weight: 700;
  background: linear-gradient(110deg, #047566 5%, #167c95 58%, #3f639f 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro, .section-heading p, .demo p, .comparison p { color: var(--secondary); line-height: 1.65; }
.intro { max-width: 31rem; margin-block: 1.35rem 1.5rem; font-size: clamp(1rem, 1.32vw, 1.125rem); }

.project-resources { display: flex; gap: .65rem; }

.resource-button {
  min-height: 2.75rem;
  min-width: 5rem;
  padding-inline: 1rem;
  border: 1px solid #cbd8de;
  border-radius: 999px;
  background: var(--panel);
  color: var(--secondary);
  font: 700 .94rem/1 Inter, system-ui, sans-serif;
}

.release { margin-top: .75rem; color: var(--secondary); font-size: .875rem; line-height: 1.55; }

.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(76%, 85rem);
  overflow: hidden;
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  mask-image: linear-gradient(90deg, transparent 17%, rgb(0 0 0 / 17%) 32%, #000 68%);
}

.hero-visual figcaption {
  position: absolute;
  inset: auto max(3rem, calc((100vw - 80rem) / 2)) 1.25rem auto;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgb(255 255 255 / 94%);
  font-size: .875rem;
  line-height: 1.35;
}

.hero-visual figcaption span { margin-inline: .2rem; color: var(--accent); }

.section { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.55rem; line-height: 1.2; }
.section-heading p { max-width: 47rem; margin-top: .65rem; }

.figure-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: clamp(.45rem, 1.6vw, 1.15rem);
  cursor: zoom-in;
  box-shadow: 0 .75rem 2.5rem rgb(38 65 87 / 7%);
}

.figure-link:hover { border-color: var(--accent); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.1rem, 3vw, 2.5rem); }
.demo { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.demo video { aspect-ratio: 16 / 9; background: #0a0b10; }
.demo video:focus-visible { outline-offset: -4px; }
.demo-copy { padding: 1.15rem 1.25rem 1.3rem; }
.demo-copy p, .comparison p { margin-top: .45rem; }
.comparison-list { display: grid; gap: 2.5rem; }
.comparison figcaption { margin-bottom: .8rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 1.5rem; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3rem); }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 1.8rem; min-height: 0; }
  .hero-copy { width: min(100%, 36rem); }
  .hero-visual { position: relative; z-index: 0; width: 100%; border-radius: var(--radius); }
  .hero-visual img { height: auto; aspect-ratio: 16 / 9; mask-image: none; }
  .hero-visual figcaption { inset: auto .85rem .85rem auto; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 6.75rem; }
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; min-height: unset; padding-block: .8rem .65rem; row-gap: .8rem; }
  .header-inner nav { flex-basis: 100%; gap: 1.4rem; margin-left: 0; }
  .hero-inner { padding-block: 2.5rem; }
  h1 { font-size: clamp(1.95rem, 7vw, 2.65rem); }
  .hero-visual figcaption { inset: auto .55rem .55rem auto; }
  .demo-copy { padding-inline: 1rem; }
}
