:root {
  --bg: #07131f;
  --bg-soft: #0d1e31;
  --panel: rgba(10, 24, 40, 0.82);
  --panel-strong: rgba(7, 17, 29, 0.94);
  --line: rgba(122, 233, 255, 0.18);
  --line-strong: rgba(122, 233, 255, 0.28);
  --text: #f5fbff;
  --muted: #b7cadb;
  --cyan: #78f1ff;
  --blue: #38a9ff;
  --lime: #d9ff5a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 18%, rgba(120, 241, 255, 0.17), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(217, 255, 90, 0.12), transparent 22%),
    radial-gradient(circle at 72% 75%, rgba(56, 169, 255, 0.12), transparent 24%),
    linear-gradient(160deg, #06111c 0%, #0a1827 54%, #08131f 100%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 18%, rgba(120, 241, 255, 0.17), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(217, 255, 90, 0.12), transparent 22%),
    radial-gradient(circle at 72% 75%, rgba(56, 169, 255, 0.12), transparent 24%),
    linear-gradient(160deg, #06111c 0%, #0a1827 54%, #08131f 100%);
}

body.is-modal-open {
  overflow: hidden;
}

body[data-page="home"] {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(120, 241, 255, 0.17), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(217, 255, 90, 0.12), transparent 22%),
    radial-gradient(circle at 72% 75%, rgba(56, 169, 255, 0.12), transparent 24%),
    linear-gradient(160deg, #06111c 0%, #0a1827 54%, #08131f 100%);
}

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

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

.page {
  width: min(var(--max-width), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.page--home {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  width: calc(100% - 40px);
  max-width: none;
  padding: 14px 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  overflow: hidden;
}

.page--route {
  width: calc(100% - 40px);
  max-width: none;
  padding: 14px 0 42px;
}

.topbar,
.hero,
.section-card,
.language-grid a,
.language-strip,
.partner-modal__dialog,
.footer-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  padding: 12px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.page--home .topbar {
  margin-bottom: 0;
}

.page--route .topbar {
  margin-bottom: 0;
}

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

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(228, 241, 255, 0.92));
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.brand__title {
  display: block;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__meta {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.language-picker__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-picker__select {
  min-width: 190px;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.language-picker__select option {
  color: #07131f;
}

.chip-link,
.language-grid a {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.chip-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.chip-link:hover,
.chip-link:focus-visible,
.language-grid a:hover,
.language-grid a:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
  margin-bottom: 24px;
}

.page--home .hero {
  min-height: 0;
  height: 100%;
  margin-bottom: 0;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.16fr) minmax(460px, 0.84fr);
  gap: 34px;
}

.page--route .hero {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.16fr) minmax(440px, 0.84fr);
  gap: 34px;
  margin-bottom: 16px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(120, 241, 255, 0.16), transparent 68%);
}

.hero::after {
  bottom: -80px;
  left: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 255, 90, 0.1), transparent 68%);
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.page--home .hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.page--route .hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 0 0 10px rgba(120, 241, 255, 0.08);
}

h1,
h2,
h3 {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: -0.03em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="ar"] .brand__title,
html[lang="zh"] .brand__title,
html[lang="ja"] .brand__title,
html[lang="hi"] .brand__title {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.92;
}

.page--home h1 {
  font-size: clamp(2.4rem, 4.7vw, 4.8rem);
}

.page--route h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
}

.accent {
  display: block;
  color: var(--lime);
}

.lede {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.page--home .lede {
  max-width: 58ch;
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.58;
}

.page--route .lede {
  max-width: 58ch;
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.58;
}

.hero__actions,
.section-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button--primary {
  color: #07111b;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  box-shadow: 0 16px 38px rgba(120, 241, 255, 0.2);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero__visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.page--home .hero__visual {
  min-height: 100%;
}

.page--route .hero__visual {
  min-height: 100%;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(120, 241, 255, 0.14);
  animation: orbit 16s linear infinite;
}

.hero__visual::before {
  width: min(74%, 420px);
  height: min(74%, 420px);
}

.hero__visual::after {
  width: min(56%, 300px);
  height: min(56%, 300px);
  animation-direction: reverse;
  animation-duration: 10s;
}

.hero__visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.28));
}

.page--home .hero__visual img {
  width: min(100%, 470px);
}

.page--route .hero__visual img {
  width: min(100%, 470px);
}

.page--route .hero__visual-note {
  display: none;
}

.hero__visual-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: 250px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 17, 29, 0.84);
}

.page--home .hero__visual-note {
  right: 14px;
  bottom: 14px;
  max-width: 260px;
  padding: 12px 14px;
}

.hero__visual-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero__visual-note span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 18px;
}

.page--route .grid {
  gap: 14px;
  margin-bottom: 14px;
}

.section-card,
.footer-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.page--route .section-card,
.page--route .footer-card {
  padding: 18px 20px;
}

.section-card h2,
.footer-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.page--route .section-card h2,
.page--route .footer-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
}

.section-card p,
.section-card li,
.footer-card p {
  color: var(--muted);
  line-height: 1.75;
}

.page--route .section-card p,
.page--route .section-card li,
.page--route .footer-card p {
  font-size: 0.95rem;
  line-height: 1.64;
}

.section-card ul {
  margin: 0;
  padding-left: 20px;
}

.section-card li + li {
  margin-top: 10px;
}

