:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #10151d;
  --panel-2: #141b25;
  --text: #f7f9fc;
  --muted: #a8b3c5;
  --soft: #d8dee9;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --cyan: #45d3ff;
  --green: #74e5b8;
  --amber: #ffd166;
  --danger: #ff6f8b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
}

.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px min(6vw, 72px) 42px;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.98) 0%, rgba(8, 10, 15, 0.84) 46%, rgba(8, 10, 15, 0.38) 100%),
    linear-gradient(135deg, rgba(69, 211, 255, 0.22), rgba(116, 229, 184, 0.08) 46%, rgba(255, 209, 102, 0.1)),
    var(--bg);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img,
footer img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
footer a:hover {
  color: var(--text);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 860px;
  padding: 70px 0 86px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 840px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.hero-line {
  max-width: 740px;
  margin-top: 18px;
  color: var(--soft);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.25;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 29, 0.78);
  color: var(--text);
  padding: 0 18px;
  font-weight: 900;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.button.primary {
  border: 0;
  background: var(--cyan);
  color: #031018;
}

.button.primary:hover {
  background: #76e2ff;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 21, 29, 0.68);
  color: var(--soft);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.device-scene {
  position: absolute;
  right: min(6vw, 72px);
  bottom: 38px;
  width: min(48vw, 680px);
  min-width: 430px;
  min-height: 430px;
}

.desktop-preview {
  position: absolute;
  inset: 30px 0 50px 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 21, 29, 0.92);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.window-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 12px;
  padding: 14px;
}

.preview-panel {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1118;
  padding: 14px;
}

.preview-panel.main {
  grid-row: span 2;
  min-height: 244px;
  background:
    linear-gradient(180deg, rgba(69, 211, 255, 0.14), rgba(116, 229, 184, 0.08)),
    #0c1118;
}

.preview-panel small,
.tablet-preview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.signal {
  height: 114px;
  margin-top: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(69, 211, 255, 0.2) 0 18%, transparent 18% 25%, rgba(116, 229, 184, 0.22) 25% 55%, transparent 55% 62%, rgba(255, 209, 102, 0.2) 62% 100%);
}

.qr-mini {
  width: 82px;
  height: 82px;
  margin-top: 10px;
  border: 8px solid white;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 12px, transparent 12px) 0 0 / 20px 20px,
    linear-gradient(#111 12px, transparent 12px) 0 0 / 20px 20px,
    #fff;
}

.preview-panel.premium {
  border-color: rgba(116, 229, 184, 0.42);
}

.tablet-preview {
  position: absolute;
  right: 22px;
  bottom: 0;
  width: 210px;
  height: 278px;
  border: 10px solid #111820;
  border-radius: 8px;
  background: #05070b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.screen-glow {
  height: 205px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(69, 211, 255, 0.42), rgba(116, 229, 184, 0.22)),
    #0a1118;
}

main {
  padding: 0 min(6vw, 72px) 72px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.value-strip div,
article,
.steps,
.plan,
.faq details,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 29, 0.94);
}

.value-strip div {
  padding: 18px;
}

.value-strip strong {
  display: block;
  font-size: 18px;
}

.value-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.section {
  padding-top: 86px;
}

.section-copy p {
  max-width: 800px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.platform-grid,
.use-grid,
.features,
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

article,
.steps,
.plan {
  padding: 22px;
}

article p,
.feature-stack p,
.steps li,
.plan p,
.faq p,
.seo-copy p {
  color: var(--muted);
  line-height: 1.55;
}

article p,
.plan p {
  margin-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 18px;
}

.steps ol,
.plan ul {
  margin: 20px 0 0;
  padding-left: 22px;
}

.steps li + li,
.plan li + li {
  margin-top: 10px;
}

.feature-stack {
  display: grid;
  gap: 14px;
}

.use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 211, 255, 0.08), rgba(116, 229, 184, 0.04)),
    rgba(16, 21, 29, 0.94);
  padding: 28px;
}

.seo-copy p {
  max-width: 920px;
  margin-top: 16px;
  font-size: 18px;
}

.pricing .plans {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.plan strong {
  display: block;
  margin-top: 12px;
  font-size: 38px;
  line-height: 1;
}

.plan .button {
  width: 100%;
  margin-top: 22px;
}

.premium-plan {
  position: relative;
  border-color: rgba(116, 229, 184, 0.38);
  background:
    linear-gradient(180deg, rgba(116, 229, 184, 0.12), rgba(69, 211, 255, 0.06)),
    var(--panel);
}

.launch-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(116, 229, 184, 0.42);
  border-radius: 999px;
  color: var(--green);
  padding: 0 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
}

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

.faq details {
  padding: 0 18px;
}

.faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  padding: 0 0 18px;
}

.final-cta {
  margin-top: 86px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(69, 211, 255, 0.14), rgba(116, 229, 184, 0.1)),
    var(--panel);
}

.final-cta h2 {
  margin-bottom: 24px;
}

footer {
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 26px min(6vw, 72px);
  color: var(--muted);
}

footer span {
  color: var(--text);
}

.portal {
  padding: 28px min(6vw, 72px) 72px;
}

.portal .nav > a:not(.brand) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.portal h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.portal-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.portal-auth input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.92);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.hidden {
  display: none !important;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.device-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.display-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.display-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.display-chip.selected {
  border-color: rgba(69, 211, 255, 0.65);
  background: rgba(69, 211, 255, 0.12);
  color: var(--text);
}

.url-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.device-actions {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(86px, 0.7fr));
  gap: 10px;
  margin-top: auto;
}

.device-actions .button {
  justify-content: center;
  padding: 0 12px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 56px 0 340px;
  }

  .device-scene {
    right: 22px;
    bottom: 26px;
    width: calc(100vw - 44px);
    min-width: 0;
    min-height: 300px;
  }

  .desktop-preview {
    inset: 0 0 48px 0;
  }

  .tablet-preview {
    width: 150px;
    height: 204px;
  }

  .screen-glow {
    height: 145px;
  }

  .value-strip,
  .platform-grid,
  .use-grid,
  .features,
  .plans,
  .pricing .plans,
  .split,
  .portal-auth,
  .device-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px 16px 34px;
  }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
  }

  .hero-copy {
    padding: 44px 0 315px;
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 8px;
    padding: 10px;
  }

  .preview-panel {
    min-height: 86px;
    padding: 10px;
  }

  .preview-panel.main {
    min-height: 188px;
  }

  .preview-panel strong {
    font-size: 16px;
  }

  .signal {
    height: 78px;
  }

  main {
    padding: 0 16px 52px;
  }

  .value-strip {
    margin-top: -24px;
  }

  .section {
    padding-top: 64px;
  }

  .final-cta {
    padding: 24px;
  }

  footer {
    flex-wrap: wrap;
  }
}
