/*
 * THaiva landing redesign — 2026-07-21
 * Layered after the legacy stylesheet to preserve content contracts while
 * replacing the visual system and hardening responsive behaviour.
 */

:root {
  --bg: #070b12;
  --bg-elevated: rgba(13, 18, 29, 0.88);
  --bg-elevated-2: rgba(17, 23, 37, 0.94);
  --bg-soft: rgba(20, 27, 42, 0.72);
  --bg-card: rgba(17, 23, 37, 0.76);
  --bg-card-strong: rgba(19, 25, 40, 0.96);
  --bg-overlay: rgba(4, 7, 13, 0.82);

  --text: #e8ecf6;
  --text-strong: #fbfcff;
  --text-muted: #a8b0c1;
  --text-soft: #7f899d;

  --line: rgba(177, 188, 213, 0.13);
  --line-strong: rgba(184, 196, 224, 0.22);
  --line-accent: rgba(135, 111, 255, 0.5);

  --primary: #8a71ff;
  --primary-strong: #a58fff;
  --primary-soft: rgba(138, 113, 255, 0.14);
  --primary-deep: #563cf0;

  --accent-pink: #ed74de;
  --accent-cyan: #59d9ef;
  --accent-gold: #f2c05e;
  --accent-red: #ff7285;
  --accent-green: #41d6a3;

  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 38px 120px rgba(0, 0, 0, 0.46);
  --shadow-glow: 0 0 80px rgba(116, 88, 255, 0.18);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --radius-2xl: 44px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-height: 84px;
  --section-space: clamp(5rem, 9vw, 9rem);
}

