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

:root {
  --cream: #f3ede4;
  --cream-dark: #ede5d8;
  --amber: #f2a916;
  --amber-dark: #d4920f;
  --amber-light: #fdf3dd;
  --text: #1c1a16;
  --text-mid: #6b6457;
  --text-light: #8a8076;
  --white: #faf8f4;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--cream);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.gateway-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.gateway-card {
  position: relative;
  width: min(100%, 600px);
  overflow: hidden;
  padding: clamp(40px, 8vw, 72px);
  border: 1px solid rgba(28, 26, 22, 0.07);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(28, 26, 22, 0.1);
  text-align: center;
}

.gateway-card::before {
  position: absolute;
  top: -140px;
  left: 50%;
  width: 360px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 22, 0.22) 0%, transparent 70%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.gateway-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.gateway-logo span {
  color: var(--amber);
}

.gateway-card h1 {
  position: relative;
  margin-bottom: 12px;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: -1.3px;
  line-height: 1.15;
}

.gateway-card p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.65;
}

.gateway-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.gateway-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--amber);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.gateway-link:last-child {
  background: var(--cream-dark);
}

.gateway-link:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.gateway-link:last-child:hover {
  background: #dfd5c7;
}

.gateway-link small {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 500;
}

.gateway-note {
  margin-top: 22px;
  color: var(--text-light) !important;
  font-size: 12px !important;
}

html[lang="th"] body {
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(28, 26, 22, 0.72);
  outline-offset: 3px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(243, 237, 228, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo,
.footer-logo {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo {
  font-size: 20px;
}

.nav-logo span,
.footer-logo span {
  color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(28, 26, 22, 0.12);
  border-radius: 100px;
  background: rgba(250, 248, 244, 0.72);
}

.language-switch a {
  min-width: 36px;
  padding: 7px 9px;
  border-radius: 100px;
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.language-switch a:hover {
  color: var(--text);
}

.language-switch a[aria-current="page"] {
  background: var(--text);
  color: var(--cream);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--text);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta.secondary {
  background: var(--cream-dark);
  color: var(--text);
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  gap: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(242, 169, 22, 0.3);
  border-radius: 100px;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero-eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

h1 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
}

html[lang="th"] h1 {
  letter-spacing: -1.3px;
  line-height: 1.2;
}

h1 em,
.accent {
  color: var(--amber);
  font-style: normal;
}

.hero-sub {
  max-width: 470px;
  margin-bottom: 44px;
  color: var(--text-mid);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s, transform 0.2s;
}

.btn-primary {
  padding: 16px 30px;
  background: var(--amber);
  color: var(--text);
  letter-spacing: -0.2px;
}

.btn-primary.secondary {
  background: var(--text);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
}

.btn-primary.secondary:hover {
  background: #3a3731;
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-note {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 400;
}

/* Phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-wrap {
  position: relative;
  width: 290px;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 590px;
  overflow: hidden;
  border-radius: 44px;
  background: #1a1a18;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.28),
    0 30px 60px -20px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.phone-inner {
  position: absolute;
  inset: 3px;
  overflow: hidden;
  border-radius: 41px;
  background: var(--cream);
}

.screen-slider {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-img {
  display: block;
  flex-shrink: 0;
  width: 25%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(242, 169, 22, 0.25) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.screen-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--amber);
}

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}

.marquee-section {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: var(--cream-dark);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 16px 32px;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
}

.marquee-item .flag {
  font-size: 18px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-label {
  margin-bottom: 16px;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

html[lang="th"] .section-label {
  letter-spacing: 0.8px;
}

.section-title {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

html[lang="th"] .section-title {
  letter-spacing: -0.8px;
  line-height: 1.25;
}

.section-sub {
  max-width: 540px;
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.6;
}

.feel-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-mid);
  font-size: 15px;
}

.question-check {
  color: var(--amber-dark);
  font-size: 18px;
  line-height: 1.35;
}

.feel-visual {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feel-visual::before {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(242, 169, 22, 0.12) 0%, transparent 70%);
  content: "";
}

.feel-amount-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.feel-amount {
  color: var(--text);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
}

.feel-currency {
  color: var(--text-mid);
  font-size: 18px;
  font-weight: 600;
}

.feel-conversion {
  margin-bottom: 28px;
  color: var(--text-light);
  font-size: 15px;
}

.feel-conversion strong {
  color: var(--amber-dark);
  font-weight: 600;
}

.feel-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--cream);
}

.feel-item-emoji {
  flex-shrink: 0;
  font-size: 20px;
}

.feel-item-copy {
  min-width: 0;
  flex: 1;
}

.feel-item-result {
  flex-shrink: 0;
  text-align: right;
}

.feel-item-label,
.feel-item-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.feel-item-value {
  font-weight: 700;
}

.feel-item-sub {
  color: var(--text-light);
  font-size: 11px;
}

.features-heading {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  font-size: 24px;
}

.feature-card-icon.c1 { background: #fde9a0; }
.feature-card-icon.c2 { background: #d4e8cb; }
.feature-card-icon.c3 { background: #d4e0f8; }
.feature-card-icon.c4 { background: #f8d4d4; }

.feature-card-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feature-card-desc {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.55;
}

.stats-section {
  max-width: none;
  padding: 80px 48px;
  background: var(--text);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 400;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.dest-card {
  padding: 20px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.15s;
}

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

.dest-flag {
  margin-bottom: 6px;
  font-size: 28px;
}

.dest-name {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.dest-currency {
  color: var(--text-light);
  font-size: 11px;
}

.cta-section {
  max-width: none;
  padding: 100px 48px;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--cream) 100%);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
}

html[lang="th"] .cta-inner h2 {
  letter-spacing: -0.8px;
  line-height: 1.25;
}

.cta-inner p {
  margin-bottom: 40px;
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-appstore {
  padding: 16px 32px;
  background: var(--text);
  color: var(--white);
}

.btn-appstore.secondary {
  background: var(--amber);
  color: var(--text);
}

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

.btn-appstore svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text-light);
  font-size: 13px;
}

.footer-logo {
  font-size: 16px;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 1050px) {
  .nav-store-link span {
    display: none;
  }

  .nav-cta {
    padding: 10px 12px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 120px;
    text-align: center;
  }

  .hero-sub {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  section {
    padding: 72px 24px;
  }

  .feel-section {
    grid-template-columns: 1fr;
  }

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

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

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .gateway-page {
    padding: 20px;
  }

  .gateway-card {
    padding: 42px 24px;
    border-radius: 24px;
  }

  .gateway-options {
    grid-template-columns: 1fr;
  }

  .nav-store-link {
    display: none;
  }

  .hero {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero-actions {
    gap: 12px;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: 14px;
  }

  .hero-note {
    width: 100%;
  }

  .phone-frame {
    width: 260px;
    height: 530px;
  }

  .phone-wrap {
    width: 260px;
  }

  .feel-visual {
    padding: 28px 20px;
  }

  .feel-amount {
    font-size: 46px;
  }

  .feel-item {
    gap: 10px;
    padding: 11px 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-section,
  .cta-section {
    padding-right: 24px;
    padding-left: 24px;
  }

  footer {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
