:root {
  color-scheme: light dark;

  --bg: #f7f8fc;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --border-soft: rgba(15, 23, 42, 0.08);

  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --cyan-500: #06b6d4;
  --violet-500: #8b5cf6;

  --gradient-brand: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 35%, var(--cyan-500) 100%);
  --gradient-hero: radial-gradient(900px 500px at 10% 15%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(6, 182, 212, 0.3), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #0b1020 55%, #0f172a 100%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;

  --container: 1120px;
  --container-wide: 1280px;

  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

html {
  color: var(--text);
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(800px 450px at 10% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(6, 182, 212, 0.10), transparent 60%),
    linear-gradient(180deg, #f7f8fc 0%, #ffffff 55%, #f7f8fc 100%);
}

html[data-ui-lang="th"] body {
  font-family: "Noto Sans Thai", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

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

a:hover {
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 1100;
}

.skip-link:focus {
  transform: translateY(0);
}

/* i18n */
[data-lang] {
  display: none;
}

html[data-ui-lang="en"] [data-lang="en"],
html[data-ui-lang="th"] [data-lang="th"] {
  display: inline;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

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

.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  display: grid;
  place-items: center;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__brand-name {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  line-height: 1.1;
}

.nav__brand-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  color: var(--muted);
  font-weight: 560;
  padding: 10px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn[aria-pressed="true"] {
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--gradient-brand);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.10);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.nav__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav__menu-btn svg {
  width: 22px;
  height: 22px;
}

/* Mobile nav */
.mobile-menu {
  display: none;
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .nav__inner {
    gap: 10px;
  }

  .nav__brand {
    min-width: 0;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__actions .nav__cta {
    display: none;
  }

  .lang-switch__btn {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .nav__menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 12px;
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .mobile-menu__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu__close svg {
    width: 22px;
    height: 22px;
  }

  .mobile-menu__links {
    list-style: none;
    padding: 14px 8px 10px;
    margin: 0;
    display: grid;
    gap: 8px;
  }

  .mobile-menu__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 14px;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.65);
  }

  .mobile-menu__links a:hover {
    background: rgba(255, 255, 255, 0.9);
  }

  .mobile-menu__cta {
    display: grid;
    gap: 10px;
    padding: 12px 8px 8px;
  }

  .nav__actions {
    gap: 8px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 72px;
  color: rgba(255, 255, 255, 0.92);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, 0.06), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='g' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 12 0 L 0 0 0 12' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.hero__subtitle {
  margin: 0;
  max-width: 52ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 14px;
  backdrop-filter: blur(10px);
}

.highlight__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.highlight__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
}

.highlight__icon svg {
  width: 18px;
  height: 18px;
}

.highlight__desc {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero__media {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.hero__media img {
  border-radius: calc(var(--radius-lg) - 8px);
}

/* Section base */
.section {
  padding: 82px 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section__header {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 44px;
}

.section__header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section__header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Cards */
.card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--brand-700);
}

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

.feature-card h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.20);
  box-shadow: inset 0 0 0 4px rgba(16, 185, 129, 0.16);
}

/* Demos */
.demo-stack {
  display: grid;
  gap: 18px;
}

.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo__content {
  order: 0;
}

.demo__media {
  order: 1;
}

.demo:nth-child(even) .demo__media {
  order: 0;
}

.demo:nth-child(even) .demo__content {
  order: 1;
}

.demo__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.demo__content h3 {
  margin: 14px 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.demo__content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.demo__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.demo__media img {
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.demo__media:hover img {
  transform: scale(1.02);
}

.demo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.55));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.demo__media:hover::after {
  opacity: 1;
}

.demo__media .demo__hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.demo__media:hover .demo__hint {
  opacity: 1;
  transform: translateY(0);
}

.demo__hint svg {
  width: 16px;
  height: 16px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card--featured {
  position: relative;
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.18);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  margin: 2px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.pricing-card .list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.pricing-card .btn {
  margin-top: 8px;
}

/* Contact */
.contact-shell {
  padding: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.contact-info h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.contact-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--brand-700);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  color: var(--muted);
}

.contact-details a {
  color: var(--brand-700);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

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

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-weight: 650;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Thank-you */
.thanks {
  padding: calc(var(--nav-h) + 56px) 0 72px;
}

.thanks .section__header {
  margin-bottom: 20px;
}

.thanks__card {
  padding: 28px;
  max-width: 760px;
  margin: 0 auto;
}

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

/* Footer */
.footer {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.55) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

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

.footer__brand-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  display: grid;
  place-items: center;
}

.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__brand h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.footer__tagline {
  margin: 0;
  color: var(--muted);
}

.footer__col h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer__links a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-flex;
}

