@import url("./theme.css");

:root,
:root[data-theme="light"] {
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --accent-contrast: #ffffff;
  --web-header: rgba(8, 111, 91, 0.88);
  --web-header-border: rgba(222, 255, 246, 0.25);
  --web-header-text: #ffffff;
}

:root[data-theme="dark"] {
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-contrast: #06231f;
  --web-header: rgba(5, 56, 55, 0.78);
  --web-header-border: rgba(167, 243, 208, 0.18);
  --web-header-text: #effffb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --accent: #5eead4;
    --accent-hover: #99f6e4;
    --accent-contrast: #06231f;
    --web-header: rgba(5, 56, 55, 0.78);
    --web-header-border: rgba(167, 243, 208, 0.18);
    --web-header-text: #effffb;
  }
}

body {
  margin: 0;
}

a {
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 50;
  padding: max(17px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 23px
    max(18px, env(safe-area-inset-left));
  color: var(--web-header-text);
  background:
    radial-gradient(circle at 12% -30%, rgba(255, 255, 255, 0.28), transparent 18rem),
    linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(13, 148, 136, 0.16)),
    var(--web-header);
  border: 1px solid var(--web-header-border);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 14px 40px rgba(5, 69, 62, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.site-header > * {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.topbar {
  position: relative;
  display: flex;
  min-height: 46px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.container-wide {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  max-width: min(64%, 420px);
  align-items: center;
  color: var(--web-header-text);
  font-size: clamp(21px, 4vw, 25px);
  font-weight: 850;
  letter-spacing: 0.01em;
  text-align: center;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.logo > span:last-child,
.logo strong,
.logo small {
  display: block;
  min-width: 0;
}

.logo > span:last-child {
  overflow: hidden;
  text-align: left;
}

.logo strong,
.logo small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  margin-right: 10px;
  flex: 0 0 auto;
  font-size: 29px;
}

.logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-header .language-select,
.site-header .theme-toggle,
.site-header .icon-button {
  color: var(--web-header-text);
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--web-header-border);
}

.search {
  display: flex;
  padding: 5px;
  gap: 7px;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid var(--web-header-border);
  border-radius: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.search-icon {
  display: grid;
  width: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--web-header-text);
  font-size: 21px;
}

.search input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  flex: 1 1 auto;
  color: var(--text-strong);
  background: var(--glass-strong);
  border: 1px solid transparent;
  border-radius: 12px;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.search button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 17px;
  color: #ffffff;
  background: #17324d;
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease), filter var(--duration-fast) var(--ease);
}

.search button:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.menu-btn {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--web-header-text);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--web-header-border);
  border-radius: 13px;
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  transform: none;
  transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

.container {
  width: min(100%, 1136px);
  min-height: 48vh;
  margin: 0 auto;
  padding: 22px 18px 34px;
}

.hero,
.merchant-card,
.detail-card,
.empty,
.empty-state {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.hero {
  position: relative;
  display: grid;
  min-height: 330px;
  padding: clamp(21px, 5vw, 32px);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(22px, 5vw, 60px);
  border-radius: var(--radius-lg);
}

.hero::after {
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  content: "";
  z-index: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 50%;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.2;
}

.hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  min-height: 30px;
  margin-bottom: 13px;
  padding: 5px 11px;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--glass-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--glass-border));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-badge i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero-cta,
.text-link,
.back-home,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 750;
}

.hero-cta {
  min-height: 42px;
  margin-top: 20px;
  padding: 9px 14px;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 250px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
}

.hero-art .orb-one {
  inset: 8% 4% auto auto;
  width: 210px;
  height: 210px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(59, 130, 246, 0.13));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.hero-art .orb-two {
  right: 44%;
  bottom: 4%;
  width: 86px;
  height: 86px;
  background: rgba(59, 130, 246, 0.13);
  filter: blur(2px);
}

