:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --border: #dfe6ef;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #059669;
  --accent-bright: #10b981;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: "Consolas", "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(16, 185, 129, 0.12), transparent 65%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 0.08em 0.38em;
  border-radius: 5px;
  color: #1e293b;
}

/* Single-screen desktop shell */
.page-shell {
  height: 100vh;
  max-height: 100vh;
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1.15rem 0 0.95rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Split Header + Download Section */
.hero-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-icon {
  border-radius: 6px;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.headline {
  margin: 0;
  font-size: clamp(1.55rem, 2.35vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.description {
  margin: 0;
  max-width: 720px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.trust-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.25rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-list svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-list strong {
  color: var(--text);
  font-weight: 650;
}

.hero-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.48rem;
}

.platform-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.92rem 2.1rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #25b4ff 0%, #008ce6 100%);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 45, 90, 0.22);
  box-shadow:
    0 10px 26px rgba(0, 140, 230, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 140, 230, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.04);
}

.download-btn:active {
  transform: translateY(0);
}

.win-icon {
  width: 22px;
  height: 22px;
}

.dl-icon {
  width: 20px;
  height: 20px;
}

/* Lower Big Screenshot Carousel */
.carousel-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  gap: 0.55rem;
}

.carousel-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.carousel-stage {
  flex: 1;
  min-width: 0;
  height: 100%;
  container-type: size;
  display: grid;
  place-items: center;
}

.carousel-viewport {
  position: relative;
  width: min(100cqw, calc(100cqh * 1.601));
  height: min(100cqh, calc(100cqw / 1.601));
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

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

.carousel-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--accent-soft);
  border-color: var(--accent-bright);
  color: var(--accent);
  transform: scale(1.05);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  padding: 0 3.25rem;
}

.slide-caption {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.slide-caption strong {
  color: var(--text);
}

.privacy-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.1rem;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.privacy-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.privacy-link svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Privacy Policy Modal */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-dialog {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.55rem 1.35rem;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.privacy-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.privacy-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.privacy-badge-icon svg {
  width: 18px;
  height: 18px;
}

.privacy-header h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text);
}

.privacy-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.privacy-close:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.privacy-body {
  padding: 1rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.privacy-lead {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 0.91rem;
  color: #064e3b;
  line-height: 1.5;
}

.privacy-section h3 {
  margin: 0 0 0.2rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
}

.privacy-section p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.privacy-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.privacy-ok-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 9px;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease;
}

.privacy-ok-btn:hover {
  background: #1e293b;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.5rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-body {
  max-width: min(94vw, 1800px);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.lightbox-body img {
  max-height: calc(95vh - 2.75rem);
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 58px;
  border-radius: 12px;
  font-size: 1.9rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Fallback for small screens / short viewports */
@media (max-width: 900px), (max-height: 660px) {
  .page-shell {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 1.25rem 0 2rem;
  }

  .hero-block {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .trust-list {
    justify-content: center;
  }

  .carousel-section {
    flex: none;
    margin-top: 1.5rem;
  }

  .carousel-stage {
    height: auto;
    container-type: normal;
  }

  .carousel-viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 2560 / 1599;
  }

  .carousel-footer {
    padding: 0;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 1.5rem);
  }

  .carousel-frame {
    gap: 0.4rem;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .lightbox {
    padding: 1rem;
  }
}
