/* Base */
:root {
  color-scheme: light;
  --heading-color: #172126;
  --subtitle-color: #4b5563;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: #fff;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: Inter, 'Noto Sans Thai', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* Decorative background */
.background {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Move soft color washes above the glass so the blur cannot hide their motion. */
.background::after {
  position: absolute;
  inset: -40%;
  content: '';
  background:
    linear-gradient(
      100deg,
      transparent 18%,
      rgb(255 255 255 / 94%) 42%,
      #fff 50%,
      rgb(255 255 255 / 94%) 58%,
      transparent 82%
    ),
    radial-gradient(ellipse at 24% 35%, rgb(115 174 255 / 30%), transparent 44%),
    radial-gradient(ellipse at 76% 60%, rgb(77 218 191 / 28%), transparent 44%);
  animation: color-flow 14s ease-in-out -3.5s infinite;
}

@keyframes color-flow {
  0%,
  100% {
    transform: translate3d(-12%, -8%, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(12%, 8%, 0) rotate(8deg);
  }
}

.background-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 1024px;
  transform: translate(-50%, -50%);
}

/* Preserve the exported SVG's intrinsic dimensions and Figma placement. */
.background-solids {
  position: absolute;
  top: 41px;
  left: -311px;
  display: block;
  animation: background-drift 18s ease-in-out -4.5s infinite;
}

@keyframes background-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  35% {
    transform: translate3d(220px, -110px, 0) scale(1.1);
  }

  70% {
    transform: translate3d(-160px, 80px, 0) scale(1.06);
  }
}

.background-glass {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(250px);
  backdrop-filter: blur(250px);
}

/* Content layout */
main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

.intro {
  display: flex;
  width: 100%;
  max-width: 532px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  transform: translateY(-11.084vh);
  transform: translateY(clamp(-113.5px, -11.084svh, -32px));
}

/* Original Figma logo crops */
.brand {
  display: flex;
  height: 40px;
  flex: none;
  align-items: center;
  gap: 2px;
}

.brand-symbol,
.brand-wordmark {
  position: relative;
  display: block;
  height: 40px;
  overflow: hidden;
}

.brand-symbol {
  width: 50px;
}

.brand-wordmark {
  width: 115px;
}

.brand img {
  position: absolute;
  display: block;
  max-width: none;
}

.brand-symbol img {
  top: -77.02%;
  left: -12.74%;
  width: 254.93%;
  height: 236.69%;
}

.brand-wordmark img {
  top: -176.59%;
  left: -83.48%;
  width: 189.87%;
  height: 409.06%;
}

/* Typography */
h1 {
  width: max-content;
  margin: 0;
  color: var(--heading-color);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(2rem, 6.1112vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.0341em;
  line-height: 1.21591;
  white-space: nowrap;
}

p {
  margin: 0;
  color: var(--subtitle-color);
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: clamp(1rem, 1.3889vw, 1.25rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

/* Browser fallback, responsive layout, and motion preferences */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .background-art {
    filter: blur(250px);
  }
}

@media (max-width: 600px) {
  .intro {
    gap: 20px;
  }
}

@media (max-height: 400px) {
  .intro {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background::after {
    display: none;
    animation: none;
  }

  .background-solids {
    animation: none;
  }
}
