:root {
  --app-font-family: "Lato", sans-serif;
  --app-heading-font-family: "Contrail One", "Lato", sans-serif;
  --app-bg-start: #1f1d75;
  --app-bg-end: #1041c7;
  --app-glass-bg: rgba(255, 255, 255, 0.12);
  --app-glass-bg-strong: rgba(255, 255, 255, 0.16);
  --app-glass-border: rgba(255, 255, 255, 0.18);
  --app-glass-shadow: 0 24px 50px rgba(4, 10, 28, 0.24);
  --app-header-bg: rgba(8, 18, 54, 0.26);
  --app-panel-bg: rgba(8, 17, 38, 0.34);
  --app-panel-bg-strong: rgba(8, 17, 38, 0.46);
  --app-text: rgba(255, 255, 255, 0.92);
  --app-text-soft: rgba(255, 255, 255, 0.78);
  --app-text-muted: rgba(255, 255, 255, 0.62);
  --app-gold: #ffefb5;
  --app-gold-strong: #ffcf23;
  --app-button-text: #15120b;
  --app-success-bg: rgba(33, 179, 110, 0.22);
  --app-success-border: rgba(66, 220, 145, 0.34);
  --app-success-text: #c9ffe1;
  --app-radius-xl: 24px;
  --app-radius-lg: 16px;
  --app-radius-md: 12px;
  --app-radius-sm: 4px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--app-font-family);
  color: var(--app-text);
  background: linear-gradient(
      160deg,
      var(--app-bg-start) 0%,
      var(--app-bg-end) 100%
    )
    fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 239, 181, 0.1),
      transparent 28%
    );
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

body,
body *:not(svg):not(path):not(circle) {
  font-family: var(--app-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand span,
.button,
.section-tag,
.eyebrow,
.pill,
.feature-index,
.faq-item summary,
.pricing-card__price,
.language-mark span {
  font-family: var(--app-heading-font-family);
  font-weight: 400;
  font-style: normal;
}

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

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

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-shell {
  overflow-x: clip;
}

.hero-copy,
.hero-visual,
.section-copy,
.section-image-card,
.community-stack,
.cta-banner > div,
.footer-grid > div {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--app-header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  color: var(--app-gold);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.language-switcher {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.language-switcher__label {
  line-height: 1;
}

.language-switcher__select {
  min-height: 46px;
  min-width: 165px;
  padding: 0.72rem 2.35rem 0.72rem 0.95rem;
  border-radius: var(--app-radius-sm);
  border: 1px solid var(--app-glass-border);
  background: var(--app-glass-bg-strong);
  color: var(--app-text);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--app-gold) 50%),
    linear-gradient(135deg, var(--app-gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.language-switcher__select:focus,
.language-switcher__select:focus-visible,
.button:focus-visible,
.faq-item summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 239, 181, 0.26);
  outline-offset: 2px;
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 2rem;
  align-items: center;
}

.section-grid--reverse {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.section-grid--media-left .section-image-card {
  order: 1;
}

.section-grid--media-left .section-copy {
  order: 2;
}

.eyebrow,
.section-tag,
.pill,
.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.eyebrow,
.section-tag {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--app-gold);
}

.pill {
  background: var(--app-success-bg);
  border: 1px solid var(--app-success-border);
  color: var(--app-success-text);
  font-size: 0.76rem;
}

.feature-index {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--app-radius-sm);
  background: rgba(255, 239, 181, 0.14);
  color: var(--app-gold);
}

.hero-copy h1,
.section-copy h2,
.section-heading h2,
.cta-banner h2,
.pricing-panel h2 {
  margin: 0 0 1rem;
  color: var(--app-gold);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-copy h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
}

.section-copy h2,
.section-heading h2,
.cta-banner h2 {
  font-size: clamp(2rem, 3.1vw, 3rem);
}

.pricing-panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.hero-subtitle,
.lead,
.section-heading p,
.section-copy p,
.cta-banner p,
.feature-card p,
.platform-card p,
.faq-item p,
.site-footer p,
.quote-card p {
  margin: 0;
  color: var(--app-text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.section-copy .lead {
  margin-bottom: 1rem;
}

.section-copy p + p,
.quote-card p + p {
  margin-top: 1rem;
}

.hero-actions,
.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.hero-actions--primary {
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border-radius: var(--app-radius-sm);
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
  box-shadow: none;
  line-height: 1;
  font-size: 1.05rem;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--app-gold);
  border-color: var(--app-gold);
  color: var(--app-button-text);
}

.button--primary:hover,
.button--primary:focus {
  background: #ffe6a0;
  border-color: #ffe6a0;
  color: var(--app-button-text);
}

.button--secondary,
.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--app-gold);
}

.button--secondary:hover,
.button--secondary:focus,
.button--ghost:hover,
.button--ghost:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff9de;
}

.button--small {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  font-size: 0.95rem;
}

.button.is-disabled,
.store-badge-link.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}

.hero-stats,
.feature-grid,
.platform-grid,
.language-grid {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.75rem;
}

