:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5f6f82;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --orange: #ff7a00;
  --orange-dark: #d85f00;
  --teal: #0f8f7a;
  --navy: #111b2c;
  --blue: #2563eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 27, 44, 0.88) 0%, rgba(17, 27, 44, 0.74) 46%, rgba(17, 27, 44, 0.18) 100%),
    url("/api/icons/app-icon-512.png") right 8vw center / min(520px, 50vw) no-repeat,
    linear-gradient(135deg, #101a2b 0%, #17352f 100%);
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0;
  font-size: 0.82rem;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy > p:last-of-type {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.9;
}

.hero-actions,
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.24);
}

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

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.screen-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 10px solid #06101f;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

.screen-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-card-main {
  right: 24px;
  top: 0;
  width: min(315px, 48vw);
  aspect-ratio: 922 / 2048;
}

.screen-card-sub {
  left: 0;
  bottom: 8px;
  width: min(268px, 40vw);
  aspect-ratio: 922 / 2048;
  transform: rotate(-3deg);
}

.problem,
.flow,
.fit,
.contact,
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 82px) clamp(18px, 4vw, 32px);
}

.problem {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: end;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.18;
  margin-bottom: 0;
}

.problem > p,
.contact p,
.fit-grid p,
.flow span,
.features p {
  color: var(--muted);
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}

.features article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.features span {
  color: var(--orange);
  font-weight: 900;
}

.features h3 {
  margin: 22px 0 12px;
  font-size: 1.2rem;
}

.section-head {
  margin-bottom: 26px;
}

.flow ol {
  counter-reset: flow;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 64px minmax(0, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff1df;
  color: var(--orange-dark);
  font-weight: 900;
}

.flow b {
  font-size: 1.08rem;
}

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

.fit-grid p {
  min-height: 150px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact {
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact div {
  max-width: 700px;
}

.contact .primary {
  flex-shrink: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 18px 42px;
  color: #52606d;
  border-top: 1px solid var(--line);
}

footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-media {
    order: 2;
    min-height: 520px;
  }

  .screen-card-main {
    right: clamp(8px, 12vw, 180px);
  }

  .screen-card-sub {
    left: clamp(8px, 10vw, 130px);
  }

  .problem,
  .features,
  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow li {
    grid-template-columns: 54px 1fr;
  }

  .flow span {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
  }

  nav {
    display: none;
  }

  .hero {
    padding: 34px 16px 40px;
    background:
      linear-gradient(180deg, rgba(17, 27, 44, 0.92), rgba(17, 27, 44, 0.8)),
      url("/api/icons/app-icon-512.png") right -76px top 42px / 260px no-repeat,
      #111b2c;
  }

  .hero-copy > p:last-of-type {
    font-size: 0.96rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-media {
    min-height: 430px;
  }

  .screen-card {
    width: 224px;
    border-width: 8px;
    border-radius: 28px;
  }

  .screen-card-main {
    right: 0;
    width: 224px;
  }

  .screen-card-sub {
    left: 0;
    bottom: 0;
    width: 196px;
  }

  .problem,
  .features,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .features article,
  .fit-grid p {
    min-height: auto;
  }

  .flow li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow span {
    grid-column: auto;
  }

  .contact .primary {
    width: 100%;
  }
}