.hero-pin {
  position: absolute;
  top: 50%;
  right: 25%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--accent-contrast);
  background: var(--accent);
  border: 7px solid color-mix(in srgb, var(--glass-strong) 78%, transparent);
  border-radius: 54% 54% 54% 15%;
  box-shadow: var(--shadow-md);
  transform: translate(50%, -50%) rotate(-45deg);
}

.hero-pin > * {
  transform: rotate(45deg);
}

.hero-pin span {
  font-size: 12px;
  font-weight: 850;
}

.hero-pin strong {
  font-size: 22px;
}

.hero-float {
  position: absolute;
  display: flex;
  min-height: 42px;
  padding: 8px 12px;
  align-items: center;
  gap: 7px;
  color: var(--text-strong);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.hero-float span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.float-one {
  top: 10%;
  left: 3%;
}

.float-two {
  right: 0;
  bottom: 8%;
}

.feature-carousel {
  position: relative;
  min-width: 0;
  outline: none;
}

.feature-carousel:not(.is-ready) .feature-slide + .feature-slide {
  margin-top: 28px;
}

.feature-carousel-viewport,
.feature-carousel-track,
.feature-slide {
  min-width: 0;
}

.feature-carousel.is-ready .feature-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  touch-action: pan-y;
  transition: height 360ms var(--ease);
}

.feature-carousel.is-ready .feature-carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.feature-carousel.is-ready .feature-slide {
  flex: 0 0 100%;
  width: 100%;
}

.feature-carousel.is-ready .hero,
.feature-carousel.is-ready .app-download-section {
  margin-top: 0;
}

.feature-carousel:focus-visible .feature-carousel-viewport {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.feature-carousel-controls {
  display: none;
}

.feature-carousel.is-ready .feature-carousel-controls {
  display: flex;
  width: fit-content;
  min-height: 42px;
  margin: 13px auto 0;
  padding: 5px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.carousel-arrow,
.carousel-dot {
  border: 0;
  cursor: pointer;
}

.carousel-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--accent) 8%, var(--glass-soft));
  border-radius: 50%;
  font: inherit;
  font-size: 17px;
  transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: var(--accent-contrast);
  background: var(--accent);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  border-radius: 999px;
  transition: width 260ms var(--ease), background 260ms var(--ease);
}

