/* ==========================================================================
   ABBA Security – Main Stylesheet
   RTL / Farsi / Modern Design
   ========================================================================== */

/* ---- 0. CSS Custom Properties ---- */
:root {
  /* Colors */
  --bg:          #0a0d14;
  --bg-2:        #0f1420;
  --bg-card:     #131929;
  --bg-card-hov: #182036;
  --surface:     #1a2235;
  --border:      rgba(255,255,255,.08);
  --border-hov:  rgba(255,255,255,.18);

  --accent:      #f97316;       /* orange */
  --accent-dim:  rgba(249,115,22,.15);
  --accent-glow: rgba(249,115,22,.35);
  --accent-2:    #fb923c;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  /* Typography */
  --font:    'Vazirmatn', sans-serif;
  --fs-xs:   .75rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;

  /* Spacing */
  --sp-1:  .25rem;
  --sp-2:  .5rem;
  --sp-3:  .75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:   .375rem;
  --r-md:   .75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.6);
  --shadow-acc: 0 0 30px var(--accent-glow);

  /* Transitions */
  --ease:       cubic-bezier(.4,0,.2,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --dur-fast:   150ms;
  --dur-mid:    300ms;
  --dur-slow:   600ms;

  /* Layout */
  --container:  1200px;
  --header-h:   72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
img,svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- 2. Utility ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(249,115,22,.3);
  margin-bottom: var(--sp-4);
  letter-spacing: .03em;
}
.section-tag--light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.section-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}
.section-title--light { color: #fff; }

.section-desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}
.section-desc--light { color: rgba(255,255,255,.7); }

/* ---- 3. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .75rem var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--dur-mid) var(--ease);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--border-hov);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255,255,255,.25);
}
.btn--outline:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,.05);
}

.btn--large {
  padding: 1rem var(--sp-8);
  font-size: var(--fs-lg);
}

/* ---- 4. Header ---- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              backdrop-filter var(--dur-mid);
}
.header.scrolled {
  background: rgba(10,13,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-md);
}

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

/* Logo – real image */
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
  /* Invert black logo to white on dark background */
  filter: invert(1) brightness(2);
  transition: opacity var(--dur-mid);
}
.logo-img:hover { opacity: .85; }
.logo-img--footer {
  height: 44px;
  opacity: .9;
}

/* 15-year experience badge in header */
.header__badge15 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(249,115,22,.1);
  color: var(--accent-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: .35rem var(--sp-3);
  border-radius: var(--r-full);
  border: 1px solid rgba(249,115,22,.25);
  white-space: nowrap;
  letter-spacing: .02em;
  flex-shrink: 0;
}

/* Desktop Nav */
.header__nav { display: flex; }
.nav__list { display: flex; align-items: center; gap: var(--sp-6); }
.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-mid) var(--ease);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: .5rem var(--sp-5);
  border-radius: var(--r-md);
  transition: all var(--dur-mid) var(--ease);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.nav__cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--r-full);
  transition: all var(--dur-mid) var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  right: 0;
  left: 0;
  background: rgba(10,13,20,.97);
  backdrop-filter: blur(20px);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-mid) var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-menu__link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: all var(--dur-fast);
}
.mobile-menu__link:hover { color: var(--text-primary); background: var(--surface); }
.mobile-menu__cta {
  display: block;
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-md);
}

/* ---- 5. Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
  /* Extra bottom space so the scroll indicator doesn't overlap stats */
  padding-bottom: 7rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(249,115,22,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}
.particle:nth-child(1)  { top:15%; right:10%; animation-duration:7s; animation-delay:0s; }
.particle:nth-child(2)  { top:35%; left:12%; animation-duration:9s; animation-delay:1s; width:6px; height:6px; }
.particle:nth-child(3)  { top:65%; right:20%; animation-duration:8s; animation-delay:2s; }
.particle:nth-child(4)  { top:80%; left:30%; animation-duration:6s; animation-delay:.5s; width:3px; height:3px; }
.particle:nth-child(5)  { top:20%; right:40%; animation-duration:10s; animation-delay:3s; opacity:.5; }
.particle:nth-child(6)  { top:50%; left:5%; animation-duration:7s; animation-delay:1.5s; width:5px; height:5px; }
.particle:nth-child(7)  { top:70%; right:50%; animation-duration:9s; animation-delay:4s; opacity:.3; }
.particle:nth-child(8)  { top:90%; left:60%; animation-duration:8s; animation-delay:2.5s; width:4px; height:4px; }

