:root {
  --bg: #050807;
  --panel: rgba(13, 22, 22, .72);
  --panel-strong: rgba(18, 29, 30, .92);
  --text: #f2f7f4;
  --muted: #a7b4b0;
  --line: rgba(154, 255, 176, .22);
  --green: #65ff7d;
  --green-2: #1fd06a;
  --cyan: #55d6ff;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(101, 255, 125, .09), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(85, 214, 255, .08), transparent 28%),
    linear-gradient(180deg, #050807 0%, #081111 45%, #040606 100%);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(101, 255, 125, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 255, 125, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 70%);
  animation: gridMove 18s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(44px); }
}

a {
  color: var(--green);
  text-decoration: none;
}

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

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

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 8, 7, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(101, 255, 125, .28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
}

.nav a,
.nav-button {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover,
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--text);
  background: rgba(101, 255, 125, .12);
}

.nav-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section,
.section-full {
  position: relative;
  padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 56px);
  scroll-margin-top: 128px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-full {
  min-height: min(820px, 92vh);
  display: grid;
  place-items: center start;
  overflow: hidden;
}

.alt-band {
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
}

.alt-band > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 7, .96) 0%, rgba(5, 8, 7, .78) 36%, rgba(5, 8, 7, .32) 100%),
              linear-gradient(180deg, rgba(5, 8, 7, .18), #050807 98%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .56;
}

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

.hero-emblem {
  width: min(720px, 100%);
  max-height: 138px;
  object-fit: contain;
  margin: 0 0 20px;
  filter: drop-shadow(0 0 24px rgba(101, 255, 125, .22));
}

.hero-logo {
  width: 118px;
  height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 0 42px rgba(101, 255, 125, .24);
  margin-bottom: 26px;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  max-width: 900px;
}

h2 {
  font-size: clamp(32px, 5vw, 62px);
}

h3 {
  font-size: 22px;
}

.lead {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--text);
  margin: 22px 0 10px;
}

.hero-text,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
  max-width: 860px;
}

.badges,
.hero-actions,
.contact-actions,
.video-actions,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(101, 255, 125, .65);
  box-shadow: 0 0 26px rgba(101, 255, 125, .18);
  color: var(--text);
}

.btn-primary {
  color: #041007;
  background: linear-gradient(135deg, var(--green), #a8ff5f);
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

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

.split,
.developer-grid,
.contact-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.panel,
.card,
.compare-card,
.download-card,
.install-panel,
.legal-text,
.qr-card,
.video-box {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel,
.install-panel,
.legal-text,
.video-box {
  padding: clamp(20px, 3vw, 34px);
}

.cfmir-logo {
  width: min(320px, 100%);
  height: auto;
  margin: 0 0 22px;
  padding: 10px;
  border: 1px solid rgba(255, 209, 102, .24);
  border-radius: 8px;
  background: rgba(0, 0, 0, .36);
}

.panel p:first-child,
.card p:first-child {
  margin-top: 0;
}

.check-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #081111;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: min(520px, 52vw);
  min-height: 320px;
  object-fit: cover;
}

.image-frame figcaption,
.qr-card figcaption {
  color: var(--muted);
  padding: 14px 16px;
}

.connection-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(101, 255, 125, .08);
}

.connection-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.safety-grid .card {
  border-color: rgba(101, 255, 125, .18);
}

.card {
  padding: 22px;
  min-height: 210px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(101, 255, 125, .08);
  font-size: 24px;
}

.card p,
.compare-card li,
.download-card p,
.timeline p,
.news-card p,
.legal-text p,
.panel p,
.install-panel li {
  color: var(--muted);
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  color: var(--green);
}

.highlight-line {
  display: inline-block;
  color: var(--green);
  text-shadow: 0 0 18px rgba(101, 255, 125, .42);
}

.compare-card {
  overflow: hidden;
}

.compare-card img,
.placeholder-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.placeholder-media {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(101,255,125,.08));
}

.compare-card h3,
.compare-card ul {
  padding-left: 22px;
  padding-right: 22px;
}

.compare-card h3 {
  margin-top: 22px;
}

.compare-card ul {
  padding-bottom: 22px;
}

.compare-card.accent {
  border-color: rgba(101, 255, 125, .46);
}

.zoomable-image {
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.zoomable-image:hover,
.zoomable-image:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(0,0,0,.24), rgba(0,0,0,.42)),
    url("./gallery/screen-main.jpg") center / cover;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.download-card {
  padding: 22px;
}

.download-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 14px;
}

.download-meta span {
  color: var(--muted);
}

.download-card ul {
  padding-left: 20px;
}

.download-note {
  padding: 12px 14px;
  border: 1px solid rgba(101, 255, 125, .18);
  border-radius: 8px;
  background: rgba(101, 255, 125, .07);
}

.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  margin: 18px 0;
}

.agreement-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 3px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-support,
[data-support-buttons],
[data-footer-support],
[data-lead-support] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-support {
  border-color: rgba(255, 209, 102, .44);
  color: #fff5d2;
  background: rgba(255, 209, 102, .10);
}

.btn-support:hover,
.btn-support:focus-visible {
  border-color: rgba(255, 209, 102, .72);
  box-shadow: 0 0 26px rgba(255, 209, 102, .16);
}

.btn-support.is-disabled {
  cursor: not-allowed;
  opacity: .62;
}

.btn-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr);
  gap: 22px;
  align-items: stretch;
}

.support-panel,
.support-qr {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.support-panel {
  padding: clamp(22px, 3vw, 34px);
}

.support-note {
  color: var(--warning);
  font-weight: 750;
}

.support-levels {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.support-levels span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 209, 102, .22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 209, 102, .08);
}

