:root {
  color-scheme: dark;
  --bg: #090d17;
  --bg-elevated: #0e1422;
  --surface: rgba(20, 27, 44, 0.78);
  --surface-solid: #141b2c;
  --surface-hover: #1a2439;
  --line: rgba(166, 183, 222, 0.14);
  --line-strong: rgba(166, 183, 222, 0.24);
  --text: #f4f7ff;
  --muted: #aab4cd;
  --soft: #7e89a6;
  --accent: #ff6655;
  --accent-bright: #ff8a65;
  --teal: #55e6c1;
  --blue: #78a5ff;
  --purple: #b98cff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max-width: 1180px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-hover: #f0f3fa;
  --line: rgba(47, 57, 84, 0.12);
  --line-strong: rgba(47, 57, 84, 0.2);
  --text: #20283d;
  --muted: #5f6b87;
  --soft: #58647e;
  --accent: #d95443;
  --accent-bright: #9f3529;
  --teal: #006451;
  --shadow: 0 28px 80px rgba(55, 70, 105, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 180ms ease, color 180ms ease;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  right: -100px;
  background: var(--accent);
}

.ambient-two {
  top: 560px;
  left: -260px;
  background: var(--blue);
}

.section-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1220px);
  min-height: 72px;
  margin: 12px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elevated) 84%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

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

.site-header nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header nav a,
.footer-links a {
  transition: color 160ms ease;
}

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

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-icon {
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.button-large {
  min-height: 52px;
  padding: 0 22px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 102, 85, 0.24);
}

.button-primary:hover {
  box-shadow: 0 16px 36px rgba(255, 102, 85, 0.34);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button-ghost:hover {
  background: var(--surface-hover);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 70px;
  align-items: center;
  min-height: 760px;
  padding-block: 90px 100px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent-bright), #ffbd72 45%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 22px;
  color: var(--muted);
  font-size: 1.13rem;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.platform-row li {
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.platform-row strong {
  color: var(--teal);
  font-size: 0.9rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  color: var(--soft);
  font-size: 0.82rem;
}

.trust-row span {
  position: relative;
}

.trust-row span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.trust-row strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.visual-glow {
  position: absolute;
  inset: 12% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 85, 0.22), rgba(85, 230, 193, 0.05) 45%, transparent 72%);
  filter: blur(28px);
}

.promo-frame {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.promo-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.window-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.window-card img {
  width: 100%;
}

.window-card-front {
  z-index: 2;
  right: 3%;
  bottom: 1%;
  width: min(340px, 72%);
  transform: rotate(1.2deg);
}

.window-card-back {
  top: 0;
  left: 0;
  width: min(340px, 72%);
  transform: rotate(-4deg);
  opacity: 0.76;
}

.floating-pill {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.pill-rust {
  top: 15%;
  right: -1%;
}

.pill-native {
  bottom: 12%;
  left: -6%;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 44px;
  padding: 24px 20px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 58%, transparent);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.signal-icon {
  margin-right: 7px;
  color: var(--teal);
}

.section-block {
  padding-block: 120px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2,
.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-heading > p:last-child,
.cta-section > p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.feature-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-solid) 82%, transparent));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.feature-card-wide {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column: span 2;
  gap: 20px;
  align-items: start;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-card-wide .feature-icon {
  margin: 0;
}

.green { background: rgba(72, 208, 128, 0.14); color: #62df96; }
.teal { background: rgba(85, 230, 193, 0.14); color: var(--teal); }
.blue { background: rgba(120, 165, 255, 0.14); color: var(--blue); }
.orange { background: rgba(255, 138, 101, 0.14); color: var(--accent-bright); }
.purple { background: rgba(185, 140, 255, 0.14); color: var(--purple); }
.rose { background: rgba(255, 102, 132, 0.14); color: #ff7c9c; }

.feature-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.mini-progress {
  position: absolute;
  right: 26px;
  bottom: 28px;
  left: 26px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-strong);
}

.mini-progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42d77d, #f6c445 52%, #ff6655);
}

.privacy-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(85, 230, 193, 0.2);
  border-radius: 999px;
  background: rgba(85, 230, 193, 0.08);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
}

.themes-section {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 58%, transparent);
}

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.theme-shot {
  margin: 0;
}

.theme-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.theme-shot:nth-child(even) {
  margin-top: 34px;
}

.theme-shot:hover img {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

.theme-shot figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-swatch {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.theme-swatch.light { background: #e9edf5; }
.theme-swatch.dark { background: #252638; }
.theme-swatch.sunset { background: #ff795d; }
.theme-swatch.midnight { background: #7488ff; }

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

.pulse-card {
  display: flex;
  min-height: 190px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pulse-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.pulse-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-value {
  font-size: 3rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.pulse-version {
  color: var(--blue);
  font-size: 2.15rem;
}

.pulse-note {
  color: var(--soft);
  font-size: 0.77rem;
}

.hits-counter {
  width: auto;
  height: 24px;
  align-self: flex-start;
}

.visitor-map-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.visitor-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.visitor-map-heading h3 {
  margin: 10px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.visitor-map-heading a {
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.visitor-map {
  display: flex;
  width: 100%;
  min-height: 190px;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}

.visitor-map img,
.visitor-map iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto;
}

.analytics-note {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 0.8rem;
}

.setup-section {
  padding-top: 40px;
}

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

.step-card {
  min-height: 210px;
  padding: 26px;
  border-top: 1px solid var(--line-strong);
}

.step-number {
  display: block;
  margin-bottom: 36px;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.faq-list {
  max-width: 850px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  float: right;
  color: var(--soft);
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -8px 4px 24px;
  color: var(--muted);
}

.cta-section {
  position: relative;
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 500px;
  margin: 20px auto 90px;
  padding: 70px 24px;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--surface-solid), color-mix(in srgb, var(--surface-solid) 76%, var(--accent) 24%));
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -240px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 102, 85, 0.28);
  filter: blur(90px);
}

.cta-section > *:not(.cta-glow) {
  position: relative;
}

.cta-section img {
  margin-bottom: 24px;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

.cta-section .hero-actions {
  margin-top: 30px;
}

.site-footer {
  display: flex;
  min-height: 110px;
  padding-block: 30px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.82rem;
}

.site-footer p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .brand {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 22px;
}

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

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

@media (max-width: 1040px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
  }

  .feature-grid,
  .pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shot:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 780px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 62px;
    margin-top: 8px;
    padding: 8px 10px 8px 12px;
  }

  .site-header .brand span,
  .header-actions .button-ghost {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    padding-block: 72px 70px;
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .hero-visual {
    width: 100%;
    min-height: 540px;
    margin-top: 20px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-row span::after {
    display: none;
  }

  .section-block {
    padding-block: 82px;
  }

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

  .feature-card-wide {
    grid-column: span 1;
  }

  .pulse-card {
    min-height: 160px;
  }

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

@media (max-width: 520px) {
  .header-actions .button-primary {
    padding-inline: 12px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .window-card-front,
  .window-card-back {
    width: 82%;
  }

  .floating-pill {
    display: none;
  }

  .theme-gallery {
    grid-template-columns: 1fr;
  }

  .visitor-map-heading {
    flex-direction: column;
  }

  .cta-section {
    width: calc(100% - 20px);
    min-height: 450px;
    margin-bottom: 50px;
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