.language-strip {
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.language-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.language-strip__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.language-strip__head p {
  margin: 0;
  color: var(--muted);
}

.language-switcher {
  display: flex;
  margin-top: 4px;
}

.language-switcher .language-picker {
  width: min(100%, 360px);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.language-grid a {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.language-grid a.is-suggested {
  border-color: rgba(217, 255, 90, 0.42);
  background: linear-gradient(135deg, rgba(217, 255, 90, 0.14), rgba(120, 241, 255, 0.08));
}

.language-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.language-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

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

.faq p {
  margin: 12px 0 0;
}

.footer-card {
  display: grid;
  gap: 10px;
}

.footer-cluster {
  display: flex;
  gap: 14px;
  width: 100%;
  align-items: stretch;
}

.footer-cluster > * {
  flex: 1 1 0;
  min-width: 0;
}

.footer-card--compact {
  padding: 14px 18px;
}

.footer-card--compact h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.footer-card--compact p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-card--note {
  align-content: center;
}

.footer-card p {
  margin: 0;
}

.partner-modal[hidden] {
  display: none !important;
}

.partner-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 14, 0.62);
  backdrop-filter: blur(10px);
}

.partner-modal__dialog {
  width: min(640px, 100%);
  max-width: 100%;
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(120, 241, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(9, 22, 36, 0.98), rgba(5, 13, 23, 0.98));
  border-color: var(--line-strong);
}

.partner-modal__dialog h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.96;
}

.partner-modal__dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.partner-modal__countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.page--home .partner-modal__countdown {
  display: none;
}

.partner-modal__countdown strong {
  min-width: 1.2em;
  color: var(--lime);
  font-size: 1.4rem;
}

.partner-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page--home .partner-modal__dialog {
  width: min(520px, 100%);
}

.page--home .partner-modal__dialog h2 {
  margin: 14px 0 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.page--route .partner-modal__dialog h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4.3vw, 3.2rem);
}

.page--home .partner-modal__actions {
  align-items: center;
}

.page--home [data-partner-confirm].button--primary {
  min-height: 72px;
  padding: 0 28px;
  font-size: 1.2rem;
}

.page--home [data-popup-secondary].button--ghost {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.home-side {
  display: grid;
  gap: 0;
  grid-template-rows: 1fr;
  min-height: 0;
}

.partner-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.muted-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

  .page--home .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .page--home .hero__visual {
    min-height: 210px;
  }

  .page--route .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .page--route .hero__visual {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(var(--max-width), calc(100% - 16px));
  }

  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero__visual {
    min-height: 280px;
  }

  .hero__visual img {
    width: min(100%, 270px);
  }

  .hero__visual-note {
    position: static;
    margin: 14px;
    max-width: none;
  }

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

  .partner-modal__dialog {
    padding: 22px;
  }

  .partner-modal__actions {
    flex-direction: column;
  }

  .partner-modal__actions .button {
    width: 100%;
  }

  .page--home {
    width: calc(100% - 16px);
    padding: 10px 0;
    gap: 10px;
  }

  .page--route {
    width: calc(100% - 16px);
    padding: 10px 0 28px;
  }

  .page--home .topbar {
    padding: 10px 12px;
    border-radius: 24px;
    gap: 10px;
  }

  .page--route .topbar {
    padding: 10px 12px;
    border-radius: 24px;
    gap: 10px;
  }

  .page--home .brand__meta {
    display: none;
  }

  .page--route .brand__meta {
    display: none;
  }

  .page--home .chip-link {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .page--home .topbar__actions {
    width: 100%;
  }

  .page--route .topbar__actions {
    width: 100%;
  }

  .page--home .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .page--route .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .page--home .language-picker__select {
    min-width: 0;
    width: 100%;
    text-align: right;
  }

  .page--route .language-picker__select {
    min-width: 0;
    width: 100%;
    text-align: right;
  }

  .page--home .hero {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  .page--route .hero {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  .page--home h1 {
    font-size: clamp(1.9rem, 7.7vw, 2.7rem);
  }

  .page--route h1 {
    font-size: clamp(1.95rem, 7.4vw, 2.8rem);
  }

  .page--home .lede {
    font-size: 0.85rem;
    line-height: 1.42;
  }

  .page--route .lede {
    font-size: 0.86rem;
    line-height: 1.44;
  }

  .page--home .hero__actions {
    margin-top: 12px;
  }

  .page--home .button {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .page--home .hero__visual {
    min-height: 150px;
  }

  .page--route .hero__visual {
    min-height: 160px;
  }

  .page--home .hero__visual img {
    width: min(100%, 160px);
  }

  .page--route .hero__visual img {
    width: min(100%, 170px);
  }

  .page--home .hero__visual-note {
    display: none;
  }

  .page--route .section-card,
  .page--route .footer-card {
    padding: 16px;
  }

  .page--route .grid {
    gap: 10px;
    margin-bottom: 10px;
  }

  .page--home .footer-card--compact {
    padding: 10px 12px;
  }

  .page--home .footer-card--compact p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .page--home .footer-cluster {
    flex-direction: column;
    gap: 10px;
  }

  .page--home .partner-modal__dialog {
    width: min(360px, calc(100vw - 18px));
    padding: 18px;
  }

  .page--home .partner-modal__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .page--home [data-partner-confirm].button--primary,
  .page--home [data-popup-secondary].button--ghost {
    width: 100%;
  }

  .page--home [data-partner-confirm].button--primary {
    min-height: 60px;
    font-size: 1.1rem;
  }
}
