:root {
  --bg: #f7faf8;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #071108;
  --muted: #46524b;
  --line: rgba(7, 17, 8, 0.12);
  --green: #0ac847;
  --green-dark: #067d32;
  --red: #ef1d2f;
  --shadow: 0 20px 60px rgba(7, 17, 8, 0.10);
}

:root[data-theme="dark"] {
  --bg: #020504;
  --panel: #071108;
  --card: #0c1710;
  --text: #ffffff;
  --muted: #c7d2cc;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(10, 200, 71, 0.18), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(239, 29, 47, 0.11), transparent 24%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(90deg, rgba(10, 200, 71, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(239, 29, 47, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
}

a {
  color: inherit;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: min(1040px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.top-brand img,
.brand img {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

.top-brand span,
.brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.top-brand strong,
.brand strong {
  color: var(--green);
  font-size: 15px;
  line-height: 1;
}

.top-brand small,
.brand small {
  color: var(--muted);
  font-size: 12px;
}

.theme-toggle {
  min-width: 76px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
  font-weight: 900;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  margin: 0;
  color: var(--text);
  font-size: clamp(31px, 6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h1::first-line {
  color: var(--green);
}

.lead {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.58;
}

.app-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.preview-ticker {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  animation: ticker 10s linear infinite;
}

.phone-shot {
  position: relative;
  margin: 0;
  justify-self: center;
}

.phone-shot img {
  width: 116px;
  display: block;
  border: 5px solid #050806;
  border-radius: 22px;
  object-fit: contain;
  background: #050806;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.main-shot {
  grid-row: span 2;
}

.main-shot img {
  width: min(100%, 178px);
  border-width: 6px;
  border-radius: 27px;
}

.phone-shot figcaption {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(5, 8, 6, 0.78);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.app-gallery::after {
  content: "";
  position: absolute;
  inset: 42px -8px 16px;
  z-index: -1;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(10, 200, 71, 0.16), rgba(239, 29, 47, 0.09)),
    color-mix(in srgb, var(--panel) 75%, transparent);
}

@keyframes ticker {
  from { text-indent: 100%; }
  to { text-indent: -120%; }
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.action-group {
  display: grid;
  gap: 5px;
}

.action-caption {
  margin: 0;
  padding-left: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.action-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  color: var(--text);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(7, 17, 8, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--green);
  outline: none;
}

.primary-action {
  border-left-color: var(--red);
  background:
    linear-gradient(90deg, rgba(10, 200, 71, 0.13), transparent 45%),
    var(--card);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: #071108;
  font-size: 12px;
  font-weight: 950;
}

.primary-action .card-icon {
  background: var(--red);
}

.action-card:nth-child(1) .card-icon,
.action-group:nth-child(2) .card-icon {
  background: var(--green);
}

.action-group:nth-child(3) .card-icon {
  background: var(--green-dark);
}

.action-group:nth-child(4) .card-icon {
  background: #071108;
}

.action-card b {
  min-width: 0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.2;
}

.action-card em {
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.primary-action em {
  background: var(--red);
}

.support-strip,
.contact-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.support-strip {
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-strip h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(20px, 3vw, 28px);
}

.support-strip a,
.contact-panel a,
.inline-actions a,
.site-header nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.support-strip a:first-of-type,
.button.primary,
.nav-download {
  color: #ffffff !important;
  border-color: var(--green) !important;
  background: var(--green) !important;
}

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

.contact-panel article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.contact-panel b,
.page-card h3 {
  color: var(--green);
}

.contact-panel span,
.page-card p,
.page-card li {
  color: var(--muted);
  line-height: 1.6;
}

.support-alert {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: min(340px, calc(100% - 32px));
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 22px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-alert[hidden] {
  display: none;
}

.support-alert button {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 950;
}

.support-alert strong {
  color: var(--green);
  padding-right: 30px;
}

.support-alert p {
  margin: 0;
  color: var(--muted);
}

.support-alert span {
  display: flex;
  gap: 8px;
}

.support-alert a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.support-alert a:last-child {
  background: var(--red);
}

.site-header {
  width: min(1040px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page {
  width: min(920px, calc(100% - 24px));
  margin: 18px auto 44px;
}

.page-card {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-card h1 {
  margin-bottom: 18px;
}

.page-card ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .hero-panel,
  .support-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .app-gallery {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    padding: 2px 2px 10px;
  }

  .preview-ticker {
    grid-column: 1 / -1;
  }

  .main-shot {
    grid-row: auto;
  }

  .phone-shot img,
  .main-shot img {
    width: 128px;
    border-width: 5px;
    border-radius: 22px;
  }

  .support-strip a {
    width: 100%;
  }

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

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .landing-header,
  .page-shell,
  .site-header,
  .page {
    width: calc(100% - 18px);
  }

  .landing-header {
    border-radius: 18px;
  }

  .page-shell {
    padding-top: 10px;
  }

  .hero-panel {
    padding: 15px;
    border-radius: 22px;
  }

  .action-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .action-card em {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    padding: 8px 12px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .support-alert {
    right: 9px;
    bottom: 9px;
    width: calc(100% - 18px);
  }
}
