@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #121833;
  --bg-soft: #1b2450;
  --surface: #1f2a5d;
  --surface-2: #222f68;
  --text: #f4f7ff;
  --muted: #bcc8f3;
  --brand: #28c76f;
  --danger: #ff4d5d;
  --accent: #4dd2ff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html.palette-b {
  --bg: #0f1e2f;
  --bg-soft: #163148;
  --surface: #1c3f58;
  --surface-2: #23506f;
  --text: #eef7ff;
  --muted: #b2d3e8;
  --brand: #33d17a;
  --danger: #ff5f72;
  --accent: #ffd166;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 16px 44px rgba(4, 15, 22, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(77, 210, 255, 0.2), transparent 60%),
    radial-gradient(900px 420px at 10% -20%, rgba(40, 199, 111, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 38%, #0d1330 100%);
  color: var(--text);
  line-height: 1.4;
  padding-bottom: 90px;
}

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

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

.container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(12, 19, 49, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.brand {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.18rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.33rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #081833;
}

.hero {
  padding-top: 2.2rem;
  padding-bottom: 1rem;
  display: grid;
  gap: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.45rem, 5vw, 2.3rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.06rem, 4vw, 1.4rem);
}

.subtitle,
.hero-note,
.section p,
figcaption {
  color: var(--muted);
}

.subtitle {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1rem, 3.7vw, 1.25rem);
}

.hero-note {
  margin-top: 0.95rem;
  font-size: 0.93rem;
}

.cta-group {
  display: grid;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  font-weight: 800;
  min-height: 48px;
  padding: 0.7rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: 1px solid transparent;
}

.store-link--apple {
  gap: 0.5rem;
}

.store-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn-primary {
  background: linear-gradient(135deg, #34d37d 0%, #24b861 100%);
  color: #081b11;
  box-shadow: 0 10px 24px rgba(36, 184, 97, 0.33);
}

.btn-secondary {
  background: rgba(77, 210, 255, 0.14);
  border-color: rgba(77, 210, 255, 0.5);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-media {
  background: linear-gradient(160deg, rgba(77, 210, 255, 0.2), rgba(40, 199, 111, 0.15));
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0.85rem;
}

.hero-carousel {
  position: relative;
  aspect-ratio: 9 / 19.5;
  width: min(100%, 300px);
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.carousel-toggle {
  display: flex;
  width: fit-content;
  margin: 0.75rem auto 0;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
}

.section {
  padding-block: 2.3rem;
}

.seo-intro {
  padding-top: 1.2rem;
}

.seo-intro h2 {
  margin-bottom: 0.8rem;
}

.seo-intro p {
  margin: 0.55rem 0 0;
  max-width: 80ch;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 75%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.card,
.feature-card,
.benefit,
.screen-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(77, 210, 255, 0.2);
  color: var(--accent);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.65rem;
}

.features-grid p,
.steps-grid p,
.benefits-grid p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.benefit {
  border-left: 4px solid var(--brand);
}

.screens-grid {
  display: grid;
  gap: 1rem;
}

.screen-card {
  margin: 0;
  padding: 0.6rem;
}

.screen-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

figcaption {
  font-size: 0.88rem;
  text-align: center;
  padding: 0.7rem 0.5rem 0.2rem;
}

.cta-final {
  text-align: center;
}

.cta-final p {
  max-width: 640px;
  margin: 0 auto 1.2rem;
}

.studio {
  border-top: 1px solid var(--line);
}

.studio-wrap {
  display: grid;
  gap: 1rem;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  background: rgba(10, 16, 43, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
}

.sticky-cta .btn {
  min-height: 44px;
  font-size: 0.86rem;
}

.footer {
  padding-top: 1rem;
  padding-bottom: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-direction: column;
  align-items: flex-start;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }

  .card:hover,
  .feature-card:hover,
  .benefit:hover,
  .screen-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }
}

@media (min-width: 700px) {
  body {
    padding-bottom: 0;
  }

  .topbar {
    padding-inline: 1.6rem;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 1.8rem;
    padding-top: 3rem;
  }

  .cta-group {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .screens-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .studio-wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .sticky-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 3.4rem;
  }

  .card,
  .feature-card,
  .benefit,
  .screen-card {
    padding: 1.2rem;
  }

  .subtitle {
    max-width: 62ch;
  }
}

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