:root {
  --bg: #fbf4e8;
  --bg-soft: #f4e4cf;
  --paper: #fffaf1;
  --ink: #1c1511;
  --muted: #6c5848;
  --soft: #a98768;
  --line: rgba(94, 54, 25, .18);
  --line-strong: rgba(94, 54, 25, .32);
  --brand: #b66a35;
  --brand-dark: #7b3d1e;
  --pink: #d58a4b;
  --peach: #e6bf86;
  --ai: #7c4dff;
  --mint: #1ab59a;
  --gold: #e6c36a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(70, 38, 18, .18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 5%, rgba(230, 195, 106, .22), transparent 32%),
    linear-gradient(180deg, #fbf4e8 0%, #fffaf1 38%, #f6e7d2 100%);
  font-family: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 61, 30, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 61, 30, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 72%);
}

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

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

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: .96;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.03;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0 10px;
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, .9);
  box-shadow: 0 12px 34px rgba(70, 38, 18, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(123, 61, 30, .22);
}

.nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-links {
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #6b5646;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--brand-dark);
  background: #f4e4cf;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8ead8;
}

.lang button {
  min-width: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  color: #795f48;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  font-size: 14px;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #d3954c, #8a451f 72%, #1c1511);
  box-shadow: 0 16px 34px rgba(123, 61, 30, .28);
}

.btn.secondary {
  color: var(--brand-dark);
  background: #f4e4cf;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.dark {
  color: white;
  background: var(--ink);
}

.mobile-menu {
  display: none;
}

.hero {
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(38px, 6vw, 76px);
}

.page-hero {
  padding: clamp(54px, 8vw, 96px) 0 clamp(42px, 6vw, 74px);
}

.page-hero .lead {
  max-width: 780px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lead {
  max-width: 690px;
  margin-top: 22px;
  color: #6d5846;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.store-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #765a3f;
  background: #fffaf1;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.phone-stage {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.hero-app-shot {
  width: min(360px, 86vw);
  border: 1px solid rgba(94, 54, 25, .22);
  border-radius: 34px;
  background: #f8dfa4;
  box-shadow: 0 28px 80px rgba(70, 38, 18, .24);
}

.phone {
  width: min(330px, 88vw);
  aspect-ratio: 9 / 18.7;
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1c1511, #090706);
  box-shadow: var(--shadow);
}

.screen {
  height: 100%;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
  background: linear-gradient(180deg, #2a1b12 0%, #fff7e9 45%, #e7c28b 100%);
}

.status {
  display: flex;
  justify-content: space-between;
  color: #d8bc8a;
  font-size: 12px;
  font-weight: 950;
}

.video-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 26px;
  background: linear-gradient(150deg, #1b100b 0%, #b66a35 45%, #e6c36a 72%, #7c4dff 100%);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 28px 52px auto;
  height: 120px;
  border-radius: 999px 999px 44px 44px;
  background: rgba(255, 235, 196, .58);
}

.video-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 210px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 90px 90px 0 0;
  background: rgba(32, 18, 22, .78);
}

.badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, .45);
  font-size: 12px;
  font-weight: 950;
}

.caption {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: 0 10px 24px rgba(70, 38, 18, .10);
}

.caption b {
  display: block;
  margin-bottom: 4px;
}

.match-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.control {
  padding: 10px 8px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #f4e4cf;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.floating-card {
  position: absolute;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 241, .94);
  box-shadow: var(--shadow);
}

.floating-card.ai {
  top: 80px;
  right: 0;
  max-width: 190px;
}

.floating-card.translation {
  bottom: 82px;
  left: 0;
  max-width: 210px;
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.soft {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #f4e4cf, #fff8eb);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 520px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(70, 38, 18, .10);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  min-width: 0;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(182, 106, 53, .36);
  box-shadow: 0 22px 52px rgba(70, 38, 18, .16);
}

.card.tint {
  background: linear-gradient(145deg, #f4e4cf, #fffaf1);
}

.card.ai {
  border-color: rgba(124, 77, 255, .22);
  background: linear-gradient(145deg, #f1e9ff, #fffaf1);
}

.grid-4 .card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 121, 219, .34);
  background: #d8e5ff;
  box-shadow: 0 20px 46px rgba(64, 88, 150, .18);
}

.grid-4 .card:hover p {
  color: #4d5b72;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.icon.ai {
  background: var(--ai);
}

.card h3 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 32px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffaf1;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  min-width: 0;
}

.step:hover {
  transform: translateX(6px);
  border-color: rgba(182, 106, 53, .34);
  background: #fff4df;
  box-shadow: 0 16px 34px rgba(70, 38, 18, .12);
}

.step-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  font-weight: 950;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.feature-list span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.comparison-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(70, 38, 18, .10);
  -webkit-overflow-scrolling: touch;
}

.comparison {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fffaf1;
}

.comparison th,
.comparison td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.comparison th {
  color: #fff8eb;
  background: var(--ink);
}

.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-orbit {
  align-content: center;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 195, 106, .35), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(124, 77, 255, .16), transparent 24%),
    rgba(255, 250, 241, .72);
}

.genre-orbit span:nth-child(2n) {
  transform: translateY(16px);
}