.automation-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.automation-media {
  display: grid;
  gap: 16px;
}

.share-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: 10px 0 20px;
  padding: 10px 18px;
  border: 1px solid rgba(101, 255, 125, .42);
  border-radius: 8px;
  color: var(--green);
  background: rgba(101, 255, 125, .08);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(101, 255, 125, .32);
}

.step-list {
  padding-left: 22px;
  color: var(--muted);
}

.step-list li {
  margin: 10px 0;
}

.step-list strong {
  color: var(--text);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.social-grid-compact {
  margin-top: 24px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 150px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(101, 255, 125, .22);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(12, 30, 24, .84), rgba(4, 10, 8, .92));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(101, 255, 125, .65);
  box-shadow: 0 0 32px rgba(101, 255, 125, .16);
}

.social-icon,
.social-icon-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  max-width: 54px;
  max-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(101, 255, 125, .28);
  border-radius: 8px;
  color: var(--green);
  background: rgba(101, 255, 125, .14);
  font-size: 15px;
  font-weight: 900;
}

.social-icon-img {
  padding: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 0 22px rgba(101, 255, 125, .10);
}

.social-ok {
  font-size: 20px;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(101, 255, 125, .45);
}

.social-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: normal;
}

.social-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stealth-admin-entry {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 2147483647;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: .001;
  cursor: default;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.stealth-admin-entry:focus-visible {
  outline: 1px solid rgba(101, 255, 125, .25);
  outline-offset: 2px;
}

.contact-socials {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-socials h3 {
  margin-top: 0;
}

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

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
  margin-bottom: 24px;
}

.support-card {
  border: 1px solid rgba(101, 255, 125, .25);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(145deg, rgba(12, 30, 24, .86), rgba(4, 10, 8, .92));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.support-card p {
  color: var(--muted);
}

.support-qr-link {
  display: block;
  max-width: 190px;
  margin: 24px auto;
  padding: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.support-qr-link:hover,
.support-qr-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(101, 255, 125, .22);
}

.support-qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid rgba(101, 255, 125, .20);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.footer-socials img {
  width: 24px;
  height: 24px;
}

.footer-social-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--green);
  border-color: rgba(101, 255, 125, .48);
}

.support-qr {
  margin: 0;
  padding: 18px;
  text-align: center;
}

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

.support-qr img {
  margin: 0 auto;
  max-height: 320px;
  border-radius: 8px;
}

.support-qr figcaption {
  padding-top: 14px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.release-item,
.news-card {
  border-left: 3px solid var(--green);
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
}

.release-date {
  color: var(--cyan);
  font-weight: 700;
}

.legal-text h3 {
  margin-top: 24px;
}

.legal-text h3:first-child {
  margin-top: 0;
}

.qr-card {
  margin: 0;
  padding: 18px;
  text-align: center;
}

.qr-card img {
  margin: 0 auto;
  max-height: 360px;
  border-radius: 8px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px clamp(16px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-logo {
  width: 150px;
  height: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .34);
}

.modal {
  width: min(900px, calc(100vw - 28px));
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #081111;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.modal-actions {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  justify-content: flex-end;
}

.modal-body {
  padding: 20px;
  overflow: auto;
  max-height: 58vh;
}

[hidden] {
  display: none !important;
}

.modal-kicker {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-modal {
  width: min(980px, calc(100vw - 28px));
}

.lead-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lead-progress span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .04);
}

.lead-progress span.active,
.lead-progress span.complete {
  color: var(--text);
  border-color: rgba(101, 255, 125, .42);
  background: rgba(101, 255, 125, .12);
}

.agreement-scroll {
  max-height: 220px;
  margin: 16px 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.agreement-scroll h3 {
  margin-top: 18px;
}

.lead-checks {
  display: grid;
  gap: 10px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-warning {
  margin: 0;
  color: var(--warning);
  font-weight: 750;
}

.lead-status {
  margin: 0;
  color: var(--green);
}

.lead-form-actions {
  margin: 4px -20px -20px;
}

.lead-success:not([hidden]) {
  display: grid;
  gap: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.gallery-modal {
  background: #030504;
}

.gallery-modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.gallery-modal p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--muted);
}

.modal-image-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 7, .94);
  color: var(--text);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(101, 255, 125, .28);
  border-radius: 8px;
  background: rgba(5, 8, 7, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .social-grid,
  .contact-social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 8, 7, .96);
  }

  .nav.open {
    display: grid;
  }

  .simple-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .split,
  .developer-grid,
  .contact-grid,
  .compare-grid,
  .automation-grid,
  .support-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .feature-grid,
  .thanks-grid,
  .download-grid,
  .news-grid,
  .social-grid,
  .contact-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .section,
  .section-full {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-full {
    min-height: 760px;
    align-items: end;
  }

  .hero-logo {
    width: 86px;
    height: 86px;
  }

  .hero-emblem {
    max-height: 92px;
  }

  .cards,
  .feature-grid,
  .thanks-grid,
  .download-grid,
  .news-grid,
  .social-grid,
  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .lead-progress {
    grid-template-columns: 1fr;
  }

  .lead-progress span {
    text-align: left;
  }

  .modal-head,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-form-actions {
    margin-left: -20px;
    margin-right: -20px;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .download-actions,
  .contact-actions,
  .hero-actions,
  .video-actions,
  .legal-links,
  .support-actions,
  .cookie-actions {
    width: 100%;
  }

  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .image-frame img {
    height: auto;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