.carousel-dot.is-active {
  width: 25px;
  background: var(--accent);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-download-section {
  position: relative;
  display: grid;
  min-height: 380px;
  margin-top: 28px;
  padding: clamp(22px, 5vw, 38px);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: clamp(22px, 5vw, 52px);
  color: var(--text);
  background:
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 19rem),
    linear-gradient(135deg, color-mix(in srgb, var(--glass-strong) 92%, transparent), var(--glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-md);
  scroll-margin-top: 18px;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.app-download-section::before {
  position: absolute;
  inset: auto auto -90px -70px;
  width: 230px;
  height: 230px;
  content: "";
  background: color-mix(in srgb, #3b82f6 13%, transparent);
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.app-download-copy,
.app-phone-art {
  position: relative;
  z-index: 1;
}

.app-download-copy > h2 {
  margin: 0 0 9px;
  color: var(--text-strong);
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.2;
}

.app-download-copy > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.app-kicker {
  display: inline-flex;
  min-height: 30px;
  margin-bottom: 13px;
  padding: 5px 11px;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--glass-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 21%, var(--glass-border));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.app-kicker i {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-install-grid {
  display: grid;
  margin-top: 21px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-install-card {
  display: grid;
  min-width: 0;
  padding: 15px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.app-platform-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #334155, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.app-platform-icon.android {
  background: linear-gradient(145deg, #16a34a, #08763c);
  font-size: 20px;
}

.app-install-card-copy {
  min-width: 0;
}

.app-install-card h3 {
  margin: 1px 0 4px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.3;
}

.app-install-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.app-action-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 3px;
  padding: 8px 13px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: #18263a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 9px 19px rgba(15, 23, 42, 0.2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: filter var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.app-action-button.android {
  background: #08763c;
}

.app-action-button:hover,
.app-action-button:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.app-action-button > span:first-child {
  font-size: 22px;
  line-height: 1;
}

.app-action-button small,
.app-action-button strong {
  display: block;
}

.app-action-button small {
  margin-bottom: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.app-action-button strong {
  font-size: 14px;
  line-height: 1.25;
}

.app-action-button.is-installed {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.app-note,
.apk-download-link {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.5;
}

.app-note {
  color: var(--muted);
}

.install-help {
  padding: 8px 9px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--glass-border));
  border-radius: 9px;
}

.install-help[hidden] {
  display: none;
}

.apk-download-link {
  display: flex;
  min-height: 31px;
  padding: 5px 9px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 9px;
  font-weight: 750;
}

.apk-download-link span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.app-phone-art {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.app-phone {
  position: relative;
  width: min(195px, 80%);
  padding: 12px;
  background: linear-gradient(150deg, #2d4157, #07111f);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 33px;
  box-shadow: 0 24px 52px rgba(3, 18, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotate(4deg);
}

.app-phone-speaker {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 5px;
  background: #08111d;
  border-radius: 999px;
  transform: translateX(-50%);
}

.app-phone-screen {
  display: grid;
  min-height: 272px;
  padding: 32px 15px 20px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #effffb;
  background:
    radial-gradient(circle at 50% 28%, rgba(110, 231, 183, 0.3), transparent 45%),
    linear-gradient(155deg, #0f766e, #063a38 68%, #071c1b);
  border-radius: 24px;
}

.app-phone-screen img {
  display: block;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 23px;
  box-shadow: 0 14px 28px rgba(3, 28, 27, 0.32);
}

.app-phone-screen strong {
  font-size: 16px;
  text-align: center;
}

.app-phone-screen i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-style: normal;
}

.app-spark {
  position: absolute;
  color: var(--accent);
  font-size: 27px;
  font-weight: 900;
}

.app-spark.spark-one {
  top: 10%;
  right: 6%;
}

.app-spark.spark-two {
  bottom: 10%;
  left: 6%;
  font-size: 46px;
}

.section-title {
  margin: 25px 0 12px;
  color: var(--text-strong);
  font-size: clamp(19px, 3vw, 22px);
}

.grid,
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.discovery-section,
.featured-section {
  margin-top: 28px;
  scroll-margin-top: 18px;
}

.section-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-heading .eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(19px, 3vw, 23px);
}

.text-link,
.back-home {
  flex: 0 0 auto;
  font-size: 13px;
}

.subcategory-panel {
  padding: 18px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.subcategory-grid {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.chip {
  display: grid;
  min-height: 49px;
  padding: 10px 9px;
  place-items: center;
  color: var(--text-strong);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.chip:hover {
  background: var(--glass-hover);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-md);
  transform: translateY(-2px);
}

.chip.active,
.chip[aria-current="true"],
.chip[aria-current="page"] {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: transparent;
}

.page-title {
  display: flex;
  margin-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.page-title h1 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: clamp(25px, 5vw, 34px);
}

.page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-title .eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.active-filters {
  display: flex;
  margin: -3px 0 18px;
  gap: 7px;
  flex-wrap: wrap;
}

.active-filters span {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 10px;
  align-items: center;
  color: var(--text);
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 12px;
}

.merchant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.featured-list {
  margin-bottom: 24px;
}

.discovery-marquee {
  --marquee-gap: 12px;
  position: relative;
  margin-top: 34px;
  padding: clamp(16px, 2.4vw, 24px) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 25rem),
    linear-gradient(120deg, color-mix(in srgb, var(--glass-highlight) 72%, transparent), transparent),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.marquee-lane {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-lane + .marquee-lane {
  margin-top: 12px;
}

.marquee-track,
.marquee-set {
  display: flex;
  width: max-content;
  align-items: center;
}

.marquee-track {
  will-change: transform;
  animation: discovery-marquee-scroll 36s linear infinite;
}

.marquee-lane.is-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 31s;
}

.marquee-set {
  flex: 0 0 auto;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
}

.marquee-item {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--glass-strong) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) 82%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 22px rgba(15, 63, 55, 0.06);
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
  opacity: 0.7;
  filter: grayscale(1);
  white-space: nowrap;
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    filter var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.marquee-item.city {
  min-width: 176px;
  font-size: clamp(15px, 1.9vw, 17px);
}

.marquee-brand {
  min-width: 190px;
  color: var(--accent);
  opacity: 0.92;
  filter: none;
}

.marquee-brand img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--glass-border));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.14);
}

.marquee-brand strong {
  font: inherit;
}

.marquee-item:hover,
.marquee-item:focus-visible {
  color: var(--accent);
  background: var(--glass-hover);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--glass-border));
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

.discovery-marquee:hover .marquee-track,
.discovery-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes discovery-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.merchant-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.merchant-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-md);
  transform: translateY(-3px);
}

.merchant-card > a:first-child,
.merchant-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
}

.merchant-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-muted);
  transition: transform 420ms var(--ease);
}

