:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-alt: #eef3ed;
  --ink: #111712;
  --muted: #5b665e;
  --line: #d9e2da;
  --green: #2f7d4f;
  --green-dark: #1e5437;
  --blue: #315f9a;
  --red: #c94d32;
  --yellow: #e2b03b;
  --shadow: 0 18px 50px rgba(17, 23, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

.site-header {
  align-items: center;
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  flex: 0 0 auto;
}

.brand span {
  overflow-wrap: anywhere;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  justify-content: flex-end;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--red);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 23, 18, 0.9), rgba(17, 23, 18, 0.56) 52%, rgba(17, 23, 18, 0.18)),
    url("/assets/hero-bg.png");
  background-color: #132018;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  min-height: clamp(420px, 62vh, 620px);
  padding: clamp(44px, 9vw, 92px) clamp(18px, 5vw, 64px);
}

.hero-content {
  max-width: 760px;
}

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

.hero .eyebrow {
  color: #a7e2b8;
}

h1,
h2,
h3 {
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.hero-copy {
  color: #ecf5ee;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 22px;
  max-width: 660px;
}

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

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

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

.button.primary:hover {
  background: #e7f3e9;
  color: var(--green-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
}

.button.secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.section,
.page-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(46px, 8vw, 84px) clamp(18px, 5vw, 64px);
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

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

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: 56px 1fr;
  min-height: 254px;
  padding: 22px;
}

.app-card p {
  color: var(--muted);
  margin-top: 10px;
}

.app-card a {
  display: inline-block;
  font-weight: 800;
  margin-top: 18px;
}

.app-icon {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-size: 1.4rem;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.app-icon.audio {
  background: var(--green);
}

.app-icon.pool {
  background: var(--blue);
}

.app-icon.gps {
  background: var(--red);
}

.status {
  color: var(--green-dark) !important;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px !important;
  text-transform: uppercase;
}

.contact-band {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 62px) clamp(18px, 5vw, 64px);
}

.contact-band .eyebrow {
  color: #a7e2b8;
}

.contact-band h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.contact-link {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 78px;
  padding: 22px clamp(18px, 5vw, 64px);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(246, 248, 244, 0.96), rgba(246, 248, 244, 0.78)),
    url("/assets/page-bg.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 9vw, 90px) clamp(18px, 5vw, 64px);
}

.page-hero-inner {
  max-width: 980px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  max-width: 12ch;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  margin-top: 18px;
  max-width: 760px;
}

.content-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.panel,
.support-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.panel h2,
.support-item h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.panel p,
.support-item p,
.panel li {
  color: var(--muted);
  margin-top: 12px;
}

.panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.support-list {
  display: grid;
  gap: 16px;
}

.app-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-detail .app-icon {
  height: 72px;
  width: 72px;
}

.store-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.store-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
}

.back-link {
  display: inline-block;
  font-weight: 800;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .app-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    background:
      linear-gradient(0deg, rgba(17, 23, 18, 0.88), rgba(17, 23, 18, 0.58)),
      url("/assets/hero-bg.png");
    background-position: center;
    min-height: 520px;
  }

  .app-card,
  .app-detail {
    grid-template-columns: 1fr;
  }

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