:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --panel: #ffffff;
  --text: #132033;
  --muted: #627188;
  --line: #d8e2ef;
  --blue: #2563eb;
  --blue-dark: #1746a2;
  --green: #16a34a;
  --teal: #0f766e;
  --shadow: 0 18px 48px rgba(19, 32, 51, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(216, 226, 239, 0.8);
  background: rgba(245, 248, 252, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand img,
.site-footer img {
  border-radius: 9px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - 1160px) / 2)) 128px;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, 0.72) 0%, rgba(7, 18, 38, 0.48) 46%, rgba(7, 18, 38, 0.16) 100%),
    url("./brand/hero-hlsmate.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(620px, 100%);
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(8, 20, 40, 0.12);
}

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3,
p {
  margin: 0;
}

.section-heading p,
.split-section p,
.faq-list p,
.steps p,
.feature-grid p {
  color: var(--muted);
}

.section-heading p {
  margin-top: 12px;
  font-size: 18px;
}

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

.feature-grid article {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(19, 32, 51, 0.04);
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border-top: 3px solid var(--blue);
  background: #fff;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #e7efff;
  color: var(--blue-dark);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 42px;
  border-radius: 8px;
  background: #10243e;
  color: #fff;
}

.split-section p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 760;
}

details p {
  padding: 0 20px 20px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer span {
  color: var(--muted);
  font-size: 13px;
}

.legal-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.legal-content {
  display: grid;
  gap: 34px;
  padding-top: 38px;
}

.legal-content section {
  display: grid;
  gap: 12px;
}

.legal-content h2 {
  font-size: 28px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feedback-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 720;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  border-color: var(--blue);
}

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

.feedback-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 700;
}

.feedback-status.is-error {
  color: #dc2626;
}

.feedback-website {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

  .site-header nav,
  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: 620px;
    padding-top: 82px;
  }

  .feature-grid,
  .steps,
  .split-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .install-actions {
    margin-top: 8px;
  }

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

@media (max-width: 520px) {
  .hero {
    min-height: 560px;
    padding-inline: 20px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(7, 18, 38, 0.88) 0%, rgba(7, 18, 38, 0.76) 58%, rgba(7, 18, 38, 0.42) 100%),
      url("./brand/hero-hlsmate.png") 24% center / cover no-repeat;
  }

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

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 68px 0;
  }

  .split-section {
    padding: 28px;
  }
}