.merchant-card:hover .merchant-img {
  transform: scale(1.025);
}

.merchant-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--accent) 12%, transparent), transparent 48%),
    var(--surface-muted);
  font-size: 38px;
}

.merchant-city {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  overflow: hidden;
  color: var(--text-strong);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.merchant-body {
  display: flex;
  min-width: 0;
  padding: 16px;
  flex: 1 1 auto;
  flex-direction: column;
}

.merchant-body h2,
.merchant-body h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.3;
}

.merchant-body h2 a,
.merchant-body h3 a {
  color: inherit;
}

.merchant-category {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.desc {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.merchant-body .desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-link {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  font-size: 13px;
}

.btns,
.detail-btns,
.detail-cta {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-width: 96px;
  min-height: 42px;
  padding: 9px 13px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  background: #0f766e;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(15, 118, 110, 0.18);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease), filter var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.btn.detail {
  color: #ffffff;
  background: #1e3a5f;
}

.btn.wa {
  color: #ffffff;
  background: #08763c;
}

.btn.tg {
  color: #ffffff;
  background: #0876a6;
}

.btn.map {
  color: #ffffff;
  background: #875000;
}

.btn.custom,
.btn.cta,
.detail-cta .btn {
  color: #ffffff;
  background: #5b32a3;
}

.btn.ghost {
  color: var(--text-strong);
  background: var(--glass-soft);
  border-color: var(--glass-border);
  box-shadow: none;
}

.detail-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.app-detail {
  position: relative;
}

.fixed-style,
.detail-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  padding: 12px 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@supports selector(.app-detail:has(.detail-cover)) {
  .app-detail:has(.detail-cover) .fixed-style,
  .app-detail:has(.detail-cover) .detail-topbar,
  .detail-card:has(> .detail-cover) > .detail-topbar {
    position: absolute;
    inset: 12px 12px auto;
    padding: 0;
  }
}

.back-btn,
.home-btn {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 750;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.home-btn {
  color: #ffffff;
  background: rgba(8, 118, 94, 0.9);
  border-color: rgba(167, 243, 208, 0.28);
}

.detail-cover {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-muted);
}

.detail-cover-placeholder {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  color: color-mix(in srgb, var(--accent) 64%, var(--muted));
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--accent) 14%, transparent), transparent 48%),
    var(--surface-muted);
  font-size: 54px;
}

.detail-body {
  padding: clamp(18px, 4vw, 27px);
}

