:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #eef3ff;
  --text: #121826;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --mint: #e9f5ee;
  --mint-strong: #d7efe0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

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

button {
  font-family: inherit;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.page-shell {
  padding: 28px 0 80px;
}

/* ---------- Site header (shared) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(229, 231, 235, 0.75);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  flex: 0 0 28px;
}

.brand-mark.is-app-icon {
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text);
  font-size: 0.96rem;
}

.site-nav > a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}

.site-nav > a:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
  background: rgba(15, 23, 42, 0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger .caret {
  width: 10px;
  height: 10px;
  transition: transform 200ms ease;
}

.nav-dropdown.is-open .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 40;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 140ms ease;
}

.nav-dropdown-item:hover {
  background: var(--panel-soft);
}

.nav-dropdown-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  object-fit: cover;
}

.nav-dropdown-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-dropdown-item-text strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-dropdown-item-text small {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav-dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.nav-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-dropdown-footer:hover {
  background: var(--accent-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  margin-left: 8px;
}

.lang-switch button {
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 140ms ease, color 140ms ease;
}

.lang-switch button.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  padding: 22px 0 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ---------- Hero carousel ---------- */

.hero-carousel {
  position: relative;
  margin: 32px 0 6px;
  padding: 0 60px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 32px;
}

.carousel-track {
  display: flex;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  --slide-surface: rgba(220, 236, 226, 0.92);
  --slide-surface-border: rgba(15, 23, 42, 0.08);
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 56px 64px;
  background: linear-gradient(180deg, #f1fbf4 0%, #e3f3ea 100%);
  border-radius: 32px;
  min-height: 400px;
  opacity: 0.4;
  transform: scale(0.98);
  transition: opacity 600ms ease, transform 600ms ease;
  cursor: pointer;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide:focus-visible {
  outline: 3px solid rgba(47, 110, 255, 0.32);
  outline-offset: -3px;
}

.carousel-slide[data-theme="blue"] {
  --slide-surface: rgba(214, 228, 255, 0.94);
  background: linear-gradient(180deg, #f0f6ff 0%, #dce8ff 100%);
}

.carousel-slide[data-theme="mint"] {
  --slide-surface: rgba(215, 233, 223, 0.94);
  background: linear-gradient(180deg, #f1fbf4 0%, #dcefe3 100%);
}

.carousel-slide[data-theme="peach"] {
  --slide-surface: rgba(255, 226, 213, 0.94);
  background: linear-gradient(180deg, #fff4ee 0%, #ffe1d2 100%);
}

.hero-carousel.is-resetting .carousel-slide {
  transition: none;
}

.slide-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide-title {
  order: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.slide-tagline {
  order: 2;
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.7;
  max-width: 36em;
}

.slide-desc {
  order: 1;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.slide-cta {
  order: 3;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease;
}

.slide-cta:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-media img {
  width: min(220px, 60%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%), var(--slide-surface);
  border: 1px solid var(--slide-surface-border);
  padding: 14px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #2f6eff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
  z-index: 2;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn.-prev { left: 0; }
.carousel-btn.-next { right: 0; }

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  transition: background 160ms ease, width 220ms ease;
}

.carousel-dot.is-active {
  background: rgba(15, 23, 42, 0.78);
  width: 28px;
}

.carousel-caption {
  margin-top: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
}

/* ---------- Products grid ---------- */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.12);
}

.product-card-media {
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.product-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-card p,
.footer-copy,
.feature-card p,
.screenshot-copy p {
  color: var(--muted);
}

.product-link {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 4-up product grid ---------- */

.product-grid.-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.-four .product-card {
  grid-template-columns: 1fr;
  padding: 20px;
  text-align: left;
}

.product-grid.-four .product-card-media {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: auto;
}

.product-grid.-four .product-card-media img {
  border-radius: 18px;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 26px 28px;
  margin: 48px 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stat-item {
  text-align: center;
  padding: 6px 12px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: 0; }

.stat-value {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Why / value props ---------- */

.why-section,
.reviews-section {
  margin: 56px auto 24px;
}

.why-section .section-title-block,
.reviews-section .section-title-block {
  margin-bottom: 22px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
  width: 100%;
}

.why-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-card .why-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e9f5ee, #dce8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card .why-icon svg {
  width: 22px;
  height: 22px;
  color: #2563eb;
}

.why-card h3 {
  margin-bottom: 8px;
}

.why-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
  width: 100%;
}

.review-card {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.review-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.review-text {
  font-size: 1.02rem;
  line-height: 1.55;
}

.review-author {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  margin: 56px 0 8px;
  padding: 44px 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-banner-text h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: 6px;
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 160ms ease;
}

.cta-banner-btn:hover {
  transform: translateY(-2px);
}

/* ---------- Section title (shared) ---------- */

.section-title-block {
  max-width: 620px;
}

.section-title-block p.eyebrow { margin-bottom: 10px; }

.section-title-block .sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer-grid--two-cols {
  grid-template-columns: 1fr 1fr;
}

.footer-grid--three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.footer-title {
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Page transitions ---------- */

body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

body.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    padding: 36px 32px 64px;
    text-align: left;
  }

  .slide-media img {
    width: min(140px, 40%);
  }

  .product-card {
    grid-template-columns: 88px 1fr;
  }

  .hero-carousel {
    padding: 0 44px;
  }

  .carousel-btn { width: 36px; height: 36px; }

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

  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .stat-item { border-right: 0; }

  .why-grid,
  .review-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 32px 28px; }
}

@media (max-width: 760px) {
  .site-nav,
  .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  }

  .site-header.is-menu-open .lang-switch {
    display: inline-flex;
    margin: 12px 16px 20px;
    align-self: flex-start;
    position: absolute;
    top: calc(100% + 180px);
    left: 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 4px 0 0;
  }

  .carousel-btn.-prev { left: 4px; }
  .carousel-btn.-next { right: 4px; }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .page-shell {
    padding-top: 18px;
  }

  .site-header-inner {
    min-height: 60px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    width: 92px;
    height: 92px;
    aspect-ratio: auto;
  }
}
