:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #61707b;
  --line: #dbe4ea;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --alpine: #0c5268;
  --glacier: #dff4ff;
  --signal: #f0a12b;
  --forest: #1e6b5f;
  --shadow: 0 18px 60px rgba(21, 32, 38, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 234, 0.86);
  background: rgba(251, 252, 253, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #40515c;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--alpine);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.14);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: rgba(23, 32, 38, 0.18);
  box-shadow: none;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero.compact {
  min-height: 78svh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 252, 253, 0.95) 0%, rgba(251, 252, 253, 0.82) 40%, rgba(251, 252, 253, 0.18) 72%),
    linear-gradient(0deg, rgba(251, 252, 253, 0.90) 0%, rgba(251, 252, 253, 0) 30%);
}

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  width: min(650px, 100%);
  padding: 72px 0 120px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.app-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(920px, calc(100vw - 40px));
  max-width: none;
}

.app-icon {
  width: clamp(64px, 12vw, 96px);
  height: clamp(64px, 12vw, 96px);
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.lede {
  max-width: 610px;
  margin: 24px 0 0;
  color: #30414b;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.below-fold-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: min(1120px, calc(100% - 40px));
  color: #40515c;
  font-size: 0.9rem;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: #eef6f8;
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.project-card,
.feature-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.04);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.project-card h3,
.feature-card h3,
.detail-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.project-card p,
.feature-card p,
.detail-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--glacier);
  color: #164759;
  font-size: 0.82rem;
  font-weight: 750;
}

.app-shot {
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(12, 82, 104, 0.94), rgba(30, 107, 95, 0.92)),
    radial-gradient(circle at 82% 12%, rgba(240, 161, 43, 0.55), transparent 28%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone {
  width: 148px;
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 28px;
  background: #101820;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  border-radius: 19px;
  background: linear-gradient(180deg, #f8fafc 0%, #dff4ff 100%);
  padding: 16px 12px;
  overflow: hidden;
}

.screenshot-phone {
  width: min(230px, 52vw);
  padding: 9px;
  border-radius: 34px;
}

.screenshot-screen {
  padding: 0;
  border-radius: 25px;
}

.screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-bar,
.screen-row,
.screen-card {
  border-radius: 6px;
}

.screen-bar {
  width: 56%;
  height: 8px;
  background: #172026;
}

.screen-card {
  height: 78px;
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 38, 0.1);
}

.screen-row {
  height: 10px;
  margin-top: 12px;
  background: rgba(23, 32, 38, 0.18);
}

.screen-row.short {
  width: 68%;
}

.feature-card,
.detail-card {
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.details-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
}

.details-panel dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px 18px;
  margin: 0;
}

.details-panel dt {
  color: var(--muted);
  font-weight: 750;
}

.details-panel dd {
  margin: 0;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  font-size: 0.95rem;
}

.prose {
  max-width: 780px;
}

.prose h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.prose h2 {
  margin-top: 42px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.prose p {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero-inner,
  .section-inner,
  .below-fold-cue,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding-top: 64px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(251, 252, 253, 0.96) 0%, rgba(251, 252, 253, 0.76) 62%, rgba(251, 252, 253, 0.2) 100%),
      linear-gradient(0deg, rgba(251, 252, 253, 0.92) 0%, rgba(251, 252, 253, 0) 36%);
  }

  .grid.three,
  .grid.two,
  .project-card,
  .split {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 20px;
  }

  .app-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .details-panel dl {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .nav-links .hide-small {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .section {
    padding: 64px 0;
  }

  .app-shot {
    min-height: 220px;
  }
}