.detail-body h1 {
  margin: 0 0 9px;
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  margin-top: 11px;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-meta span {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 10px;
  align-items: center;
  color: var(--muted);
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.views {
  display: inline-flex;
  min-height: 30px;
  margin: 10px 0 4px;
  padding: 5px 11px;
  align-items: center;
  color: var(--muted);
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.detail-btns {
  margin: 4px 0 18px;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 20px 0;
  gap: 9px;
}

.detail-actions .btn {
  width: 100%;
}

.detail-btns .btn {
  flex: 1 1 150px;
}

.detail-desc {
  margin: 14px 0;
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.detail-section {
  margin-top: 28px;
  padding-top: 2px;
  border-top: 1px solid var(--divider);
}

.detail-section .section-heading {
  margin-top: 18px;
}

.info-box {
  padding: 15px;
  margin: 18px 0;
  overflow-wrap: anywhere;
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.info-box p {
  margin: 8px 0;
  line-height: 1.7;
}

.info-box > div {
  display: grid;
  padding: 10px 0;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--divider);
}

.info-box > div:last-child {
  border-bottom: 0;
}

.info-box dt,
.info-box dd {
  margin: 0;
}

.info-box dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.info-box dd {
  overflow-wrap: anywhere;
  color: var(--text-strong);
  line-height: 1.55;
}

.info-box dd a {
  color: var(--accent);
}

.menu-images,
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.menu-images img,
.image-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.menu-images a,
.image-gallery a {
  display: block;
  border-radius: var(--radius-md);
}

.back-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 750;
}

.empty {
  padding: 38px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty h2 {
  margin-top: 0;
  color: var(--text-strong);
}

.empty p {
  color: var(--muted);
}

.empty .btn {
  margin-top: 8px;
  flex: 0 1 auto;
}

.web-empty {
  min-height: 300px;
}

.web-empty > span:first-child {
  color: var(--accent);
  font-size: 42px;
}

.web-empty .btn {
  margin-top: 8px;
  flex: 0 1 auto;
}

.pagination,
.pager {
  display: flex;
  margin: 24px 0 6px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pagination a,
.pagination button,
.pager a,
.pager button {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  padding: 7px 10px;
  place-items: center;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.pagination a:hover,
.pager a:hover {
  background: var(--glass-hover);
}

.pagination .active,
.pagination [aria-current="page"],
.pager .active,
.pager [aria-current="page"] {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: transparent;
}

.footer {
  display: flex;
  padding: 24px 14px max(34px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-mark {
  font-size: 18px;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--backdrop);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.drawer-mask.show,
.drawer-mask.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1002;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) 18px;
  overflow-y: auto;
  flex-direction: column;
  color: var(--text);
  background: var(--glass-strong);
  border-left: 1px solid var(--glass-border);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.26);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(105%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  transition: transform var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.drawer-menu.show,
.drawer-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  min-height: 48px;
  margin-bottom: 14px;
  padding-bottom: 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-strong);
  border-bottom: 1px solid var(--divider);
}

.drawer-brand {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-head button,
.drawer-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--text);
  background: var(--glass-soft);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.drawer-menu > a,
.drawer-menu nav a {
  position: relative;
  display: flex;
  min-height: 48px;
  padding: 11px 12px;
  align-items: center;
  gap: 9px;
  color: var(--text-strong);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.drawer-menu > a:hover,
.drawer-menu nav a:hover,
.drawer-menu a[aria-current="page"] {
  background: var(--glass-soft);
  border-color: var(--glass-border);
  transform: translateX(-2px);
}

.drawer-menu .preferences {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--divider);
}

.drawer-menu .language-control,
.drawer-menu .language-select,
.drawer-menu .theme-toggle {
  width: 100%;
  max-width: none;
}

.drawer-preferences {
  margin-top: auto;
}

@media (max-width: 767px) {
  .site-header {
    padding-inline: 14px;
    border-radius: 0 0 22px 22px;
  }

  .container {
    padding: 17px 14px 28px;
  }

  .topbar .preferences {
    display: none;
  }

  .logo {
    max-width: calc(100% - 60px);
  }

  .grid,
  .chip-grid {
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  }

  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.55fr);
    gap: 14px;
  }

  .hero-art {
    min-height: 210px;
  }

  .hero-art .orb-one {
    width: 170px;
    height: 170px;
  }

  .hero-pin {
    width: 90px;
    height: 90px;
  }

  .hero-float span {
    display: none;
  }

  .app-download-section {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 18px;
  }

  .app-install-grid {
    grid-template-columns: 1fr;
  }

  .app-phone-art {
    min-height: 260px;
  }

  .app-phone-screen {
    min-height: 235px;
  }

  .merchant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .merchant-body {
    padding: 13px;
  }

  .merchant-body h2,
  .merchant-body h3 {
    font-size: 16px;
  }

  .merchant-body .desc {
    -webkit-line-clamp: 3;
  }

  .detail-cover {
    max-height: 320px;
  }

  .detail-body {
    padding: 17px;
  }

  .back-btn,
  .home-btn {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .search {
    gap: 5px;
  }

  .search button {
    min-width: 66px;
    padding-inline: 12px;
  }

  .merchant-list {
    grid-template-columns: 1fr;
  }

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

  .hero-art {
    display: none;
  }

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

  .app-phone-art {
    min-height: 230px;
  }

  .app-phone {
    width: 165px;
  }

  .app-phone-screen {
    min-height: 205px;
  }

  .feature-carousel.is-ready .feature-carousel-viewport {
    border-radius: var(--radius-lg);
  }

  .feature-carousel.is-ready .feature-carousel-controls {
    margin-top: 10px;
  }

  .page-title,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading .text-link,
  .page-title .back-home {
    align-self: flex-start;
  }

  .merchant-img {
    aspect-ratio: 16 / 9;
  }

  .detail-btns .btn,
  .detail-cta .btn {
    flex-basis: 100%;
  }

  .menu-images,
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .info-box > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .discovery-marquee {
    --marquee-gap: 9px;
    margin-top: 26px;
    padding-block: 13px;
    border-radius: var(--radius-md);
  }

  .marquee-lane + .marquee-lane {
    margin-top: 9px;
  }

  .marquee-item {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .marquee-item.city {
    min-width: 122px;
    font-size: 14px;
  }

  .marquee-brand {
    min-width: 166px;
  }

  .marquee-brand img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-carousel.is-ready .feature-carousel-viewport,
  .feature-carousel.is-ready .feature-carousel-track {
    transition: none;
  }

  .marquee-lane {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }

  .marquee-track {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .marquee-set[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 10px;
  }

  .container {
    padding-inline: 10px;
  }

  .grid,
  .chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .chip {
    min-height: 46px;
    padding-inline: 7px;
    font-size: 14px;
  }

  .detail-card,
  .hero,
  .empty {
    border-radius: var(--radius-md);
  }
}

/* Standalone welcome gateway */
.welcome-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.welcome-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 2.8vw, 36px);
  position: relative;
  isolation: isolate;
}

.welcome-shell::before,
.welcome-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.welcome-shell::before {
  top: -18%;
  right: -10%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%);
}

.welcome-shell::after {
  bottom: -26%;
  left: -12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-hover) 22%, transparent), transparent 70%);
}