.stat-card,
.hero-card,
.pricing-panel,
.pricing-card,
.feature-card,
.platform-card,
.quote-card,
.video-card,
.language-card,
.faq-item,
.cta-banner,
.section-image-card {
  background: var(--app-glass-bg);
  border: 1px solid var(--app-glass-border);
  border-radius: var(--app-radius-xl);
  box-shadow: var(--app-glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.stat-card {
  padding: 1rem 1.05rem;
}

.stat-card strong {
  display: block;
  color: var(--app-gold);
  font-size: 1.24rem;
  line-height: 1.1;
}

.hero-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-visual img {
  width: 130%;
  max-width: 130%;
  height: auto;
  object-fit: contain;
  transform: translateX(5%);
}

.section-image-card,
.video-card {
  overflow: hidden;
}

.section-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-panel {
  padding: 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
  padding: 1.2rem;
  background: rgba(8, 17, 38, 0.42);
}

.pricing-card.is-featured {
  border-color: rgba(255, 239, 181, 0.36);
  background: rgba(20, 28, 66, 0.56);
  box-shadow: 0 24px 44px rgba(6, 12, 30, 0.3);
}

.pricing-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pricing-card h3 {
  margin: 0;
  color: var(--app-gold);
  font-size: 1.8rem;
  line-height: 1;
}

.pricing-card__price {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  background: rgba(35, 189, 126, 0.18);
  border: 1px solid rgba(80, 227, 160, 0.24);
  color: #d6ffe9;
  font-size: 0.95rem;
  line-height: 1;
}

.pricing-card p {
  margin: 0;
  flex: 1;
}

.pricing-card__actions {
  display: flex;
  align-items: stretch;
}

.pricing-card__actions .button {
  width: 100%;
}

.section--pricing .pricing-panel {
  margin-top: 0.25rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-image-card {
  min-height: 440px;
  aspect-ratio: 4 / 5;
}

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

.feature-card,
.platform-card,
.quote-card,
.language-card {
  height: 100%;
}

.feature-card,
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.35rem;
}

.feature-card h3,
.platform-card h3 {
  margin: 0;
  color: var(--app-gold);
  font-size: 1.65rem;
  line-height: 1.06;
}

.platform-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.platform-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--app-gold);
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.platform-icon--fill svg {
  stroke: none;
  fill: currentColor;
}

.platform-card p {
  flex: 1;
}

.platform-card .button,
.platform-card .store-badge-link {
  width: fit-content;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  border: 0;
  line-height: 0;
}

.store-badge-link img {
  display: block;
  width: auto;
  height: 165px;
  max-width: 100%;
  object-fit: contain;
}

.store-badge-link--hero img {
  height: 189px;
}

.store-badge-link--platform img {
  height: 178px;
}

.store-badge-link--cta img {
  height: 183px;
}

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

.language-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.language-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--lang-mark-a) 0%,
    var(--lang-mark-a) 34%,
    var(--lang-mark-b) 34%,
    var(--lang-mark-b) 68%,
    var(--lang-mark-c) 68%,
    var(--lang-mark-c) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 8px 20px rgba(4, 10, 28, 0.22);
}

.language-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    transparent 48%
  );
}

.language-mark span {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--lang-mark-fg);
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item,
.video-card {
  padding: 1.2rem 1.25rem;
}

.video-card {
  min-height: 420px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.app-demo-video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: rgba(3, 8, 24, 0.72);
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 420px;
  padding: 1.4rem;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.08),
      transparent 28%
    ),
    linear-gradient(160deg, rgba(9, 20, 52, 0.86), rgba(17, 42, 108, 0.66));
}

.video-placeholder h3 {
  margin: 0;
  color: var(--app-gold);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.video-placeholder p {
  margin: 0;
  max-width: 36ch;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--app-gold);
  font-size: 1.3rem;
  line-height: 1.15;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.85rem;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.cta-stack {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.section--cta .cta-banner > div:first-child {
  max-width: 680px;
}

.section--cta .cta-stack__primary .button {
  width: 100%;
  min-height: 74px;
  font-size: 1.45rem;
}

.section--cta .cta-stack__stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.section--cta .cta-stack__stores .store-badge-link {
  justify-self: center;
}

.payment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.payment-strip--footer {
  margin-top: 1rem;
}

.payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.2rem 0.1rem;
}

.payment-logo img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 100%;
  object-fit: contain;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.brand--footer {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--app-text-soft);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--app-gold);
}

[dir="rtl"] .site-nav,
[dir="rtl"] .hero-grid,
[dir="rtl"] .section-grid,
[dir="rtl"] .footer-grid,
[dir="rtl"] .cta-banner {
  direction: rtl;
}

@media (max-width: 1024px) {
  .hero-grid,
  .section-grid,
  .section-grid--reverse,
  .cta-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: 55%;
    max-width: 55%;
    transform: none;
    margin: 0 auto;
  }

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

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

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

  .footer-links {
    justify-content: flex-start;
  }

  .site-nav {
    align-items: flex-start;
  }

  .section-grid--media-left .section-copy {
    order: 1;
  }

  .section-grid--media-left .section-image-card {
    order: 2;
  }
}

@media (max-width: 767px) {
  .site-nav,
  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .language-switcher,
  .language-switcher__select,
  .button,
  .platform-card .button {
    width: 100%;
  }

  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .hero-stats,
  .feature-grid,
  .platform-grid,
  .language-grid,
  .pricing-grid,
  .section--cta .cta-stack__stores {
    grid-template-columns: 1fr;
  }

  .brand span {
    font-size: 1.7rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    max-width: 100%;
  }

  .section-copy h2,
  .section-heading h2,
  .cta-banner h2,
  .pricing-panel h2 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .section-image-card {
    min-height: 280px;
  }

  .payment-strip,
  .payment-strip--footer {
    width: 100%;
  }

  .store-badge-link--hero img,
  .store-badge-link--platform img,
  .store-badge-link--cta img {
    height: 158px;
  }

  .payment-logo {
    justify-content: center;
    flex: 1 1 calc(50% - 0.55rem);
  }

  .video-card,
  .video-placeholder,
  .app-demo-video {
    min-height: 320px;
  }
}