html {
  background: var(--bg);
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 14% -8%, rgba(111, 82, 255, 0.24), transparent 31rem),
    radial-gradient(circle at 92% 18%, rgba(65, 214, 163, 0.08), transparent 24rem),
    linear-gradient(180deg, #070a11 0%, #090e18 42%, #070b12 100%);
  color: var(--text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 88%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

* {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-shell {
  overflow: visible;
}

.site-bg {
  z-index: -4;
  overflow: hidden;
}

.site-bg__gradient {
  filter: blur(100px);
  opacity: 0.6;
}

.site-bg__gradient--one {
  top: -24rem;
  left: -18rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(circle, rgba(117, 83, 255, 0.4), transparent 68%);
}

.site-bg__gradient--two {
  right: -22rem;
  bottom: 8%;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle, rgba(237, 116, 222, 0.2), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  border: 0;
  background: transparent;
  transition: padding 220ms ease, background 220ms ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.86), rgba(7, 11, 18, 0.54));
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  opacity: 0;
  transition: opacity 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled::before,
body.menu-open .site-header::before,
.guides-site-header::before,
.legal-shell .site-header::before {
  opacity: 1;
  border-bottom-color: var(--line);
}

.site-header__inner {
  min-height: 60px;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(12, 16, 27, 0.66);
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.brand {
  gap: 0.72rem;
  flex: 0 0 auto;
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(98, 74, 255, 0.3);
}

.brand__text {
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 790;
  letter-spacing: -0.025em;
}

.site-nav__list {
  gap: 0.15rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.site-nav__link {
  padding: 0.62rem 0.74rem;
  border-radius: 999px;
  color: #b3bbca;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.site-header__actions {
  gap: 0.55rem;
}

.lang-switcher__toggle,
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.lang-switcher__toggle {
  padding: 0.55rem 0.75rem;
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 760;
}

.lang-switcher__menu {
  top: calc(100% + 0.6rem);
  min-width: 88px;
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 18, 29, 0.97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.lang-option {
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  font-weight: 700;
}

.lang-option:hover,
.lang-option.is-active {
  color: #fff;
  background: var(--primary-soft);
}

.button {
  min-height: 46px;
  padding: 0.75rem 1.12rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    box-shadow 180ms ease, color 180ms ease;
}

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

.button--primary {
  border: 1px solid rgba(192, 180, 255, 0.5);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(135deg, #8b70ff 0%, #694df1 100%);
  box-shadow: 0 12px 36px rgba(91, 61, 232, 0.32), inset 0 1px rgba(255, 255, 255, 0.18);
}

.button--primary:hover {
  box-shadow: 0 18px 48px rgba(91, 61, 232, 0.44), inset 0 1px rgba(255, 255, 255, 0.22);
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.button--secondary:hover {
  border-color: rgba(165, 143, 255, 0.45);
  background: rgba(138, 113, 255, 0.1);
}

.button--header {
  min-height: 44px;
  padding-inline: 1rem;
  border-radius: 13px;
}

.menu-toggle {
  border-radius: 13px;
}

.mobile-menu {
  top: calc(100% - 0.25rem);
  padding: 0 0 0.75rem;
  border: 0;
  background: transparent;
}

.mobile-menu__inner {
  max-height: calc(100dvh - var(--header-height) - 1.5rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(10, 14, 24, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
}

.mobile-menu__link {
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
}

.mobile-menu__link:hover {
  background: var(--primary-soft);
  color: #fff;
}

/* Shared section system */
.landing-page main {
  position: relative;
}

.landing-page .section {
  position: relative;
  padding: var(--section-space) 0;
  overflow: clip;
}

.landing-page .section:not(.section--hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2rem), var(--container));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(173, 182, 207, 0.16), transparent);
}

.section-heading {
  max-width: 790px;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #b8a9ff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  box-shadow: 0 0 12px rgba(89, 217, 239, 0.45);
}

.section-title,
.hero__title {
  max-width: 100%;
  color: var(--text-strong);
  text-wrap: balance;
  overflow: visible;
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-title--large {
  font-size: clamp(2rem, 4.8vw, 4.25rem);
}

.section-description {
  max-width: 710px;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.76;
}

/* Hero */
.landing-page .section--hero {
  min-height: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: visible;
}

.section--hero::before {
  content: '';
  position: absolute;
  top: -18rem;
  left: 50%;
  width: min(92rem, 140vw);
  height: 70rem;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 30%, rgba(120, 88, 255, 0.2), transparent 32%),
    radial-gradient(circle at 28% 18%, rgba(89, 217, 239, 0.07), transparent 24%);
}

.section--hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 72%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(132, 103, 255, 0.05), transparent 82%);
  mask-image: linear-gradient(#000, transparent);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.hero__content {
  max-width: 680px;
}

.hero__title {
  font-size: clamp(2.75rem, 8.7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.072em;
  text-shadow: 0 18px 70px rgba(116, 88, 255, 0.14);
}

html[lang='th'] .hero__title {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero__description {
  max-width: 660px;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  line-height: 1.76;
}

.hero__actions {
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero__actions .button {
  min-height: 50px;
  padding-inline: 1.3rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.chip,
.pill,
.store-badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #c3cad8;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.chip--soft {
  padding: 0.47rem 0.72rem;
  color: #bbc2d1;
  font-size: 0.72rem;
  font-weight: 650;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 760px;
  justify-self: center;
}

.hero-showcase {
  position: relative;
  isolation: isolate;
  padding: clamp(0.25rem, 2vw, 1rem);
}

.hero-showcase::before {
  content: '';
  position: absolute;
  inset: 6% 1% -8% 10%;
  z-index: -2;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(89, 217, 239, 0.06));
  filter: blur(42px);
}

.hero-showcase::after {
  content: '';
  position: absolute;
  inset: -4% -2% 4% 5%;
  z-index: -1;
  border: 1px solid rgba(157, 139, 255, 0.12);
  border-radius: 36px;
  transform: rotate(2deg);
}

.hero-showcase__frame {
  position: relative;
  padding: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(181, 170, 255, 0.3);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    rgba(9, 13, 22, 0.9);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transform-origin: center left;
}

.hero-showcase__frame::before {
  content: '';
  display: block;
  height: 28px;
  margin: -0.1rem -0.1rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(circle at 18px 50%, #ff7884 0 3px, transparent 3.5px),
    radial-gradient(circle at 32px 50%, #f4c35d 0 3px, transparent 3.5px),
    radial-gradient(circle at 46px 50%, #47d7a6 0 3px, transparent 3.5px);
}

.hero-showcase__glow {
  inset: 10% 10%;
  background: radial-gradient(circle, rgba(120, 88, 255, 0.2), transparent 68%);
}

.hero-slider {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(15px, 2vw, 23px);
  background: #0b101a;
}

.hero-slider__track {
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
}

.hero-slide__image-wrap {
  aspect-ratio: 2.12 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0b101a;
}

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.02);
}

.hero-slider__controls {
  right: 0.85rem;
  bottom: 0.85rem;
  left: auto;
  gap: 0.45rem;
  padding: 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 10, 17, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-slider__control {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.055);
}

.hero-slider__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero-slider__dot.is-active {
  width: 19px;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent-cyan));
}

.hero-showcase__floating-card {
  max-width: 210px;
  padding: 0.75rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(12, 17, 28, 0.88);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.hero-showcase__floating-card--top {
  top: -0.7rem;
  right: -0.4rem;
}

.hero-showcase__floating-card--bottom {
  right: auto;
  bottom: -1rem;
  left: -0.45rem;
}

.hero-showcase__badge {
  color: var(--accent-green);
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-showcase__label {
  margin-top: 0.2rem;
  color: #f6f8ff;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5.2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(138, 113, 255, 0.055), transparent 38%, rgba(89, 217, 239, 0.035)),
    rgba(13, 18, 29, 0.64);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.hero-stat {
  min-height: 126px;
  padding: 1.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-stat:last-child {
  border-bottom: 0;
}

.hero-stat__value {
  color: var(--text-strong);
  font-size: 0.88rem;
  line-height: 1.35;
}

.hero-stat__label {
  margin-top: 0.55rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Why THaiva / agent cards */
.problem-grid {
  display: grid;
  gap: 1rem;
}

.problem-card {
  position: relative;
  min-height: 250px;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 55%),
    rgba(16, 22, 35, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.problem-card::after {
  content: '';
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 103, 255, 0.18), transparent 70%);
  transition: transform 300ms ease;
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(156, 137, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(138, 113, 255, 0.08), transparent 58%),
    rgba(17, 23, 37, 0.88);
}

.problem-card:hover::after {
  transform: scale(1.18);
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2.2rem;
  border: 1px solid rgba(157, 140, 255, 0.28);
  border-radius: 15px;
  color: #b4a3ff;
  background: linear-gradient(145deg, rgba(138, 113, 255, 0.18), rgba(89, 217, 239, 0.035));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(77, 52, 190, 0.16);
}

.problem-card__icon svg {
  width: 22px;
  height: 22px;
}

.problem-card__title {
  position: relative;
  z-index: 1;
  color: var(--text-strong);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.problem-card__text {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* How it works */
.section--how {
  background: linear-gradient(180deg, transparent, rgba(126, 96, 255, 0.035) 50%, transparent);
}

.steps-grid {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.step-card {
  position: relative;
  padding: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(15, 21, 34, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.step-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1.8rem;
  place-items: center;
  border: 1px solid rgba(159, 140, 255, 0.35);
  border-radius: 13px;
  color: #c5b8ff;
  background: rgba(138, 113, 255, 0.11);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.step-card__title {
  color: var(--text-strong);
  font-size: 1.08rem;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.step-card__text {
  margin-top: 0.68rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* Feature showcase */
.features-stack {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.feature-block {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(24px, 4vw, 34px);
  background:
    radial-gradient(circle at 90% 10%, rgba(138, 113, 255, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 50%),
    rgba(14, 20, 32, 0.76);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.04);
}

.feature-block::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 50%, transparent 58%);
  transform: translateX(-110%);
  transition: transform 900ms ease;
}

.feature-block:hover::before {
  transform: translateX(110%);
}

.feature-block__content {
  padding: clamp(0.7rem, 2vw, 1.6rem);
}

.feature-block__title {
  color: var(--text-strong);
  font-size: clamp(1.55rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.feature-block__text {
  margin-top: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.feature-block__bullets {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.feature-block__bullet {
  position: relative;
  padding-left: 1.35rem;
  color: #c4cad7;
  font-size: 0.88rem;
  line-height: 1.55;
}

.feature-block__bullet::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent-cyan));
  box-shadow: 0 0 12px rgba(123, 99, 255, 0.55);
}

.feature-block__media {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #0b1019;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.35);
}

.feature-block__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.feature-block__image {
  width: 100%;
  height: auto;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.005);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature-block:hover .feature-block__image {
  transform: scale(1.035);
}

/* Compliance */
.section--compliance {
  background:
    radial-gradient(circle at 10% 50%, rgba(65, 214, 163, 0.055), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012), transparent);
}

.spotlight {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: clamp(26px, 4vw, 38px);
  background:
    linear-gradient(145deg, rgba(65, 214, 163, 0.055), transparent 45%),
    rgba(14, 20, 32, 0.78);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.045);
}

.spotlight__content {
  padding: clamp(0.4rem, 2vw, 1.2rem);
}

.check-list {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.4rem;
}

.check-list__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.check-list__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #06120e;
  background: var(--accent-green);
  font-weight: 900;
}

.check-list__text {
  color: #c8cfdb;
  font-size: 0.9rem;
  line-height: 1.55;
}

.spotlight__actions {
  margin-top: 1.4rem;
}

.spotlight__visual--stack {
  position: relative;
  min-height: clamp(300px, 47vw, 550px);
}

.device-card {
  position: absolute;
  width: 88%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #0b1019;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.device-card img {
  width: 100%;
  height: auto;
}

.device-card:first-child {
  top: 4%;
  right: 2%;
  z-index: 2;
}

.device-card--secondary {
  bottom: 3%;
  left: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.device-card--tilted {
  top: 20%;
  left: 7%;
  z-index: 1;
  opacity: 0.65;
  transform: rotate(4deg) scale(0.94);
}

/* Documents */
.document-panel {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: clamp(26px, 4vw, 38px);
  background:
    radial-gradient(circle at 80% 20%, rgba(237, 116, 222, 0.1), transparent 30%),
    rgba(14, 20, 32, 0.78);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.045);
}

.document-panel::after {
  content: '';
  position: absolute;
  right: -7rem;
  bottom: -8rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(165, 143, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(165, 143, 255, 0.025), 0 0 0 6rem rgba(165, 143, 255, 0.015);
}

.document-panel__content,
.document-panel__visual {
  position: relative;
  z-index: 1;
}

.document-panel__actions {
  margin-top: 1.5rem;
}

.document-panel__visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: #0b1019;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.document-panel__visual img {
  width: 100%;
}

/* Generic highlight cards */
.spotlight__highlights {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.highlight-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.highlight-card__label {
  color: #c5b8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.highlight-card__text {
  margin-top: 0.42rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

/* Pricing */
.section--pricing {
  background:
    radial-gradient(circle at 50% 30%, rgba(125, 94, 255, 0.07), transparent 32rem),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012), transparent);
}

.pricing-toggle {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.pricing-toggle__option {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 730;
}

.pricing-toggle__option.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 112, 255, 0.95), rgba(101, 75, 234, 0.95));
  box-shadow: 0 10px 28px rgba(83, 55, 211, 0.26);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(15, 21, 34, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.pricing-card--featured {
  border-color: rgba(154, 133, 255, 0.46);
  background:
    radial-gradient(circle at 100% 0, rgba(138, 113, 255, 0.18), transparent 40%),
    linear-gradient(155deg, rgba(138, 113, 255, 0.09), transparent 48%),
    rgba(16, 22, 36, 0.95);
  box-shadow: 0 24px 70px rgba(75, 48, 190, 0.18), inset 0 1px rgba(255, 255, 255, 0.055);
}

.pricing-card__ribbon {
  top: 0.85rem;
  right: -2.8rem;
  width: 9rem;
  padding: 0.35rem;
  color: #f8f6ff;
  background: rgba(138, 113, 255, 0.9);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pricing-card__title-row {
  padding-right: 1.5rem;
}

.pricing-card__name {
  color: var(--text-strong);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.pricing-card__badge {
  border: 1px solid rgba(65, 214, 163, 0.22);
  color: var(--accent-green);
  background: rgba(65, 214, 163, 0.075);
}

.pricing-card__description {
  min-height: 4.8em;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.pricing-card__price-row {
  margin-top: 1.3rem;
  align-items: baseline;
}

.pricing-card__price {
  color: var(--text-strong);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.055em;
}

.pricing-card__period,
.pricing-card__yearly-price {
  color: var(--text-soft);
}

.pricing-card__yearly-price {
  min-height: 3.4em;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.5;
}

.pricing-card__features {
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.pricing-card__feature {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.pricing-card__feature-icon {
  width: 18px;
  height: 18px;
  margin-top: 0.05rem;
  border-radius: 6px;
  background: rgba(65, 214, 163, 0.12);
}

.pricing-card__feature-icon::before {
  border-color: var(--accent-green);
}

.pricing-card__feature-text {
  color: #bcc4d2;
  font-size: 0.79rem;
  line-height: 1.52;
}

.pricing-card__footer {
  margin-top: auto;
  padding-top: 1.3rem;
}

.pricing-note {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 0.83rem;
  text-align: center;
}

/* Mobile product block */
.mobile-apps-panel {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3.3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(circle at 80% 15%, rgba(89, 217, 239, 0.1), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(138, 113, 255, 0.12), transparent 34%),
    rgba(14, 20, 32, 0.8);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.045);
}

.mobile-apps-panel__content {
  position: relative;
  z-index: 2;
}

.mobile-apps-panel__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.store-badge,
.pill {
  padding: 0.5rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.pill--accent {
  border-color: rgba(65, 214, 163, 0.22);
  color: var(--accent-green);
  background: rgba(65, 214, 163, 0.075);
}

.mobile-apps-panel__actions {
  margin-top: 1.5rem;
}

.mobile-apps-panel__visual {
  position: relative;
  min-height: clamp(370px, 70vw, 610px);
}

.phone-mockups {
  position: absolute;
  inset: 0;
  max-width: 520px;
  margin: auto;
}

.phone-mockup {
  position: absolute;
  width: min(49%, 250px);
  overflow: hidden;
  border: 7px solid #171c29;
  border-radius: clamp(26px, 5vw, 39px);
  background: #070a10;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 16px;
  border-radius: 999px;
  background: #07090e;
  transform: translateX(-50%);
}

.phone-mockup img {
  width: 100%;
}

.phone-mockup--back {
  top: 8%;
  left: 8%;
  opacity: 0.72;
  transform: rotate(-7deg) scale(0.92);
}

.phone-mockup--front {
  right: 6%;
  bottom: 0;
  z-index: 2;
  transform: rotate(5deg);
}

/* FAQ */
.faq-list {
  max-width: 940px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-item__summary {
  min-height: 82px;
  padding: 1.25rem 0;
  gap: 1rem;
}

.faq-item__question {
  color: #e9edf6;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.faq-item__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.faq-item[open] .faq-item__icon {
  border-color: rgba(156, 137, 255, 0.38);
  background: rgba(138, 113, 255, 0.1);
}

.faq-item__answer-wrap {
  padding: 0 3.4rem 1.5rem 0;
}

.faq-item__answer {
  max-width: 770px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Final CTA */
.section--app-cta {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.app-cta {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.6rem, 5vw, 4.4rem);
  overflow: hidden;
  border: 1px solid rgba(177, 162, 255, 0.22);
  border-radius: clamp(28px, 5vw, 46px);
  background:
    radial-gradient(circle at 85% 20%, rgba(89, 217, 239, 0.1), transparent 26%),
    radial-gradient(circle at 18% 85%, rgba(138, 113, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(31, 26, 65, 0.74), rgba(13, 19, 31, 0.9));
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.06);
}

.app-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.app-cta__content,
.app-cta__visual {
  position: relative;
  z-index: 1;
}

.app-cta__actions {
  margin-top: 1.5rem;
}

.app-cta__visual {
  min-height: 330px;
}

.app-cta__orbits {
  inset: 0;
}

.app-cta__orbits span {
  border-color: rgba(155, 137, 255, 0.13);
}

.app-cta__card {
  width: min(100%, 390px);
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(10, 14, 24, 0.82);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(18px);
}

.app-cta__card-top {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: #dce1ec;
  font-size: 0.78rem;
  font-weight: 720;
}

.app-cta__status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(65, 214, 163, 0.7);
}

.app-cta__card-body {
  gap: 0.7rem;
  padding-block: 1rem;
}

.app-cta__metric {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.app-cta__metric strong {
  color: #fff;
  font-size: 0.86rem;
}

.app-cta__metric span {
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.73rem;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 15%, rgba(138, 113, 255, 0.08), transparent 24rem),
    rgba(5, 8, 14, 0.78);
}

.site-footer__grid {
  gap: 2.5rem;
}

.site-footer__description {
  max-width: 430px;
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.72;
}

.site-footer__heading {
  color: #f4f6fb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links {
  gap: 0.62rem;
  margin-top: 1rem;
}

.site-footer__links a {
  color: #9da6b7;
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__bottom {
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top-color: var(--line);
}

.site-footer__copyright {
  color: #717b8e;
  font-size: 0.78rem;
}

.chip--ghost {
  padding: 0.42rem 0.6rem;
  color: #8f98aa;
  background: transparent;
}

.chip--ghost.is-active,
.chip--ghost:hover {
  border-color: rgba(155, 137, 255, 0.32);
  color: #fff;
  background: rgba(138, 113, 255, 0.09);
}

/* Cookie consent */
.cookie-banner {
  z-index: 300;
  padding: 0.75rem;
  background: transparent;
}

.cookie-banner__inner {
  width: min(100%, 1160px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(11, 15, 25, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(22px);
}

.cookie-banner__title {
  color: #fff;
  font-size: 0.95rem;
}

.cookie-banner__text {
  color: #aeb6c5;
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-banner__link,
.cookie-dialog__links a {
  color: #b9aaff;
}

.cookie-banner__actions {
  gap: 0.5rem;
}

.cookie-banner__actions .button,
.cookie-dialog__actions .button {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
}

.cookie-settings-button {
  z-index: 280;
  right: 0.8rem;
  bottom: 0.8rem;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(11, 15, 25, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}

.cookie-dialog-backdrop {
  z-index: 400;
  padding: 1rem;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(10px);
}

.cookie-dialog {
  width: min(100%, 720px);
  max-height: min(88dvh, 820px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: #0e1421;
  box-shadow: var(--shadow-lg);
}

.cookie-category {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

/* Legal pages */
.legal-shell {
  background:
    radial-gradient(circle at 20% 0, rgba(111, 82, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #070a11, #090e18 55%, #070b12);
}

.legal-shell .legal-page {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-shell .legal-page__hero {
  max-width: 880px;
  margin-bottom: 2.5rem;
}

.legal-shell .legal-page__title {
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

html[lang='th'] .legal-page__title {
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.legal-shell .legal-card {
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(14, 20, 32, 0.82);
  box-shadow: var(--shadow-md), inset 0 1px rgba(255, 255, 255, 0.04);
}

.legal-shell .legal-card__inner {
  padding: clamp(1.25rem, 4vw, 3.4rem);
}

/* Guides */
.guides-page {
  background:
    radial-gradient(circle at 15% -5%, rgba(111, 82, 255, 0.19), transparent 31rem),
    linear-gradient(180deg, #070a11, #090e18 52%, #070b12);
}

.guides-page .guides-main {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.guides-page .guides-hero,
.guides-page .guide-article {
  max-width: 1040px;
}

.guides-page .guides-hero h1,
.guides-page .guide-article h1 {
  font-size: clamp(2.55rem, 6.6vw, 5.6rem);
  line-height: 1.01;
  letter-spacing: -0.06em;
}

.guides-page .guides-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}

.guides-page .guide-card,
.guides-page .guide-disclaimer,
.guides-page .guide-cta,
.guides-page .guide-related {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 52%),
    rgba(15, 21, 34, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.guides-page .guide-card {
  transition: transform 220ms ease, border-color 220ms ease;
}

.guides-page .guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 137, 255, 0.32);
}

.guides-page .guide-content {
  color: var(--text);
}

/* Progressive enhancement */
.js .reveal {
  transition-duration: 720ms;
  transition-timing-function: cubic-bezier(0.22, 0.72, 0.2, 1);
}

.js .reveal--up {
  transform: translateY(24px);
}

.js .reveal--left {
  transform: translateX(-24px);
}

.js .reveal--right {
  transform: translateX(24px);
}

.js .reveal.is-visible {
  transform: none;
}

/* Responsive layout */
@media (min-width: 640px) {
  .container {
    width: min(calc(100% - 3rem), var(--container));
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

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

  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .hero-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

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

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(160px, 0.65fr));
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: clamp(4.2rem, 8.4vw, 6.7rem);
  }

  .feature-block,
  .spotlight,
  .document-panel,
  .mobile-apps-panel,
  .app-cta {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .feature-block--reverse .feature-block__content {
    order: 2;
  }

  .feature-block--reverse .feature-block__media {
    order: 1;
  }

  .feature-block__media {
    min-height: 330px;
  }

  .feature-block__image {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .document-panel {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

  .mobile-apps-panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(350px, 0.75fr);
  }

  .app-cta {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  }

  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-left: 0.75rem;
  }

  .site-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  }

  .hero__content {
    padding-top: 0.6rem;
  }

  .hero__visual {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(4rem, 6.25vw, 6rem);
  }

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

  .hero-stat,
  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero-stat:last-child {
    border-right: 0;
  }

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

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

  .steps-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    right: 8%;
    left: 8%;
    height: 1px;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(155, 137, 255, 0.34), transparent);
  }

  .step-card {
    z-index: 1;
  }

  .feature-block {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    min-height: 470px;
  }

  .feature-block--reverse {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  }

  .feature-block__media {
    height: 100%;
    min-height: 420px;
  }

  .spotlight {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    min-height: 580px;
  }

  .document-panel {
    min-height: 520px;
  }

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

  .pricing-card {
    padding: 1.25rem;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(170px, 0.55fr));
  }
}

@media (min-width: 1280px) {
  .site-nav__link {
    padding-inline: 0.88rem;
    font-size: 0.8rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .hero-showcase__frame {
    margin-right: -2.5rem;
  }

  .pricing-card {
    padding: 1.45rem;
  }
}

@media (max-width: 1023.98px) {
  .site-nav {
    display: none;
  }

  .button--header {
    display: none;
  }

  .guides-site-header .site-header__actions .button--header {
    display: none;
  }

  .hero-showcase__frame {
    transform: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 76px;
    --section-space: clamp(4rem, 17vw, 6rem);
  }

  .site-header {
    padding: 0.55rem 0;
  }

  .site-header__inner {
    min-height: 56px;
    border-radius: 18px;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  .brand__text {
    font-size: 1rem;
  }

  .lang-switcher__toggle,
  .menu-toggle {
    min-width: 42px;
    min-height: 42px;
  }

  .landing-page .section--hero {
    padding-top: 2.8rem;
  }

  .hero__grid {
    gap: 2.8rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 13.5vw, 4.6rem);
    line-height: 1.01;
    letter-spacing: -0.062em;
  }

  .hero__description {
    margin-top: 1.25rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__chips {
    gap: 0.45rem;
  }

  .hero-showcase {
    padding: 0;
  }

  .hero-showcase::after {
    inset: -3% 2% 2%;
  }

  .hero-showcase__floating-card {
    max-width: min(47%, 175px);
    padding: 0.62rem 0.68rem;
  }

  .hero-showcase__floating-card--top {
    top: -1rem;
    right: 0.25rem;
  }

  .hero-showcase__floating-card--bottom {
    bottom: -1.15rem;
    left: 0.2rem;
  }

  .hero-showcase__label {
    font-size: 0.65rem;
  }

  .hero-slider__controls {
    right: 0.45rem;
    bottom: 0.45rem;
  }

  .hero__stats {
    margin-top: 3.6rem;
  }

  .problem-card {
    min-height: auto;
  }

  .problem-card__icon {
    margin-bottom: 1.5rem;
  }

  .feature-block__content {
    padding: 0.35rem;
  }

  .feature-block__media,
  .document-panel__visual {
    order: -1;
  }

  .feature-block__media {
    aspect-ratio: 1.7 / 1;
  }

  .feature-block__image {
    height: 100%;
  }

  .spotlight__visual--stack {
    min-height: clamp(300px, 88vw, 430px);
  }

  .device-card {
    width: 93%;
  }

  .mobile-apps-panel__visual {
    min-height: clamp(390px, 118vw, 520px);
  }

  .phone-mockups {
    max-width: 410px;
  }

  .phone-mockup {
    width: min(52%, 220px);
  }

  .app-cta__visual {
    min-height: 290px;
  }

  .app-cta__card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: auto;
  }

  .faq-item__answer-wrap {
    padding-right: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
  }

  .cookie-banner__inner {
    max-height: min(76dvh, 680px);
    overflow-y: auto;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }

  .cookie-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .site-header__inner {
    padding-left: 0.55rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .site-header__actions {
    gap: 0.35rem;
  }

  .lang-switcher__toggle {
    padding-inline: 0.58rem;
  }

  .hero__title {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  html[lang='th'] .hero__title {
    font-size: clamp(2.3rem, 12vw, 3.35rem);
  }

  .section-title {
    font-size: clamp(1.9rem, 10.5vw, 3rem);
  }

  html[lang='th'] .section-title {
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

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

  .hero-stat,
  .hero-stat:nth-child(odd),
  .hero-stat:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .problem-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase__floating-card {
    display: none;
  }

  .hero-showcase__frame {
    padding: 0.35rem;
    border-radius: 20px;
  }

  .hero-showcase__frame::before {
    height: 22px;
    margin-bottom: 0.35rem;
  }

  .hero-slider {
    border-radius: 13px;
  }

  .hero-slider__control {
    display: none;
  }

  .feature-block,
  .spotlight,
  .document-panel,
  .mobile-apps-panel,
  .app-cta {
    border-radius: 24px;
  }

  .pricing-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .pricing-toggle__option {
    white-space: normal;
  }

  .mobile-apps-panel__visual {
    min-height: 370px;
  }

  .phone-mockup {
    border-width: 5px;
  }

  .faq-item__summary {
    min-height: 72px;
  }

  .faq-item__icon {
    width: 30px;
    height: 30px;
  }

  .cookie-settings-button span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-showcase__frame,
  .phone-mockup,
  .device-card {
    transform: none !important;
  }
}

/* Final interaction and viewport hardening */
.brand {
  min-height: 44px;
}

.hero-slider__control {
  width: 40px;
  height: 40px;
}

.hero-slider__dots {
  gap: 0;
}

.hero-slider__dot,
.hero-slider__dot.is-active {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-slider__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-slider__dot.is-active::before {
  width: 18px;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent-cyan));
  box-shadow: 0 0 12px rgba(111, 96, 255, 0.4);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-block: 0.22rem;
}

.site-footer .brand--footer {
  min-height: 44px;
}

@media (min-width: 1280px) {
  .hero-showcase__frame {
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  .hero-slider__controls {
    gap: 0;
  }
}

@media (max-width: 479.98px) {
  .hero-slider__dot,
  .hero-slider__dot.is-active {
    width: 28px;
    height: 28px;
  }
}

/* Final pricing and progressive-enhancement hardening */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2rem;
  min-width: 0;
}

.pricing-card__header,
.pricing-card__features,
.pricing-card__footer {
  min-width: 0;
}

.pricing-card__title-row {
  flex-wrap: wrap;
  padding-right: 2.5rem;
}

.pricing-card--coming-soon .pricing-card__badge {
  display: none;
}

.pricing-card[data-pricing-view='business'] {
  grid-column: 1 / -1;
  width: min(100%, 34rem);
  justify-self: center;
}

@media (min-width: 768px) and (max-width: 1179.98px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .pricing-card {
    padding: 1.2rem;
  }

  .pricing-card__description,
  .pricing-card__yearly-price {
    min-height: 0;
  }

  .pricing-card__price {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }

  .pricing-card__footer .button {
    width: 100%;
  }
}

/* Cross-browser clipping and compact-screen hero hardening */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.hero-slider__dot,
.hero-slider__dot.is-active {
  width: 40px;
  height: 40px;
}

.site-footer__links a {
  min-height: 36px;
}

@media (max-width: 1399.98px) {
  .hero-showcase__frame {
    transform: none;
  }

  .hero-showcase__floating-card--top {
    right: 0.55rem;
  }

  .hero-showcase__floating-card--bottom {
    left: 0.55rem;
  }
}

@media (max-width: 479.98px) {
  .hero-slider__dot,
  .hero-slider__dot.is-active {
    width: 38px;
    height: 38px;
  }
}
