:root {
  --gold: #d9b56d;
  --gold-soft: rgba(217, 181, 109, 0.25);
  --gold-strong: #b98a32;
  --gold-deep: #8f681d;

  --blue-deep: #456ebf;
  --blue-soft: #dce9ff;

  --text-dark: #273044;
  --text-soft: rgba(39, 48, 68, 0.78);

  --glass: rgba(255, 255, 255, 0.34);
  --glass-strong: rgba(255, 255, 255, 0.52);
  --glass-border: rgba(255, 255, 255, 0.50);

  --shadow: 0 22px 60px rgba(54, 71, 120, 0.16);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: #f8f8f6;
}

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

html[lang="th"] .hero-title,
html[lang="th"] .logo,
html[lang="th"] .lang-btn {
  font-family: "Cinzel", serif;
}

body {
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Background */
.bg-watercolor {
  position: fixed;
  inset: 0;
  background-image: url("./assets/watercolor-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(222, 195, 126, 0.13), transparent 28%),
    radial-gradient(circle at bottom left, rgba(91, 137, 230, 0.14), transparent 34%),
    linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  z-index: 1;
  pointer-events: none;
}

/* Topbar */
.topbar {
  position: absolute;
  top: 24px;
  left: 36px;
  right: 36px;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Cinzel", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.96);
  text-transform: uppercase;
  text-shadow:
    0 2px 14px rgba(47, 67, 120, 0.32),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Language Toggle */
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.58);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(54, 71, 120, 0.12);
}

.lang-btn {
  border: none;
  cursor: pointer;

  padding: 8px 12px;
  border-radius: 999px;

  background: transparent;
  color: rgba(35, 48, 78, 0.70);

  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;

  transition: all 0.22s ease;
}

.lang-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #e3bf72, #b98a32);
  box-shadow: 0 6px 16px rgba(185, 138, 50, 0.24);
}

/* Hero */
.hero-section {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 108px 24px 72px;
}

.slider-wrapper {
  width: 100%;
  max-width: 1240px;

  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 12px;
}

.slides-container {
  position: relative;
  width: 100%;
  overflow: visible;
}

.project-slide {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.project-slide.active {
  display: flex;
}

/* Hero Card */
.hero-card {
  width: min(100%, 900px);
  min-height: 420px;

  padding: 54px 46px;
  border-radius: 36px;

  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);

  text-align: center;
}

.small-label {
  margin-bottom: 18px;

  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(53, 66, 102, 0.76);
}

.hero-title {
  font-size: clamp(2.15rem, 11vw, 3.15rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  margin-bottom: 28px;
}

.tag {
  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(201, 159, 71, 0.24);

  color: #496ab6;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 30px;

  font-size: 1.05rem;
  line-height: 1.82;

  color: rgba(39, 48, 68, 0.88);
}

html[lang="th"] .hero-description {
  font-size: 1.08rem;
  line-height: 1.9;
}

/* Store Badges */
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;

  margin-top: 24px;
}

.store-badge {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.store-badge img {
  display: block;
  height: 46px;
  width: auto;
  border-radius: 8px;
}

.android-coming-soon {
  opacity: 0.88;
}

.coming-soon-pill {
  position: absolute;
  right: -4px;
  top: 2px;

  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(201, 162, 39, 0.95);
  color: white;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Arrows */
.nav-arrow {
  width: 52px;
  height: 52px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: var(--gold-strong);
  font-size: 1.5rem;

  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.52);
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;

  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;

  border: none;
  border-radius: 50%;

  background: rgba(83, 107, 160, 0.28);
  cursor: pointer;

  transition: all 0.2s ease;
}

.dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold-strong);
}

/* Footer */
.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;

  padding: 0 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  text-align: center;
  color: rgba(39, 48, 68, 0.58);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 900px) {
  .topbar {
    top: 22px;
    left: 24px;
    right: 24px;
  }

  .slider-wrapper {
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
  }

  .hero-card {
    padding: 38px 24px;
    border-radius: 28px;
    min-height: auto;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  html[lang="th"] .hero-description {
    font-size: 1rem;
    line-height: 1.85;
  }
}

@media (max-width: 768px) {
  .store-badge img {
    height: 46px;
  }

  .store-badges {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .topbar {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .lang-btn {
    padding: 7px 10px;
    font-size: 11px;
  }

  .hero-section {
    min-height: 100vh;
    padding: 94px 14px 70px;
  }

  .slider-wrapper {
    grid-template-columns: 1fr;
  }

  .nav-arrow {
    display: none;
  }

  .hero-card {
    width: 100%;
    padding: 34px 14px;
    border-radius: 28px;
  }

  .small-label {
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }

  .hero-title {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
    line-height: 1.05;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .tag-row {
    gap: 8px;
    margin-bottom: 22px;
  }

  .tag {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.74;
    margin-bottom: 24px;
  }

  html[lang="th"] .hero-description {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .store-badges {
    flex-direction: column;
    gap: 12px;
  }

  .store-badge img {
    height: 44px;
  }

  .coming-soon-pill {
    right: -6px;
    top: -6px;
  }

  .site-footer {
    bottom: 14px;
  }

  .footer-inner {
    font-size: 0.82rem;
  }
}
