:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #626b5f;
  --surface: #fffdf7;
  --surface-raised: #ffffff;
  --field: #f1eee4;
  --line: #dad5c8;
  --brand: #2e7d64;
  --brand-dark: #185842;
  --accent: #d68a39;
  --shadow: 0 22px 70px rgba(32, 42, 34, 0.16);
  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:
    linear-gradient(135deg, rgba(46, 125, 100, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbf7ed 0%, #fffdf7 42%, #f4f0e8 100%);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(46, 125, 100, 0.5);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  background: rgba(251, 247, 237, 0.72);
}

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

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
}

nav {
  gap: 6px;
}

nav a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #39443d;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  background: rgba(46, 125, 100, 0.1);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

#apps,
#company,
#contact {
  scroll-margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  min-height: calc(86dvh - 72px);
  padding: 34px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--brand);
}

.button.secondary {
  color: var(--brand-dark);
  border-color: rgba(46, 125, 100, 0.24);
  background: rgba(255, 255, 255, 0.64);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 390px);
  aspect-ratio: 0.76;
  padding: 14px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 36px;
  background: #1c1e21;
  box-shadow: var(--shadow);
}

.phone-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 38%),
    radial-gradient(circle at 20% 18%, rgba(91, 232, 156, 0.38), transparent 28%),
    #111416;
}

.phone-screen img {
  display: block;
  border-radius: 24px;
}

.phone-screen h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.phone-screen p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.phone-screen .app-kicker {
  margin-bottom: 8px;
  color: #7bf0ab;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.app-card,
.company-list,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

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

.app-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
}

.app-card img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.app-card h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.platform {
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.status {
  padding: 8px 12px;
  border: 1px solid rgba(214, 138, 57, 0.34);
  border-radius: 999px;
  color: #7a4817;
  background: #fff5e8;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
}

.status.available {
  border-color: rgba(46, 125, 100, 0.28);
  color: var(--brand-dark);
  background: rgba(46, 125, 100, 0.1);
}

.store-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid rgba(46, 125, 100, 0.5);
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.store-link:hover {
  border-bottom-color: var(--brand-dark);
}

.company-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
}

.company-list div {
  min-width: 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.company-list div:nth-child(-n + 2) {
  border-top: 0;
}

.company-list div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.contact-panel h2 {
  max-width: 650px;
}

.contact-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 2px solid var(--brand);
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 760px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    padding-inline: 16px;
  }

  nav {
    flex: 0 0 auto;
  }

  nav a {
    padding-inline: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .phone-shell {
    width: 100%;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .phone-screen {
    min-height: 170px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
  }

  .phone-screen img {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    border-radius: 20px;
  }

  .phone-screen h2 {
    font-size: 1.55rem;
  }

  .section {
    padding: 54px 0;
  }

  .contact-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .company-list {
    grid-template-columns: 1fr;
  }

  .company-list div,
  .company-list div:nth-child(odd) {
    border-right: 0;
  }

  .company-list div:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    margin: 0;
    padding-inline: 14px;
    padding-block: 12px;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 2.82rem;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section h2,
  .contact-panel h2 {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .hero-text {
    margin-bottom: 24px;
  }

  .button {
    width: 100%;
  }

  .phone-shell {
    border-radius: 8px;
  }

  .phone-screen {
    min-height: 146px;
    padding: 18px;
  }

  .phone-screen img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .contact-panel {
    padding: 24px;
  }
}

@media (max-width: 360px) {
  main,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .site-header {
    padding-inline: 10px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .phone-screen {
    gap: 14px;
  }

  .phone-screen img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 300px) {
  .site-header {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
