/* Rain Digital - shared demo design system (matches main site) */
:root,
[data-theme="light"] {
  --bg: #f7f4ef;
  --bg-alt: #efeae2;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-muted: #5c5c5c;
  --muted: #5c5c5c;
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #2563eb;
  --accent-soft: rgba(30, 64, 175, 0.12);
  --accent-glow: rgba(30, 64, 175, 0.35);
  --border: #e5dfd6;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  --gradient-soft: linear-gradient(180deg, rgba(30, 64, 175, 0.08) 0%, transparent 100%);
  --hero-glow-1: rgba(30, 64, 175, 0.12);
  --hero-glow-2: rgba(37, 99, 235, 0.1);
  --header-bg: rgba(247, 244, 239, 0.94);
  --gold: #1e40af;
  --gold-light: #2563eb;
  --gold-soft: rgba(30, 64, 175, 0.12);
  --gold-glow: rgba(30, 64, 175, 0.35);
  --neon: #1e40af;
  --neon-dim: rgba(30, 64, 175, 0.35);
  --neon-glow: rgba(30, 64, 175, 0.35);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #0a0a0a;
  --text: #f5f5f5;
  --text-muted: #999999;
  --muted: #999999;
  --primary: #60a5fa;
  --primary-dark: #000000;
  --accent: #3b82f6;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --accent-glow: rgba(96, 165, 250, 0.4);
  --border: rgba(96, 165, 250, 0.18);
  --gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #3b82f6 100%);
  --gradient-soft: linear-gradient(180deg, rgba(30, 64, 175, 0.1) 0%, transparent 100%);
  --hero-glow-1: rgba(30, 64, 175, 0.18);
  --hero-glow-2: rgba(59, 130, 246, 0.12);
  --header-bg: rgba(0, 0, 0, 0.92);
  --gold: #60a5fa;
  --gold-light: #93c5fd;
  --gold-soft: rgba(96, 165, 250, 0.14);
  --gold-glow: rgba(96, 165, 250, 0.4);
  --neon: #60a5fa;
  --neon-dim: rgba(96, 165, 250, 0.35);
  --neon-glow: rgba(96, 165, 250, 0.4);
}

html { color-scheme: light dark; }

body {
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.demo-bar {
  background: linear-gradient(90deg, #1e3a8a, #1e40af);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  position: relative;
  z-index: 50;
}

.demo-bar a {
  color: #93c5fd;
  text-decoration: none;
}

.demo-bar a:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.demo-bar__theme {
  margin-left: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  padding: 2px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  vertical-align: middle;
}

.demo-bar__theme:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-header {
  background: var(--header-bg) !important;
  border-bottom-color: var(--border) !important;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.logo,
.logo span {
  color: var(--text) !important;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--primary) !important;
}

a {
  color: var(--primary);
}

.btn--primary,
.btn--gold {
  background: var(--gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px var(--accent-glow) !important;
  border: none !important;
}

.btn--primary:hover,
.btn--gold:hover {
  box-shadow: 0 6px 28px var(--accent-glow) !important;
  color: #ffffff !important;
}

.btn--ghost:hover {
  border-color: var(--primary) !important;
}

.card {
  background: var(--surface);
  border-color: var(--border);
}

.section--alt {
  background: var(--bg-alt) !important;
  border-color: var(--border) !important;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 70%);
  animation: rainMeshDrift 20s linear infinite;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: rainOrbFloat 14s ease-in-out infinite;
}

.hero__orb--1 {
  width: 340px;
  height: 340px;
  background: var(--hero-glow-1);
  top: 5%;
  right: 8%;
}

.hero__orb--2 {
  width: 260px;
  height: 260px;
  background: var(--hero-glow-2);
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

.hero__orb--3 {
  width: 180px;
  height: 180px;
  background: var(--accent-soft);
  top: 45%;
  left: 40%;
  animation-delay: -9s;
}

@keyframes rainOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -20px) scale(1.06); }
  66% { transform: translate(-16px, 16px) scale(0.96); }
}

@keyframes rainMeshDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.hero.rain-hero,
.hero-home.rain-hero,
.hero-world.rain-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-soft) !important;
}

.hero.rain-hero .container,
.hero.rain-hero .hero__grid,
.hero-home.rain-hero .container,
.hero-world.rain-hero .hero-world__layout {
  position: relative;
  z-index: 2;
}

.hero__eyebrow,
.hero-home__tag,
.hero-world__badge {
  color: var(--primary) !important;
}

.testimonial-card__stars,
.feature-row strong {
  color: var(--primary) !important;
}

.whatsapp-float {
  bottom: 24px;
  right: 24px;
}