.welcome-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
  backdrop-filter: blur(var(--blur)) saturate(var(--saturate));
}

.welcome-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.welcome-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #06201d;
  background: linear-gradient(145deg, var(--accent-hover), var(--accent));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.welcome-brand strong,
.welcome-brand small {
  display: block;
}

.welcome-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.welcome-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.welcome-stage {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vh, 60px) 0;
  display: grid;
  align-items: center;
}

.welcome-card {
  min-height: min(680px, calc(100vh - 190px));
  padding: clamp(26px, 5.5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--glass-strong) 94%, transparent), var(--glass)),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: clamp(26px, 4vw, 46px);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-lg);
  -webkit-backdrop-filter: blur(calc(var(--blur) + 6px)) saturate(var(--saturate));
  backdrop-filter: blur(calc(var(--blur) + 6px)) saturate(var(--saturate));
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 34%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
}

.welcome-copy,
.welcome-visual {
  position: relative;
  z-index: 1;
}

.welcome-kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, var(--glass-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--glass-border));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.welcome-copy > p:not(.welcome-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
}

.welcome-copy .welcome-lead {
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.65;
}

.welcome-tagline {
  margin-top: 24px;
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.55vw, 21px);
  letter-spacing: -0.01em;
}

.welcome-enter {
  width: fit-content;
  min-height: 56px;
  margin-top: 30px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #06201d;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  border: 1px solid color-mix(in srgb, var(--accent) 70%, white);
  border-radius: 18px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 26%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.welcome-enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px color-mix(in srgb, var(--accent) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.welcome-enter:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.welcome-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.welcome-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--glass-border));
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--accent) 8%, transparent);
}

