/* ==========================================================================
   NGO RAINBOW LIFE / ГО РАЙДУЖНЕ ЖИТТЯ - Modern Design System
   ========================================================================== */

:root {
  --bg-main: #030712;
  --bg-surface: #0a0f1d;
  --bg-surface-elevated: #111827;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(26, 32, 54, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(217, 70, 239, 0.3);
  --border-accent-strong: rgba(217, 70, 239, 0.7);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-brand-fuchsia: #d946ef;
  --color-brand-purple: #9333ea;
  --color-brand-violet: #8b5cf6;
  --color-brand-cyan: #00e5ff;
  --color-brand-pink: #ff00a0;
  --color-brand-amber: #ffaa00;

  --gradient-brand: linear-gradient(135deg, #d946ef 0%, #9333ea 50%, #6366f1 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(217, 70, 239, 0.4), rgba(147, 51, 234, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(217, 70, 239, 0.18) 0%, rgba(147, 51, 234, 0.08) 35%, transparent 70%);

  --shadow-neon: 0 0 25px rgba(217, 70, 239, 0.35);
  --shadow-neon-lg: 0 0 45px rgba(217, 70, 239, 0.45);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--bg-main);
  position: relative;
  overflow-x: hidden;
}

/* Dynamic Ambient Glow Background */
.bg-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 850px;
  background: 
    radial-gradient(ellipse 65% 550px at 50% -10%, rgba(217, 70, 239, 0.22) 0%, rgba(147, 51, 234, 0.12) 40%, rgba(3, 7, 18, 0) 80%),
    radial-gradient(ellipse 40% 350px at 20% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 350px at 80% 25%, rgba(255, 0, 160, 0.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(217, 70, 239, 0.6));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 16px rgba(217, 70, 239, 0.9));
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, #f3e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #d946ef 0%, #9333ea 100%);
  box-shadow: 0 2px 10px rgba(217, 70, 239, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
}

.badge-wrapper {
  display: inline-flex;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.3);
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0abfc;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.15);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-brand-fuchsia);
  box-shadow: 0 0 8px var(--color-brand-fuchsia);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #ffffff 20%, #f5d0fe 60%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neon);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-lg);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-fuchsia);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Focus Areas (3 Cards)
   ========================================================================== */
.focus-section {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.focus-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-card-border);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(217, 70, 239, 0.2);
}

.focus-card:hover::before {
  opacity: 1;
  background: var(--gradient-brand);
}

.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.25);
  box-shadow: inset 0 0 15px rgba(217, 70, 239, 0.15);
  transition: all 0.3s ease;
}

.focus-card:hover .card-icon-wrap {
  background: rgba(217, 70, 239, 0.2);
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.35);
  transform: scale(1.06);
}

.card-icon {
  width: 28px;
  height: 28px;
  color: #f0abfc;
}

.card-number {
  position: absolute;
  top: 1.75rem;
  right: 1.85rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.04em;
  user-select: none;
  transition: color 0.3s ease;
}

.focus-card:hover .card-number {
  color: rgba(217, 70, 239, 0.18);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.68;
  flex-grow: 1;
}

/* ==========================================================================
   Transparency & Legal Section
   ========================================================================== */
.legal-section {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.legal-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.legal-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(20, 29, 51, 0.7);
  transform: translateY(-2px);
}

.legal-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.legal-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.legal-value-highlight {
  color: #f0abfc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--color-brand-fuchsia);
  background: rgba(217, 70, 239, 0.15);
}

.copy-icon {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  position: relative;
  background: #02050f;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  max-width: 480px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f0abfc;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.25);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.footer-email-link:hover {
  background: rgba(217, 70, 239, 0.18);
  border-color: rgba(217, 70, 239, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-badge-ua {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.heart-icon {
  color: var(--color-brand-fuchsia);
  display: inline-block;
  animation: heart-beat 1.8s infinite ease-in-out;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  35% { transform: scale(0.95); }
  45% { transform: scale(1.1); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--shadow-neon);
  backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 68px;
  }

  .brand-sub {
    display: none;
  }

  .hero-section {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    text-align: center;
  }
}