.footer__links a:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__legal {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
}

.lightbox__panel {
  position: relative;
  width: min(1040px, calc(100vw - 28px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  padding: 12px;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 10px;
}

.lightbox__title {
  margin: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: zoom-in;
  --zoom-x: 50%;
  --zoom-y: 50%;
}

.lightbox__img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.22s ease;
  transform-origin: var(--zoom-x) var(--zoom-y);
}

.lightbox__img-wrap.is-zoomed {
  cursor: zoom-out;
}

.lightbox__img-wrap.is-zoomed .lightbox__img {
  transform: scale(1.4);
}

.lightbox__hint {
  margin: 10px 6px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1060px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .demo__content {
    order: 0;
  }

  .demo__media {
    order: 1;
  }

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

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

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

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

@media (max-width: 620px) {
  :root {
    --nav-h: 72px;
  }

  .nav__brand {
    gap: 10px;
  }

  .nav__logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .nav__brand > span {
    min-width: 0;
  }

  .nav__brand-name {
    font-size: 1rem;
    white-space: nowrap;
  }

  .nav__brand-sub {
    display: none;
  }

  .nav__menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero {
    padding: calc(var(--nav-h) + 44px) 0 60px;
  }

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

@media (max-width: 420px) {
  .nav__actions .lang-switch {
    display: none;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060912;
    --surface: rgba(15, 23, 42, 0.60);
    --surface-solid: #0b1020;
    --text: #e7eefc;
    --muted: rgba(231, 238, 252, 0.72);
    --muted-2: rgba(231, 238, 252, 0.58);
    --border: rgba(231, 238, 252, 0.16);
    --border-soft: rgba(231, 238, 252, 0.10);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.58);
  }

  html {
    background: var(--bg);
  }

  body {
    background:
      radial-gradient(900px 520px at 10% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
      radial-gradient(800px 480px at 90% 10%, rgba(6, 182, 212, 0.16), transparent 60%),
      linear-gradient(180deg, #050711 0%, #0b1020 55%, #050711 100%);
  }

  .skip-link {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
  }

  .nav {
    background: rgba(15, 23, 42, 0.66);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav.is-scrolled {
    background: rgba(15, 23, 42, 0.90);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }

  .nav__brand-sub {
    color: var(--muted);
  }

  .nav__link {
    color: rgba(255, 255, 255, 0.72);
  }

  .nav__link:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
  }

  .lang-switch,
  .nav__menu-btn,
  .mobile-menu__close {
    background: rgba(15, 23, 42, 0.60);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .lang-switch__btn {
    color: rgba(255, 255, 255, 0.72);
  }

  .lang-switch__btn[aria-pressed="true"] {
    background: rgba(96, 165, 250, 0.18);
    color: rgba(191, 219, 254, 0.98);
  }

  .btn-primary {
    border-color: rgba(191, 219, 254, 0.22);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34);
  }

  .btn-primary:hover {
    box-shadow: 0 24px 62px rgba(37, 99, 235, 0.42);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
  }

  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
  }

  .mobile-menu__panel {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .mobile-menu__top {
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }

  .mobile-menu__links a {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }

  .mobile-menu__links a:hover {
    background: rgba(255, 255, 255, 0.10);
  }

  .section--alt {
    background: rgba(2, 6, 23, 0.62);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

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

  .card {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  }

  .feature-card__icon {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.22);
    color: rgba(147, 197, 253, 0.96);
  }

  .list li {
    color: var(--muted);
  }

  .demo__kicker {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
  }

  .demo__media {
    border-color: rgba(255, 255, 255, 0.14);
  }

  .contact-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
  }

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

  .form-group label {
    color: rgba(255, 255, 255, 0.90);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    background: rgba(2, 6, 23, 0.48);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  .footer {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.58) 100%);
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .footer__tagline,
  .footer__col h4 {
    color: rgba(255, 255, 255, 0.70);
  }

  .footer__links a {
    color: rgba(255, 255, 255, 0.72);
  }

  .footer__links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
  }

  .footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.70);
  }

  .footer__legal {
    color: rgba(255, 255, 255, 0.60);
  }
}
