/* ========== Base ========== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #d4d4d4;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --ring: 0 0 0 3px rgba(124, 92, 255, .25);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 600px at 10% -10%, rgba(124, 92, 255, .05), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(0, 212, 255, .05), transparent 60%),
    var(--bg);
  line-height: 1.5;
}

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 .5rem
}

p {
  margin: .5rem 0 1rem
}

a {
  color: var(--text);
  text-decoration: none
}

a:hover {
  opacity: .9
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 1px 0 #ffffff inset, 0 .5rem 1.25rem rgba(0, 0, 0, .1);
  transition: transform .1s ease, box-shadow .2s ease;
  font-weight: 600
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand), #5c3dff);
  border-color: #5c3dff;
  color: #ffffff
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(0, 0, 0, .06)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0
}

.brand {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: .2px
}

.brand img {
  width: auto;
  height: 40px;
  max-width: 100%
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center
}

.site-nav a {
  color: #1e293b
}

.site-nav .btn {
  color: var(--text)
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.language-button:hover {
  background: var(--bg-soft);
  border-color: rgba(124, 92, 255, 0.3);
}

.language-button:focus {
  outline: none;
  box-shadow: var(--ring);
}

.language-button svg {
  transition: transform 0.2s ease;
}

.language-dropdown.open .language-button svg {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
  min-width: 150px;
}

.language-menu.hidden {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.language-option:hover {
  background: var(--bg-soft);
}

.language-option:first-child {
  border-radius: 8px 8px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 8px 8px;
}

.language-option .flag {
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #475569;
  margin: 5px auto
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(42, 123, 155) 0%, rgb(87, 199, 133) 50%, rgb(237, 221, 83) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 0% 20%, rgba(124, 92, 255, .08), transparent 60%),
    radial-gradient(600px 380px at 100% 0%, rgba(0, 212, 255, .08), transparent 60%);
  pointer-events: none
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem
}

.hero-copy .eyebrow {
  color: #ffd267;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  font-size: .8rem
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: .25rem 0 .75rem;
  color: #ffffff;
}

.hero .sub {
  color: #ffffff;
  max-width: 48ch;
}

.ratings {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 1rem 0
}

.stars {
  letter-spacing: 2px
}

.meta {
  color: var(--muted);
  font-size: .9rem
}

.store-ctas {
  display: flex;
  gap: .75rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 54px;
}

.app-store-btn {
  background: #000000;
  color: white;
  border: 1px solid #000000;
}

.app-store-btn:hover {
  background: #333333;
  opacity: 0.9;
}

.play-store-btn {
  background: var(--brand);
  color: white;
  border: 1px solid var(--brand);
}

.play-store-btn:hover {
  background: #5c3dff;
  opacity: 0.9;
}

.store-text {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.store-icon {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.store-subtext {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1;
}

.store-maintext {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

.hero-award {
  margin-top: .25rem
}

.award-link {
  color: #c0caf5;
  text-decoration: underline dotted
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center
}

.device-mock {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 10px
}

/* App Slideshow */
.app-slideshow {
  position: relative;
  width: 294px;
  max-width: 100%;
  overflow: hidden
}

.app-slides {
  display: flex;
  width: 600%;
  transition: transform 0.3s ease
}

.app-slides img {
  width: 16.666%;
  flex-shrink: 0;
  display: block
}

.app-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .9);
  border: 1px solid #e2e8f0;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  backdrop-filter: blur(8px)
}

.app-slider-btn:hover {
  box-shadow: var(--ring);
  background: rgba(255, 255, 255, 1)
}

.app-slider-btn.prev {
  left: 1rem
}

.app-slider-btn.next {
  right: 1rem
}

.app-dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 1rem
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  border: none;
  cursor: pointer;
  transition: background .3s ease
}

.app-dot.active {
  background: var(--brand)
}

.app-dot:hover {
  background: rgba(0, 0, 0, .4)
}

/* Strip */
.strip {
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .02)
}

.strip-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  opacity: .8
}

/* Features */
.features {
  padding: 3rem 0
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem
}

.section-head p {
  color: var(--muted)
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem
}

.card {
  background: var(--card);
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.card .icon {
  width: 48px;
  height: 48px;
  opacity: .9
}

.card h3 {
  margin: .75rem 0 .25rem
}

/* Reviews */
.reviews {
  padding: 3rem 0
}

.slider {
  position: relative
}

.slides {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth
}

.review {
  min-width: 100%;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.review blockquote {
  margin: 0 0 .5rem;
  font-size: 1.05rem
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-soft);
  border: 1px solid #e2e8f0;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer
}

.slider-btn:hover {
  box-shadow: var(--ring)
}

.slider-btn.prev {
  left: -.5rem
}

.slider-btn.next {
  right: -.5rem
}

/* FAQ */
.faq {
  padding: 3rem 0
}

details {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

details summary {
  cursor: pointer;
  font-weight: 600;
  outline: none
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 2rem 0;
  background: rgba(0, 0, 0, .02)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center
}

.brand-footer span {
  display: none
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap
}

.legal {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 1rem
}

/* ========== Responsive (≥ 900px) ========== */
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 4.5rem 0 3rem
  }

  .grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr auto
  }

  .slider-btn.prev {
    left: -1.5rem
  }

  .slider-btn.next {
    right: -1.5rem
  }

  .site-nav {
    gap: 1.25rem
  }

  .nav-toggle {
    display: none
  }
}

/* ========== Responsive Nav (≤ 899px) ========== */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: 62px;
    background: var(--bg-soft);
    border: 1px solid #e2e8f0;
    padding: .75rem;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: .5rem;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
  }

  .site-nav.show {
    display: flex
  }

  /* Language dropdown in mobile nav */
  .language-dropdown {
    width: 100%;
  }

  .language-button {
    width: 100%;
    justify-content: space-between;
  }

  .language-menu {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* ========== Policy Pages ========== */
.policy-section {
  padding: 6rem 0 3rem;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.policy-text {
  line-height: 1.7;
  color: var(--text);
}

.policy-text section {
  margin-bottom: 2.5rem;
}

.policy-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 0.5rem;
}

.policy-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.policy-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.policy-text p {
  margin-bottom: 1rem;
  color: var(--text);
}

.policy-text ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.policy-text li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.policy-text a {
  color: var(--brand);
  text-decoration: underline;
}

.policy-text a:hover {
  color: var(--brand-2);
}

.policy-text strong {
  font-weight: 600;
  color: var(--text);
}