:root {
  --bg: #070d0c;
  --bg-soft: #0b1413;
  --surface: #101918;
  --surface-raised: #15211f;
  --surface-light: #f7faf8;
  --border: rgba(222, 235, 231, 0.14);
  --border-strong: rgba(222, 235, 231, 0.24);
  --text: #f4f8f6;
  --text-muted: #a7b7b1;
  --text-dark: #111715;
  --accent: #2fd27d;
  --accent-strong: #19b866;
  --accent-blue: #18a7ff;
  --accent-warm: #f4b84a;
  --max-width: 1120px;
  --reading-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background:
    linear-gradient(180deg, #07100f 0%, var(--bg) 42%, #080a0d 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", Roboto, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(47, 210, 125, 0.3);
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 13, 12, 0.82);
  backdrop-filter: blur(18px);
}

header.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.brand .logo-dot {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 210, 125, 0.95), rgba(24, 167, 255, 0.9));
  box-shadow: 0 12px 32px rgba(47, 210, 125, 0.28);
  display: inline-block;
}

.brand .logo-dot::before,
.brand .logo-dot::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 99px;
  background: rgba(7, 13, 12, 0.85);
}

.brand .logo-dot::before {
  top: 9px;
}

.brand .logo-dot::after {
  bottom: 9px;
}

nav.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

nav.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease;
}

nav.top-nav a:hover,
nav.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

main {
  width: min(100%, var(--reading-width));
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.home-main {
  width: min(100%, var(--max-width));
  padding-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
  margin: 0 0 14px;
}

h2 {
  font-size: 27px;
  margin: 46px 0 16px;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

p {
  color: var(--text-muted);
}

code {
  color: #dceee7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}

.lede {
  font-size: 18px;
  color: #d9e5e0;
  margin-bottom: 28px;
}

.updated {
  color: var(--text-muted);
  font-size: 13px;
  margin: -4px 0 32px;
}

ul {
  color: var(--text-muted);
  padding-left: 1.25em;
}

li + li {
  margin-top: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a9f0c6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-section {
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  min-height: 650px;
  padding: 74px max(24px, calc((100vw - var(--max-width)) / 2)) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: 44px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.98) 0%, rgba(5, 8, 9, 0.86) 42%, rgba(5, 8, 9, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 8, 9, 0.1), rgba(5, 8, 9, 0.88)),
    url("media/hero-analytics.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(7, 13, 12, 0), var(--bg));
  pointer-events: none;
}

.hero-copy,
.hero-showcase {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 610px;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-lede {
  margin: 0;
  max-width: 590px;
  color: #d5e0dc;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  background: var(--accent);
  color: #06130f;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(47, 210, 125, 0.24);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  background: #6ee99e;
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts span {
  color: #c8d6d1;
  font-size: 13px;
  line-height: 1.2;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-facts strong {
  color: var(--text);
}

.hero-showcase {
  min-height: 548px;
}

.hero-backdrop {
  display: none;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  background: #eef1f5;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 0 10px rgba(255, 255, 255, 0.06);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-primary {
  width: 242px;
  right: 176px;
  top: 2px;
  z-index: 3;
}

.phone-secondary {
  width: 218px;
  right: 0;
  top: 94px;
  z-index: 2;
  opacity: 0.94;
}

.floating-stat {
  position: absolute;
  left: 20px;
  bottom: 48px;
  z-index: 4;
  min-width: 178px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(8, 17, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.floating-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.floating-stat strong {
  display: block;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  margin-top: 6px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-heading h2,
.screen-copy h2 {
  margin-top: 0;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.feature-section,
.screens-section,
.link-section {
  padding: 76px 0 0;
}

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

.feature-card,
.card,
.screen-card,
.faq-item,
.note-box {
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.feature-card {
  padding: 22px;
}

.feature-card p,
.card p {
  margin: 0;
  font-size: 14px;
}

.feature-icon {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(47, 210, 125, 0.12);
  border: 1px solid rgba(47, 210, 125, 0.24);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  border-radius: 99px;
}

.inventory-icon::before {
  width: 18px;
  height: 18px;
  left: 9px;
  top: 9px;
  border: 3px solid var(--accent);
  border-radius: 6px;
}

.inventory-icon::after {
  width: 10px;
  height: 3px;
  left: 14px;
  top: 18px;
  background: var(--accent);
}

.filter-icon::before {
  width: 20px;
  height: 3px;
  left: 9px;
  top: 12px;
  background: var(--accent-blue);
  box-shadow: 0 7px 0 var(--accent-blue), 0 14px 0 var(--accent-blue);
}

.filter-icon::after {
  width: 7px;
  height: 7px;
  left: 18px;
  top: 10px;
  background: var(--surface);
  border: 2px solid var(--accent-blue);
  box-shadow: -7px 7px 0 -2px var(--surface), -7px 7px 0 0 var(--accent-blue), 8px 14px 0 -2px var(--surface), 8px 14px 0 0 var(--accent-blue);
}

.chart-icon::before {
  width: 5px;
  height: 18px;
  left: 10px;
  bottom: 9px;
  background: var(--accent-warm);
  box-shadow: 8px -5px 0 var(--accent-warm), 16px -12px 0 var(--accent-warm);
}

.screens-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}

.screen-copy {
  max-width: 420px;
}

.screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screen-card {
  margin: 0;
  padding: 12px;
  overflow: hidden;
}

.screen-card img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: #eef1f5;
}

.screen-card figcaption {
  color: #d8e4df;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
}

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

.card {
  position: relative;
  min-height: 164px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 210, 125, 0.55);
  background:
    linear-gradient(180deg, rgba(47, 210, 125, 0.1), rgba(255, 255, 255, 0.04));
}

.card-kicker {
  display: inline-block;
  color: #a9f0c6;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 28px;
}

.note-box {
  padding: 18px 20px;
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
}

.faq-item {
  padding: 20px;
  margin-bottom: 14px;
}

.faq-item dt {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-item dd {
  margin: 0;
  color: var(--text-muted);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.16);
}

footer.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a {
  color: var(--text-muted);
  margin-right: 14px;
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 940px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 58px;
    gap: 32px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-showcase {
    min-height: 500px;
  }

  .phone-primary {
    left: 50%;
    right: auto;
    transform: translateX(-76%);
  }

  .phone-secondary {
    left: 50%;
    right: auto;
    transform: translateX(-2%);
  }

  .floating-stat {
    left: 50%;
    bottom: 28px;
    transform: translateX(-116%);
  }

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

  .screens-section {
    grid-template-columns: 1fr;
  }

  .screen-copy {
    max-width: 680px;
  }
}

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

  header.site-header .header-inner {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  nav.top-nav {
    justify-content: flex-start;
    gap: 4px;
  }

  nav.top-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  main {
    padding: 38px 20px 68px;
  }

  .home-main {
    padding-top: 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-section {
    padding: 42px 20px 58px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 410px;
  }

  .phone-frame {
    border-radius: 26px;
  }

  .phone-primary {
    width: 178px;
    top: 0;
    transform: translateX(-82%);
  }

  .phone-secondary {
    width: 156px;
    top: 78px;
    transform: translateX(0);
  }

  .floating-stat {
    left: 20px;
    right: 20px;
    bottom: 14px;
    min-width: 0;
    transform: none;
  }

  .feature-section,
  .screens-section,
  .link-section {
    padding-top: 54px;
  }

  .screen-pair {
    grid-template-columns: 1fr;
  }

  .screen-card img {
    height: 460px;
  }

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