.genre-orbit span:nth-child(3n) {
  transform: translateY(-10px);
}

.genre-cloud span {
  --float-y: -10px;
  --float-x: 4px;
  --float-rotate: -1deg;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6f5135;
  background: #fffaf1;
  font-weight: 900;
  will-change: transform;
  animation: genreFloat 5.8s cubic-bezier(.25, 1, .5, 1) infinite alternate;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.genre-cloud span:nth-child(2n) {
  --float-y: 12px;
  --float-x: -6px;
  --float-rotate: 1.5deg;
  animation-duration: 6.6s;
}

.genre-cloud span:nth-child(3n) {
  --float-y: -14px;
  --float-x: -3px;
  --float-rotate: .8deg;
  animation-duration: 7.2s;
}

.genre-cloud span:nth-child(4n) {
  --float-y: 8px;
  --float-x: 8px;
  --float-rotate: -1.4deg;
  animation-duration: 6.1s;
}

.genre-cloud span:nth-child(5n) {
  animation-delay: -1.8s;
}

.genre-cloud span:nth-child(6n) {
  animation-delay: -3.1s;
}

@keyframes genreFloat {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotate));
  }
}

.genre-cloud span:hover {
  animation-play-state: paused;
  transform: translateY(-8px) rotate(-1deg);
  background: #f7d889;
  box-shadow: 0 14px 28px rgba(70, 38, 18, .13);
}

.download-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  overflow: hidden;
  border-radius: 32px;
  color: white;
  background: var(--ink);
  min-width: 0;
}

.download-band p {
  color: rgba(255, 255, 255, .76);
}

.shot-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.shot-row img {
  width: 88px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.app-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.app-showcase img {
  width: 100%;
  border: 1px solid rgba(94, 54, 25, .22);
  border-radius: 26px;
  background: #f8dfa4;
  box-shadow: 0 20px 46px rgba(70, 38, 18, .16);
  transition: transform .22s ease, box-shadow .22s ease;
}

.app-showcase img:hover {
  transform: translateY(-12px) rotate(var(--tilt, -1deg));
  box-shadow: 0 28px 64px rgba(70, 38, 18, .24);
}

.app-showcase img:nth-child(even):hover {
  --tilt: 1deg;
}

.footer {
  padding: 58px 0 30px;
  color: white;
  background: #1c1511;
}

.footer p,
.footer a,
.legal {
  color: rgba(255, 255, 255, .68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}

.footer h4 {
  margin: 0 0 14px;
}

.footer a {
  display: block;
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}

:focus-visible {
  outline: 3px solid rgba(182, 106, 53, .48);
  outline-offset: 3px;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .nav,
[dir="rtl"] .brand,
[dir="rtl"] .nav-panel,
[dir="rtl"] .nav-links,
[dir="rtl"] .nav-actions,
[dir="rtl"] .hero-actions,
[dir="rtl"] .store-row,
[dir="rtl"] .button-row,
[dir="rtl"] .proof-line,
[dir="rtl"] .shot-row,
[dir="rtl"] .legal,
[dir="rtl"] .feature-list span {
  direction: rtl;
}

[dir="rtl"] .comparison th,
[dir="rtl"] .comparison td {
  text-align: right;
}

[dir="rtl"] .step:hover {
  transform: translateX(-6px);
}

@media (max-width: 980px) {
  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fffaf1;
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lang {
    justify-content: center;
    border-radius: 20px;
  }

  .nav-links a,
  .nav-actions .btn,
  .nav-actions .lang {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .hero-grid,
  .split,
  .download-band {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 520px;
  }

  .grid-4,
  .grid-3,
  .app-showcase,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }
}

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

  .nav-wrap {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .nav {
    border-radius: 22px;
    gap: 10px;
    padding: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  h3 {
    font-size: 20px;
  }

  p,
  .lead {
    font-size: 16px;
  }

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

  .section,
  .page-hero {
    padding-block: 48px;
  }

  .hero-actions,
  .store-row,
  .button-row {
    flex-direction: column;
  }

  .hero-actions .btn,
  .store-row .btn,
  .button-row .btn {
    width: 100%;
  }

  .grid-4,
  .grid-3,
  .app-showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .phone-stage {
    display: block;
    min-height: auto;
  }

  .phone,
  .hero-app-shot {
    margin-inline: auto;
  }

  .step {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .step-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .shot-row {
    flex-wrap: wrap;
    align-items: start;
  }

  .legal {
    flex-direction: column;
  }

  .comparison {
    min-width: 0;
    font-size: 14px;
  }

  .comparison thead,
  .comparison tbody,
  .comparison tr,
  .comparison th,
  .comparison td {
    display: block;
    width: 100%;
  }

  .comparison thead {
    display: none;
  }

  .comparison tr {
    border-bottom: 1px solid var(--line);
  }

  .comparison td {
    border-bottom: 0;
  }

  .download-band {
    padding: 22px;
    border-radius: 24px;
  }

  .genre-orbit span:nth-child(n) {
    transform: none;
  }

  .genre-cloud span {
    animation: none;
  }
}

@media (pointer: coarse) {
  .btn,
  .nav-links a,
  .lang button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