.orbit-one {
  width: min(33vw, 390px);
  aspect-ratio: 1;
}

.orbit-two {
  width: min(25vw, 286px);
  aspect-ratio: 1;
  border-style: dashed;
  transform: rotate(20deg);
}

.welcome-emblem {
  width: clamp(176px, 18vw, 236px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50% 50% 50% 14%;
  transform: rotate(-12deg);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-hover) 88%, white), var(--accent));
  border: 10px solid color-mix(in srgb, var(--glass-strong) 75%, transparent);
  box-shadow: 0 34px 80px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 2px 0 rgba(255, 255, 255, 0.66);
}

.welcome-emblem span,
.welcome-emblem strong {
  transform: rotate(12deg);
}

.welcome-emblem span {
  font-size: clamp(62px, 7vw, 96px);
}

.welcome-emblem strong {
  position: absolute;
  bottom: 36px;
  color: #06201d;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.welcome-spark {
  position: absolute;
  color: var(--accent);
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 65%, transparent);
}

.spark-one { top: 12%; right: 12%; font-size: 30px; }
.spark-two { bottom: 14%; left: 8%; font-size: 22px; }
.spark-three { top: 22%; left: 14%; font-size: 42px; }

.welcome-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .welcome-shell {
    padding: 14px;
  }

  .welcome-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .welcome-visual {
    min-height: 300px;
  }

  .orbit-one { width: min(72vw, 360px); }
  .orbit-two { width: min(54vw, 270px); }
}

@media (max-width: 560px) {
  .welcome-topbar {
    min-height: 62px;
    padding: 9px;
  }

  .welcome-brand {
    gap: 8px;
  }

  .welcome-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .welcome-brand small,
  .welcome-topbar .theme-label {
    display: none;
  }

  .welcome-brand strong {
    font-size: 15px;
  }

  .welcome-topbar .preferences {
    gap: 6px;
  }

  .welcome-topbar .language-control,
  .welcome-topbar .theme-toggle {
    min-height: 42px;
  }

  .welcome-topbar .language-select {
    max-width: 118px;
  }

  .welcome-stage {
    padding: 16px 0 24px;
  }

  .welcome-card {
    padding: 26px 20px;
    gap: 18px;
    border-radius: 28px;
  }

  .welcome-copy h1 {
    font-size: clamp(36px, 11.5vw, 52px);
  }

  .welcome-copy > p:not(.welcome-kicker) {
    line-height: 1.75;
  }

  .welcome-enter {
    width: 100%;
  }

  .welcome-visual {
    min-height: 230px;
  }

  .welcome-emblem {
    width: 160px;
  }

  .welcome-emblem span {
    font-size: 60px;
  }

  .welcome-emblem strong {
    bottom: 24px;
  }

  .welcome-footer {
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-enter {
    transition: none;
  }
}
