/* ═══════════════════════════════════════════════════════════
   Vedaverse Techx — Shared Page UI (Hero-style system)
   Mesh · Grid · Pill badges · Soft cards · Rounded visuals
   ═══════════════════════════════════════════════════════════ */

.page-site,
.page-home {
  --ui-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --ui-body: 'DM Sans', system-ui, sans-serif;
  --ui-radius-lg: 1.25rem;
  --ui-radius-xl: 1.75rem;
  --ui-glow-indigo: rgba(79, 70, 229, 0.4);
  --ui-glow-cyan: rgba(6, 182, 212, 0.3);
}

.page-site .font-display,
.page-site .section-title,
.page-site h1.section-title {
  font-family: var(--ui-display);
}

.page-site {
  font-family: var(--ui-body);
}

/* ── Mesh background layer (reusable) ── */
.ui-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ui-mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.ui-mesh__blob--1 {
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  top: -30%;
  left: -15%;
  background: radial-gradient(circle, var(--ui-glow-indigo) 0%, transparent 70%);
  opacity: 0.55;
}

.ui-mesh__blob--2 {
  width: min(420px, 65vw);
  height: min(420px, 65vw);
  top: 0;
  right: -10%;
  background: radial-gradient(circle, var(--ui-glow-cyan) 0%, transparent 70%);
  opacity: 0.45;
}

.dark .ui-mesh__blob--1,
.dark .ui-mesh__blob--2 {
  opacity: 0.75;
}

.ui-mesh__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 15%, transparent 75%);
}

.dark .ui-mesh__grid {
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.055) 1px, transparent 1px);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 3rem;
}

@media (min-width: 768px) {
  .page-hero { padding: 3.5rem 0 4rem; }
}

.page-hero--compact {
  padding: 2.5rem 0 2.75rem;
}

@media (min-width: 768px) {
  .page-hero--compact { padding: 3rem 0 3.5rem; }
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__content {
  max-width: 42rem;
}

.page-hero__content--center {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero__content--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Pill badge ── */
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
}

.dark .ui-badge {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(51, 65, 85, 0.7);
}

.ui-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan-bright);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55);
  flex-shrink: 0;
}

.page-site .section-label,
.page-home .home-section-head .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.6875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

.page-site .section-label::before,
.page-home .home-section-head .section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan-bright);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  flex-shrink: 0;
}

.dark .page-site .section-label,
.dark .page-home .home-section-head .section-label {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(51, 65, 85, 0.65);
}

/* ── Page sections ── */
.page-section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-section { padding: 5rem 0; }
}

.page-section .container {
  position: relative;
  z-index: 2;
}

.page-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.page-section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.page-section-head--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero-style cards ── */
.page-site .glass-card,
.page-home .glass-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--ui-radius-lg);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dark .page-site .glass-card,
.dark .page-home .glass-card {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(51, 65, 85, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.page-site .glass-card:hover,
.page-home .glass-card:hover {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
}

/* ── Rounded visuals ── */
.ui-visual,
.page-site .about-visual {
  border-radius: var(--ui-radius-xl);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .ui-visual,
.dark .page-site .about-visual {
  border-color: rgba(51, 65, 85, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ui-visual img,
.page-site .about-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Spotlight card ── */
.ui-spotlight {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--ui-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

@media (min-width: 768px) {
  .ui-spotlight { padding: 2.5rem 3rem; }
}

.ui-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,70,229,0.35), rgba(6,182,212,0.25), rgba(79,70,229,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ui-spotlight p {
  position: relative;
  z-index: 1;
  font-size: var(--type-description);
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.dark .ui-spotlight {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(51, 65, 85, 0.6);
}

/* ── CTA ── */
.page-site .cta-banner,
.page-home .home-cta {
  border-radius: var(--ui-radius-xl);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.32);
}

.page-site .cta-banner h2,
.page-site .cta-banner h2 .gradient-text,
.page-home .home-cta h2,
.page-home .home-cta h2 .gradient-text {
  font-family: var(--ui-display);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.page-site .cta-banner .cta-subtitle,
.page-home .home-cta p {
  color: rgba(255, 255, 255, 0.88);
}

.page-site .cta-banner .btn-navy,
.page-home .home-cta .btn-primary {
  background: white;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ── Icon box ── */
.ui-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.08));
  border: 1px solid rgba(79, 70, 229, 0.08);
  margin-bottom: 1rem;
}

.page-site .form-input {
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
}

.dark .page-site .form-input {
  background: rgba(15, 23, 42, 0.6);
}

.page-home .home-section--alt {
  background: transparent;
}
