:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: #0c131c;
  --panel-soft: rgba(14, 29, 34, 0.78);
  --line: rgba(54, 211, 153, 0.28);
  --green: #36d399;
  --green-soft: #a8efb9;
  --text: #f4f7fb;
  --muted: #9eacbb;
  --gold: #f7c948;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 4%, rgba(30, 91, 83, 0.3), transparent 35rem),
    radial-gradient(circle at 12% 34%, rgba(17, 50, 74, 0.24), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 11px;
  color: var(--green);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.language-picker {
  display: flex;
  gap: 5px;
}

.language-picker button {
  min-width: 35px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.language-picker button:hover,
.language-picker button.is-active {
  border-color: var(--line);
  background: rgba(54, 211, 153, 0.1);
  color: var(--green-soft);
}

.text-link {
  color: var(--green-soft);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover,
.landing-footer a:hover {
  color: var(--text);
}

.landing-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-section {
  margin: 0 auto;
  padding: 76px 0;
}

.hero {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding-top: 10px;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(21px, 3vw, 39px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.hero-text {
  max-width: 540px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero-image {
  display: block;
  width: min(100%, 540px);
  max-height: 360px;
  margin: 0 0 25px;
  border: 1px solid rgba(54, 211, 153, 0.32);
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
}

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 150ms ease, filter 150ms ease, background 150ms ease;
}

.primary-button {
  border: 1px solid rgba(168, 239, 185, 0.58);
  background: var(--green);
  color: #06120f;
  box-shadow: 0 12px 32px rgba(54, 211, 153, 0.16);
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid rgba(188, 198, 208, 0.65);
  background: rgba(104, 115, 127, 0.36);
  color: var(--text);
}

.install-hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-preview {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 30px 28px;
  border: 1px solid rgba(54, 211, 153, 0.48);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(24, 59, 58, 0.88), rgba(7, 12, 18, 0.98) 52%),
    var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.dashboard-preview::before {
  position: absolute;
  width: 230px;
  height: 230px;
  top: -110px;
  right: -70px;
  border-radius: 50%;
  background: rgba(54, 211, 153, 0.15);
  content: "";
  filter: blur(6px);
}

.preview-top,
.preview-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.preview-top strong,
.preview-stats strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
}

.preview-top strong {
  font-size: 32px;
}

.preview-side,
.preview-right {
  text-align: right;
}

.preview-side strong {
  color: var(--green-soft);
  font-size: 42px;
}

.preview-stats {
  margin-top: 65px;
  padding-top: 20px;
  border-top: 1px solid rgba(158, 172, 187, 0.16);
}

.preview-stats strong {
  font-size: 24px;
}

.preview-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.preview-speed {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 245px;
}

.preview-speed > strong {
  color: var(--text);
  font-size: clamp(115px, 17vw, 190px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.preview-status {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 7px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(158, 172, 187, 0.3);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.gps {
  color: #77c9ff;
}

.status-badge.ble {
  color: var(--green);
}

.preview-version {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid .section-heading {
  grid-column: 1 / -1;
}

.feature-card {
  min-height: 220px;
  padding: 25px;
  border: 1px solid rgba(158, 172, 187, 0.16);
  border-radius: var(--radius);
  background: rgba(12, 19, 28, 0.78);
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 0 10px 15px 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--green);
  font-size: 22px;
  vertical-align: top;
}

.feature-card h3 {
  display: inline-block;
  margin: 0 0 15px;
  font-size: 22px;
  vertical-align: top;
}

.feature-card p,
.audience-card p,
.install-banner p,
.how-it-works li p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.audience-card {
  min-height: 190px;
  padding: 25px;
  border: 1px solid rgba(158, 172, 187, 0.16);
  border-radius: var(--radius);
  background: rgba(12, 19, 28, 0.58);
}

.audience-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 34px;
  border: 1px solid rgba(54, 211, 153, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(20, 57, 52, 0.72), rgba(12, 19, 28, 0.7));
}

.install-banner h2 {
  max-width: 650px;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.install-banner p {
  max-width: 620px;
}

.how-it-works ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(158, 172, 187, 0.16);
}

.how-it-works li > span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.how-it-works li strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 0;
  padding: 25px 0 40px;
  border-top: 1px solid rgba(158, 172, 187, 0.16);
  color: var(--muted);
  font-size: 13px;
}

.landing-footer a {
  color: var(--green-soft);
  font-weight: 800;
}

.install-dialog {
  width: min(500px, calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0d151e;
  color: var(--text);
}

.install-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.install-dialog-card {
  padding: 30px;
}

.install-dialog h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.install-dialog-card > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 10px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .dashboard-preview {
    width: min(100%, 520px);
    min-height: 460px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    min-height: 0;
    padding: 20px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .audience-card {
    min-height: 0;
    padding: 20px;
  }

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .landing-header,
  .landing-main,
  .landing-footer {
    width: min(100% - 28px, 1180px);
  }

  .landing-header {
    align-items: flex-start;
    padding: 17px 0;
  }

  .landing-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .language-picker button {
    min-width: 29px;
    padding: 5px 4px;
    font-size: 10px;
  }

  .text-link {
    font-size: 12px;
  }

  .landing-section {
    padding: 54px 0;
  }

  .hero.landing-section {
    padding-top: 10px;
  }

  h1 {
    font-size: clamp(20px, 6vw, 30px);
  }

  .dashboard-preview {
    min-height: 400px;
    padding: 23px 20px;
    border-radius: 22px;
  }

  .preview-speed {
    right: 20px;
    bottom: 20px;
    left: 20px;
    min-height: 200px;
  }

  .preview-speed > strong {
    font-size: clamp(100px, 31vw, 155px);
  }

  .install-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px;
  }

  .install-banner .primary-button {
    width: 100%;
  }

  .landing-footer {
    padding-bottom: 28px;
  }
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .preview-side,
html[dir="rtl"] .preview-right {
  text-align: left;
}

html[dir="rtl"] .landing-footer,
html[dir="rtl"] .landing-header {
  direction: rtl;
}
