:root {
  /* Core design tokens keep future product sections visually consistent. */
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --text: #102033;
  --muted: #65758a;
  --line: #d9e6f5;
  --blue: #1769e0;
  --blue-dark: #0f4fb2;
  --blue-soft: #dcecff;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
  --radius: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(23, 105, 224, 0.11), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.is-dragging {
  cursor: grabbing;
}

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

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 96px;
}

.site-header {
  /* A translucent sticky header keeps navigation available without feeling heavy. */
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(217, 230, 245, 0.9);
  box-shadow: 0 12px 40px rgba(16, 32, 51, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(23, 105, 224, 0.28);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a,
.footer-links a {
  transition: color 180ms ease;
}

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

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  gap: 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 17vw, 6.6rem);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-brand-icon {
  width: clamp(72px, 18vw, 104px);
  height: clamp(72px, 18vw, 104px);
  flex: 0 0 auto;
  border-radius: 24%;
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.18);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 10vw, 4.8rem);
}

.product-copy h2 {
  max-width: 680px;
  font-size: clamp(1.9rem, 5.8vw, 3.15rem);
  line-height: 1.12;
}

.about-panel h2 {
  max-width: 780px;
  font-size: clamp(2rem, 6.2vw, 3.6rem);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 105, 224, 0.24);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary,
.button-light {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.button-secondary:hover,
.button-light:hover {
  box-shadow: 0 14px 30px rgba(16, 32, 51, 0.08);
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(217, 230, 245, 0.92);
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product {
  background: linear-gradient(180deg, transparent, rgba(220, 236, 255, 0.28));
}

.product-alt {
  background: linear-gradient(180deg, rgba(220, 236, 255, 0.28), transparent);
}

.product-grid {
  display: grid;
  gap: 52px;
  align-items: center;
}

.product-copy {
  max-width: 620px;
}

.product-description {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.app-heading .section-kicker {
  margin-bottom: 2px;
}

.app-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(16, 32, 51, 0.14);
}

.app-platform {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px 14px;
  color: #24364b;
  font-weight: 700;
}

.feature-list li::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.86rem;
}

.product-media {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.phone-shell {
  /* Stable mockup dimensions prevent carousel image loading from shifting layout. */
  width: min(100%, 330px);
  border-radius: 42px;
  padding: 12px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(16, 32, 51, 0.24);
}

.phone-screen {
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  background: #e8eff8;
}

.carousel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}

.carousel-viewport:focus-visible {
  box-shadow: inset 0 0 0 3px var(--blue);
}

.carousel-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 320ms ease;
}

.carousel-track.is-dragging {
  transition: none;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background: #f3f7fc;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-empty {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.icon-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #b8c7da;
  cursor: pointer;
  padding: 0;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--blue);
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 8vw, 64px);
  box-shadow: 0 20px 60px rgba(16, 32, 51, 0.08);
}

.about {
  background: linear-gradient(180deg, #fff, var(--bg));
}

.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 8vw, 64px);
  box-shadow: 0 20px 60px rgba(16, 32, 51, 0.08);
}

.about-panel p:last-child {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── Comment form ──────────────────────────────────────────── */
.comment-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  max-width: 520px;
}

.comment-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.comment-form label small {
  font-weight: 400;
  color: var(--muted);
}

.comment-form input:not([type="hidden"]),
.comment-form textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 180ms ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.comment-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.captcha-question {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 80px;
}

.comment-captcha input {
  width: 80px;
  text-align: center;
}

.comment-feedback {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.comment-feedback.success {
  color: #16a34a;
}

.comment-feedback.error {
  color: #dc2626;
}

.download-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px 18px;
}

.dl-file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.dl-name {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-badge {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-size {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.dl-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  gap: 18px;
  padding: 32px 0;
  color: var(--muted);
}

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

.footer-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.footer p {
  margin: 0;
}

.counter-dash {
  position: fixed;
  top: 84px;
  right: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.counter-dash-toggle {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 6px 14px;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
  transition: color 180ms ease, border-color 180ms ease;
}

.counter-dash-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.counter-dash-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 20px;
  min-width: 180px;
  box-shadow: 0 16px 48px rgba(16, 32, 51, 0.12);
}

.counter-dash-panel.is-open {
  display: block;
}

.counter-dash-title {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.counter-dash-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.counter-dash-panel td {
  padding: 5px 0;
}

.counter-dash-panel td:first-child {
  color: var(--muted);
}

.counter-dash-panel td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

[data-counter-downloads] td:first-child {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.visitor-count {
  font-size: 0.86rem;
  color: var(--muted);
  opacity: 0.8;
}

.reveal {
  /* Used by IntersectionObserver for lightweight entrance animation. */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (min-width: 620px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

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

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  }

  .hero-photo-wrap {
    max-height: 620px;
  }

  .product-grid-reverse .product-media {
    order: 2;
  }

  .product-grid-reverse .product-copy {
    order: 1;
  }

  .phone-shell {
    width: min(100%, 380px);
  }
}

@media (max-width: 520px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .button {
    width: 100%;
  }

  .dl-button {
    width: fit-content;
  }

  .download-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}
.youtube-short {
  display: block;
  width: 360px;
  max-width: 100%;
  height: 640px;
  max-height: calc(100vh - 120px);
  margin: 32px auto 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.youtube-short iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