@keyframes float-particle {
  0%,100% { transform: translate(0,0) scale(1); opacity:.8; }
  33%      { transform: translate(-15px,-20px) scale(1.2); opacity:.4; }
  66%      { transform: translate(10px,-40px) scale(.8); opacity:.9; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(249,115,22,.12);
  color: var(--accent-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(249,115,22,.25);
  margin-bottom: var(--sp-6);
  animation: fade-up .8s var(--ease) both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-6xl));
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  animation: fade-up .8s .15s var(--ease) both;
}
.hero__brand {
  color: var(--accent);
  display: inline-block;
  animation: glow-text 3s ease-in-out infinite alternate;
}
@keyframes glow-text {
  from { text-shadow: 0 0 10px rgba(249,115,22,.3); }
  to   { text-shadow: 0 0 30px rgba(249,115,22,.7), 0 0 60px rgba(249,115,22,.3); }
}
.hero__subtitle-inline { color: var(--text-secondary); }
.hero__highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  animation: fade-up .8s .3s var(--ease) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
  animation: fade-up .8s .45s var(--ease) both;
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  animation: fade-up .8s .6s var(--ease) both;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-8);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: block;
  margin-top: var(--sp-1);
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator – anchored to bottom of hero, clear of stats */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  animation: fade-up 1s 1.2s var(--ease) both;
  z-index: 3;
  /* Ensure it doesn't overlap content */
  pointer-events: auto;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,.4);
  border-radius: var(--r-full);
  animation: scroll-wheel 2s infinite var(--ease);
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity:1; }
  80%  { transform: translateY(12px); opacity:0; }
  100% { transform: translateY(0); opacity:0; }
}
.scroll-label { font-size: var(--fs-xs); color: rgba(255,255,255,.35); }

/* ---- 6. Categories / Cards ---- */
.categories {
  padding-block: var(--sp-24);
  position: relative;
}
.categories::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-6);
  /* Center last row */
  justify-items: center;
}

/* Force 5th card to be centered when it wraps */
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card:nth-child(4) { grid-column: 1; }
  .card:nth-child(5) { grid-column: 2; }
}
@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: auto; }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition:
    transform var(--dur-mid) var(--ease-spring),
    border-color var(--dur-mid) var(--ease),
    box-shadow var(--dur-mid) var(--ease),
    background var(--dur-mid) var(--ease);
  overflow: hidden;
  cursor: default;
}

/* Glow effect on hover */
.card__glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(249,115,22,.4);
  background: var(--bg-card-hov);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px var(--accent-glow);
}
.card:hover .card__glow { opacity: 1; }
.card:hover .card__icon { transform: scale(1.1) rotate(-3deg); }
.card:hover .card__icon-ring { transform: scale(1.6); opacity: 0; }

/* Card Icon */
.card__icon-wrap {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  z-index: 1;
}
.card__icon {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  transition: transform var(--dur-slow) var(--ease-spring);
  position: relative;
  z-index: 1;
}
.card__icon svg { width: 100%; height: 100%; }
.card__icon-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(249,115,22,.3);
  border-radius: calc(var(--r-xl) + 8px);
  transition: transform .8s var(--ease), opacity .8s var(--ease);
}

/* Card Body */
.card__body { flex: 1; z-index: 1; }
.card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}
.card__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.card__features li svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Card Footer */
.card__footer { z-index: 1; }
.card__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--dur-mid) var(--ease), color var(--dur-fast);
}
.card__btn svg { width: 18px; height: 18px; transition: transform var(--dur-mid) var(--ease-spring); }
.card__btn:hover { color: var(--accent-2); }
.card__btn:hover svg { transform: translateX(-4px); }

