/* =============================================
   СЕРАФИМ — Premium Redesign
   Black & Yellow / Ukrainian FPV Workshop
   Bebas Neue + Inter / GSAP + Vanta.js
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --yellow:       #FFD700;
  --yellow-dark:  #e6c200;
  --yellow-dim:   rgba(255, 215, 0, 0.12);
  --yellow-glow:  rgba(255, 215, 0, 0.35);
  --black:        #000000;
  --dark:         #0d0d0d;
  --dark-2:       #111111;
  --dark-3:       #1a1a1a;
  --white:        #ffffff;
  --gray:         #777777;
  --gray-light:   #aaaaaa;
  --text:         #c8c8c8;
  --font-head:    'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:    'Inter', Arial, sans-serif;
  --radius:       6px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --transition:   0.28s var(--ease);
}

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

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =============================================
   UTILITIES
   ============================================= */

.accent { color: var(--yellow); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =============================================
   HEADER
   ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.97);
  border-bottom-color: rgba(255, 215, 0, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__emblem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: filter 0.35s ease;
}

.logo:hover .logo__emblem {
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.55));
}

.logo__name {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--yellow);
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  color: var(--gray-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background: var(--yellow-dark) !important;
  color: var(--black) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.38) !important;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

#vanta-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Film grain noise texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Radial vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 100%;
  padding-top: 72px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  margin-bottom: 36px;
  opacity: 0; /* GSAP will reveal */
}

.hero__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 8.5vw, 124px);
  line-height: 0.92;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

/* Each line clips only vertically for char animation — horizontal overflow allowed */
.hero__title-line {
  display: block;
  overflow: visible;
  white-space: nowrap;
  padding-bottom: 6px;
  clip-path: inset(0 -200px 0 -200px);
}

.hero__title-line .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Accent line in title */
.hero__title-line--accent .char {
  color: var(--yellow);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 48px;
  line-height: 1.8;
  max-width: 520px;
  opacity: 0; /* GSAP will reveal */
}

.hero__sub strong {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0; /* GSAP will reveal */
}

/* Scroll hint arrow */
.hero__scroll-hint {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 215, 0, 0.45);
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scroll-bounce 2.6s ease-in-out infinite;
  user-select: none;
}

.hero__scroll-hint span {
  display: block;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,215,0,0.5), transparent);
  display: block;
  animation: line-drop 2.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(9px); }
}

@keyframes line-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn--primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.38);
}

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

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.22);
}

.btn--outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.1);
}

.btn--dark {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}

.btn--dark:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.btn--large {
  padding: 18px 44px;
  font-size: 14px;
}

/* =============================================
   SECTION BASE
   ============================================= */

.section {
  padding: 120px 0;
}

.section--dark {
  background: var(--dark);
}

.section--yellow {
  background: var(--yellow);
  color: var(--black);
}

.section__header {
  text-align: center;
  margin-bottom: 80px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.section__tag--dark {
  color: rgba(0, 0, 0, 0.5);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 62px);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.02;
  text-transform: uppercase;
}

.section__title--dark {
  color: var(--black);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(52px);
  will-change: transform, opacity;
}

/* =============================================
   ABOUT
   ============================================= */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about__text p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 24px;
}

.about__text strong {
  color: var(--yellow);
  font-weight: 700;
}

.about__motto {
  margin-top: 40px;
  padding: 24px 32px;
  border-left: 3px solid var(--yellow);
  background: linear-gradient(135deg, rgba(255,215,0,0.07) 0%, rgba(255,215,0,0.02) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about__motto span {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--yellow);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Emblem */
.about__emblem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.emblem-large {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  animation: pulse-glow 4.8s ease-in-out infinite;
  will-change: filter;
}

@keyframes pulse-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 20px rgba(255, 215, 0, 0.16))
      drop-shadow(0 0 6px rgba(255, 215, 0, 0.08));
  }
  50% {
    filter:
      drop-shadow(0 0 60px rgba(255, 215, 0, 0.52))
      drop-shadow(0 0 22px rgba(255, 215, 0, 0.3));
  }
}

/* =============================================
   MISSION CARDS
   ============================================= */

.mission__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  padding: 40px 28px;
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
  will-change: transform, opacity;
  cursor: default;
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.42);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  transform: translateY(-4px) !important;
}

.card__icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: background 0.28s ease;
}

.card:hover .card__icon {
  background: rgba(255, 215, 0, 0.14);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
  line-height: 1.2;
}

.card p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.75;
}

/* =============================================
   STATS
   ============================================= */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 215, 0, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  padding: 56px 24px;
  text-align: center;
  position: relative;
  background: var(--black);
  transition: background 0.25s ease;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 215, 0, 0.1);
}

.stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.38s ease;
}

.stat:hover {
  background: rgba(255, 215, 0, 0.025);
}

.stat:hover::after {
  width: 56%;
}

.stat__number {
  font-family: var(--font-head);
  font-size: clamp(48px, 5.5vw, 76px);
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat__suffix {
  color: var(--yellow);
  font-size: 0.75em;
}

.stat__count {
  display: inline-block;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.4;
}

/* =============================================
   DONATE
   ============================================= */

.donate__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 100px;
  align-items: center;
}

.donate__desc {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.65);
  margin: 20px 0 32px;
  line-height: 1.8;
}

.donate__list {
  list-style: none;
  margin-bottom: 44px;
}

.donate__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.78);
  margin-bottom: 14px;
}

.donate__list li svg { flex-shrink: 0; }

.donate__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.donate__card {
  background: var(--black);
  border-radius: 20px;
  padding: 44px 38px;
  text-align: center;
  width: 280px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.donate__card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.donate__card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.donate__card-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 4.5px;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.donate__card-org {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.donate__drone-icon {
  width: 96px;
  height: 72px;
  margin: 0 auto 28px;
  display: block;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.25));
}

.donate__card-action {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 10px 18px;
  border-radius: var(--radius);
  display: inline-block;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand .logo__name {
  font-size: 19px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__copy {
  font-size: 12.5px;
  color: rgba(120, 120, 120, 0.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .mission__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid rgba(255, 215, 0, 0.1);
  }

  .stat:nth-child(3) {
    border-left: none;
  }

  .donate__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .nav a:not(.nav__cta) {
    display: none;
  }

  .nav {
    gap: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about__emblem {
    order: -1;
  }

  .emblem-large {
    width: 240px;
    height: 240px;
  }

  .hero__title {
    font-size: clamp(24px, 11vw, 88px);
  }

  .section {
    padding: 88px 0;
  }

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 540px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .donate__card {
    width: 100%;
    max-width: 320px;
  }
}
