/**
 * Lite surface — design tokens + primitives shared across catalog/proxy/checkout/profile.
 * DNA từ trang chủ (lite-home / lite.html).
 */
:root {
  --lite-bg: #f8fafc;
  --lite-card-bg: rgba(255, 255, 255, 0.82);
  --lite-card-bg-solid: #ffffff;
  --lite-card-border: rgba(226, 232, 240, 0.9);
  --lite-radius: 1rem;
  --lite-radius-sm: 0.75rem;
  --lite-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --lite-shadow-hover: 0 12px 28px -10px rgba(15, 23, 42, 0.1);
  --lite-text: #0f172a;
  --lite-muted: #475569;
  --lite-faint: #94a3b8;
  --lite-sky: #0ea5e9;
  --lite-sky-dark: #0284c7;

  --lite-vps: #f97316;
  --lite-vps-bg: #fff7ed;
  --lite-vps-glow: rgba(249, 115, 22, 0.18);
  --lite-hosting: #a855f7;
  --lite-hosting-bg: #faf5ff;
  --lite-hosting-glow: rgba(168, 85, 247, 0.18);
  --lite-email: #3b82f6;
  --lite-email-bg: #eff6ff;
  --lite-email-glow: rgba(59, 130, 246, 0.18);
  --lite-proxy: #10b981;
  --lite-proxy-bg: #ecfdf5;
  --lite-proxy-glow: rgba(16, 185, 129, 0.18);
}

/* Soft page blobs */
.lite-page-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lite-page-blobs__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
  animation: lite-surface-float 14s ease-in-out infinite alternate;
}

.lite-page-blobs__blob--a {
  top: -10%;
  left: 5%;
  width: 18rem;
  height: 18rem;
  background: rgba(14, 165, 233, 0.14);
}

.lite-page-blobs__blob--b {
  top: 30%;
  right: -6%;
  width: 16rem;
  height: 16rem;
  background: rgba(168, 85, 247, 0.12);
  animation-delay: -6s;
}

.lite-page-blobs__blob--c {
  bottom: -8%;
  left: 35%;
  width: 14rem;
  height: 14rem;
  background: rgba(16, 185, 129, 0.1);
  animation-delay: -3s;
}

@keyframes lite-surface-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, 28px) scale(1.06); }
}

/* Hero block */
.lite-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}

.lite-hero__chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(59, 130, 246, 0.08));
  color: var(--lite-sky-dark);
}

.lite-hero__chip--vps {
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.25);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 146, 60, 0.08));
}

.lite-hero__chip--hosting {
  color: #7e22ce;
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(192, 132, 252, 0.08));
}

.lite-hero__chip--email {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.08));
}

.lite-hero__chip--proxy {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.08));
}

.lite-hero__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--lite-text);
}

@media (min-width: 768px) {
  .lite-hero__title {
    font-size: 2.1rem;
  }
}

.lite-hero__title-hi {
  display: inline-block;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lite-hero__title-hi--vps {
  background: linear-gradient(135deg, #f97316, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
}

.lite-hero__title-hi--hosting {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
}

.lite-hero__title-hi--email {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
}

.lite-hero__title-hi--proxy {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
}

.lite-hero__desc {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--lite-muted);
}

/* Glass card primitive */
.lite-glass-card {
  background: var(--lite-card-bg);
  border: 1px solid var(--lite-card-border);
  border-radius: var(--lite-radius);
  box-shadow: var(--lite-shadow);
}

/* Fade-up on page enter */
.lite-fade-up {
  opacity: 0;
  transform: translateY(14px);
}

.page-section.active .lite-fade-up,
.lite-fade-up.is-in {
  animation: lite-surface-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lite-fade-up--1 { animation-delay: 0.06s; }
.lite-fade-up--2 { animation-delay: 0.12s; }
.lite-fade-up--3 { animation-delay: 0.18s; }

@keyframes lite-surface-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lite-page-blobs__blob,
  .lite-fade-up {
    animation: none !important;
  }

  .lite-fade-up,
  .page-section.active .lite-fade-up {
    opacity: 1;
    transform: none;
  }
}