/* ---- 7. Why Us ---- */
.why-us {
  position: relative;
  padding-block: var(--sp-24);
  background: linear-gradient(135deg, #0d1525 0%, #111827 50%, #0d1525 100%);
  overflow: hidden;
}

.why-us__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.why-us__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.why-us__blob--1 {
  width: 500px; height: 500px;
  background: rgba(249,115,22,.08);
  top: -150px; right: -150px;
  animation: blob-drift 12s ease-in-out infinite alternate;
}
.why-us__blob--2 {
  width: 400px; height: 400px;
  background: rgba(30,58,138,.12);
  bottom: -100px; left: -100px;
  animation: blob-drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.1); }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}

.why-item {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-2xl);
  transition: all var(--dur-mid) var(--ease);
  opacity: 0;
  transform: translateY(30px);
}
.why-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.why-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(249,115,22,.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.why-item__icon-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: var(--sp-5);
}
.why-item__icon {
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.why-item__icon svg { width: 100%; height: 100%; }
.why-item:hover .why-item__icon {
  transform: scale(1.08) rotate(5deg);
  border-color: rgba(249,115,22,.3);
}
.why-item__pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(249,115,22,.25);
  border-radius: calc(var(--r-2xl) + 6px);
  animation: pulse-ring 3s ease-out infinite;
}
.why-item:nth-child(2) .why-item__pulse { animation-delay: 1s; }
.why-item:nth-child(3) .why-item__pulse { animation-delay: 2s; }
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.why-item__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.why-item__text {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}

/* ---- 8. Contact CTA ---- */
.contact-cta {
  padding-block: var(--sp-24);
  position: relative;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a2035 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  overflow: hidden;
}

.cta-card__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30,58,138,.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-block: var(--sp-4) var(--sp-4);
  position: relative;
}

.cta-card__desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-10);
  position: relative;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-8);
  position: relative;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--dur-mid) var(--ease-spring);
  text-align: right;
}
.social-link:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-md);
}

.social-link__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-mid) var(--ease-spring);
}
.social-link__icon svg { width: 22px; height: 22px; }
.social-link:hover .social-link__icon { transform: scale(1.15) rotate(5deg); }

.social-link__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.social-link__handle {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.social-link--instagram { }
.social-link--instagram .social-link__icon {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.social-link--instagram:hover { border-color: #e1306c; }

.social-link--telegram .social-link__icon {
  background: #0088cc;
  color: #fff;
}
.social-link--telegram:hover { border-color: #0088cc; }

.social-link--bale .social-link__icon {
  background: #2196f3;
  color: #fff;
}
.social-link--bale:hover { border-color: #2196f3; }

.social-link--phone .social-link__icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.social-link--phone:hover { border-color: #10b981; }

.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  position: relative;
}

/* ---- 9. Footer ---- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp-12);
  align-items: start;
  padding-bottom: var(--sp-10);
}

.footer__brand .footer__logo { margin-bottom: var(--sp-4); }
.footer__tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer__links ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.footer__links a,
.footer__contact a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--accent); }

.footer__nav-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-5);
}
.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---- 10. Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  left: var(--sp-6);
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--dur-mid) var(--ease);
  z-index: 999;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
}

/* ---- 11. Animations ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* ---- 12. Responsive ---- */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }
  /* Hide 15yr badge on tablet to avoid crowding */
  .header__badge15 { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .header__badge15 { display: none; }

  .logo-img { height: 40px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .hero__stats {
    gap: var(--sp-5);
    padding: var(--sp-4) var(--sp-5);
  }
  .stat__num { font-size: var(--fs-2xl); }

  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card:nth-child(4),
  .card:nth-child(5) { grid-column: auto; }

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

  .cta-card {
    padding: var(--sp-10) var(--sp-6);
  }

  .social-links { flex-direction: column; align-items: center; }
  .social-link { width: 100%; max-width: 280px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: var(--sp-3); }
  .stat__divider { width: 40px; height: 1px; }
  .cta-card__actions { flex-direction: column; }
  .cta-card__actions .btn { width: 100%; justify-content: center; }
}

/* Footer logo link */
.footer__logo-link { display: inline-block; margin-bottom: var(--sp-3); }

/* ---- 13. Print ---- */
@media print {
  .header, .hero__canvas, .hero__particles, .back-to-top { display: none; }
  body { background: #fff; color: #000; }
}
