:root {
  color-scheme: light dark;
  --bg: #f6f9ff;
  --surface: #ffffff;
  --text: #132038;
  --muted: #4d607d;
  --primary: #2c6cff;
  --primary-soft: #eaf1ff;
  --border: #dbe5ff;
  --shadow: 0 8px 24px rgba(32, 74, 154, 0.12);
}

:root[data-theme="dark"] {
  --bg: #0a1124;
  --surface: #122447;
  --text: #eaf0ff;
  --muted: #a5bbe0;
  --primary: #8cc8ff;
  --primary-soft: #152a52;
  --border: #2b4f8a;
  --shadow: 0 10px 28px rgba(90, 160, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.hero {
  padding: 56px 0 38px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.1;
}

.hero-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cta-button.small,
.ghost-button.small {
  padding: 10px 14px;
  font-size: 14px;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.cta-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
}

:root[data-theme="dark"] .cta-button:hover,
:root[data-theme="dark"] .ghost-button:hover {
  box-shadow: 0 0 0 1px rgba(140, 200, 255, 0.3), 0 8px 22px rgba(90, 160, 255, 0.24);
}

.hero-visual img {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

section {
  padding: 48px 0;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-marquee {
  margin-top: 26px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.feature-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: feature-scroll 36s linear infinite;
}

.feature-track:hover {
  animation-play-state: paused;
}

.feature-card {
  width: min(320px, 82vw);
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .cta-inner {
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .feature-card::before,
:root[data-theme="dark"] .cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(140, 200, 255, 0.16), rgba(140, 200, 255, 0));
  pointer-events: none;
}

:root[data-theme="dark"] .hero-visual img,
:root[data-theme="dark"] .gallery-grid img {
  box-shadow: 0 10px 28px rgba(90, 160, 255, 0.18);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-strip {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.gallery-strip img {
  width: 220px;
  max-width: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.gallery-grid img {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-inner {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-inner p {
  color: var(--muted);
}

.app-store-badge-link {
  display: inline-flex;
  margin-top: 8px;
}

.app-store-badge {
  width: 188px;
  max-width: 100%;
  height: auto;
}

.badge-dark {
  display: none;
}

:root[data-theme="dark"] .badge-light {
  display: none;
}

:root[data-theme="dark"] .badge-dark {
  display: block;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 38px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

@keyframes feature-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 66px;
  }

  section {
    padding: 34px 0;
  }

  .gallery-strip img {
    width: 190px;
  }

  .cta-inner {
    padding: 28px 18px;
  }
}
