:root {
  --color-surface: #ffffff;
  --color-background: #f6f3ff;
  --color-primary: #7c3aed;
  --color-primary-dark: #5b21b6;
  --color-secondary: #6366f1;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --app-banner-height: 5rem;
  --radius-xl: 2.75rem;
  --radius-lg: 1.75rem;
  --radius-md: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

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

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: 'Inter', 'Noto Sans Thai', 'Noto Sans Myanmar', sans-serif;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 2rem);
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-banner[hidden] {
  display: none;
}

.app-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--app-banner-height);
  padding: 0.7rem max(1rem, env(safe-area-inset-right)) 0.7rem max(1rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(31, 41, 55, 0.12);
  box-shadow: 0 18px 35px -28px rgba(31, 41, 55, 0.65);
  backdrop-filter: blur(14px);
}

.app-banner__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.app-banner__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  object-fit: cover;
  box-shadow: 0 12px 22px -14px rgba(124, 58, 237, 0.85);
}

.app-banner__content {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.app-banner__content strong,
.app-banner__content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-banner__content strong {
  font-size: 0.98rem;
  color: var(--color-text);
}

.app-banner__content span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.app-banner__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-banner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.08);
  color: var(--color-muted);
  cursor: pointer;
}

.app-banner__close:hover {
  color: var(--color-text);
  background: rgba(31, 41, 55, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 20px 45px -35px rgba(124, 58, 237, 0.75);
}

.has-app-banner .site-header {
  top: var(--app-banner-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  object-fit: cover;
  overflow: hidden;
  box-shadow: 0 14px 28px -18px rgba(124, 58, 237, 0.9);
}

.brand-name {
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: 0 24px 40px -25px rgba(124, 58, 237, 0.65);
}

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

.button--ghost {
  background: transparent;
  border-color: rgba(31, 41, 55, 0.18);
  color: var(--color-text);
}

.button--ghost:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-primary);
}

.button--dark {
  background: var(--color-text);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
}

.button--dark:hover {
  background: #0f172a;
  transform: translateY(-3px);
}

.hero {
  position: relative;
  padding: 7rem 0 5rem;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.65;
}

.hero::before {
  top: -18rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(198, 148, 255, 0.45), transparent 65%);
}

.hero::after {
  bottom: -12rem;
  left: -14rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(131, 169, 255, 0.35), transparent 65%);
}

.hero-inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.08;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-community strong {
  color: var(--color-primary);
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
  margin-left: -0.8rem;
  box-shadow: 0 15px 30px -22px rgba(31, 41, 55, 0.8);
}

.avatar-group img:first-child {
  margin-left: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 8px solid rgba(124, 58, 237, 0.15);
  box-shadow: 0 35px 60px -40px rgba(124, 58, 237, 0.65);
  max-width: 22rem;
}

.hero-card img {
  border-radius: calc(var(--radius-xl) - 0.75rem);
}

.features {
  padding: 5rem 0 5.5rem;
  background: #ffffff;
}

.section-heading {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 3.5rem;
  display: grid;
  gap: 1rem;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: grid;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 55px -40px rgba(124, 58, 237, 0.45);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.2rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 18px 30px -22px rgba(124, 58, 237, 0.7);
}

.feature-card__icon--amber {
  background: #f59e0b;
  box-shadow: 0 18px 30px -22px rgba(245, 158, 11, 0.65);
}

.feature-card__icon--indigo {
  background: #4f46e5;
  box-shadow: 0 18px 30px -22px rgba(79, 70, 229, 0.65);
}

.feature-card__icon--rose {
  background: #f43f5e;
  box-shadow: 0 18px 30px -22px rgba(244, 63, 94, 0.6);
}

.feature-card__icon--violet {
  background: #7c3aed;
  box-shadow: 0 18px 30px -22px rgba(124, 58, 237, 0.7);
}

.feature-card__icon--light {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.feature-card h3 {
  font-size: 1.3rem;
}

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

.feature-card--highlight {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.feature-card--highlight .feature-card__icon {
  background: rgba(255, 255, 255, 0.18);
}

.feature-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4b5fd;
  font-weight: 600;
}

.support {
  position: relative;
  padding: 6rem 0;
  background: var(--color-background);
  overflow: hidden;
}

.support::before,
.support::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.support::before {
  top: -12rem;
  right: -16rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(198, 148, 255, 0.45), transparent 70%);
  filter: blur(18px);
}

.support::after {
  bottom: -18rem;
  left: -18rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(131, 169, 255, 0.35), transparent 70%);
  filter: blur(24px);
}

.support-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  text-align: center;
}

.support-intro p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.support-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 2.5rem;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow: 0 35px 60px -45px rgba(124, 58, 237, 0.6);
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -45px rgba(124, 58, 237, 0.7);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.5rem;
  font-size: 2rem;
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-primary);
}

.contact-card h3 {
  font-size: 1.6rem;
}

.contact-card p {
  color: var(--color-muted);
  max-width: 19rem;
}

.contact-card a {
  font-weight: 700;
  color: var(--color-primary);
}

.contact-card a:hover {
  color: var(--color-primary-dark);
}

.contact-card--community {
  border-color: rgba(99, 102, 241, 0.2);
}

.contact-card--community .contact-card__icon {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-secondary);
}

.contact-card--community a {
  color: var(--color-secondary);
}

.contact-card--community a:hover {
  color: #4338ca;
}

.support-quote {
  font-style: italic;
  color: rgba(55, 65, 81, 0.65);
}

.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 4rem 0 3rem;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
}

.site-footer .brand-icon {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.site-footer .brand-name {
  -webkit-text-fill-color: rgba(226, 232, 240, 0.9);
}

.footer-text {
  max-width: 34rem;
  color: rgba(226, 232, 240, 0.7);
  font-size: 1.05rem;
}

.footer-social {
  display: inline-flex;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.footer-social a {
  color: rgba(226, 232, 240, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #c4b5fd;
  transform: translateY(-3px);
}

.footer-meta {
  display: grid;
  gap: 1rem;
  color: rgba(226, 232, 240, 0.65);
}

.footer-links {
  display: inline-flex;
  gap: 1.25rem;
  font-weight: 500;
}

.footer-links a {
  color: rgba(226, 232, 240, 0.75);
}

.footer-links a:hover {
  color: #ffffff;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    padding-top: 6rem;
  }
}

@media (max-width: 600px) {
  .hero-copy {
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .hero-actions,
  .hero-community {
    justify-content: center;
  }

  .main-nav {
    justify-content: center;
  }

  .header-inner {
    align-items: center;
  }
}
