/* ===== LEGION - Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy-deep: #060e1a;
  --navy: #0a1628;
  --navy-light: #111f36;
  --navy-mid: #1a2d4a;
  --gold: #c8a84e;
  --gold-light: #e8d48a;
  --gold-dark: #9a7d30;
  --white: #f0f0f5;
  --gray: #8a94a6;
  --gray-light: #b0b8c8;
  --accent-blue: #2a6ff5;
  --glass: rgba(16, 30, 52, 0.65);
  --glass-border: rgba(200, 168, 78, 0.15);
  --shadow-gold: 0 0 40px rgba(200, 168, 78, 0.15);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 { font-family: 'Cinzel', serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 100px; animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(200,168,78,0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(200,168,78,0.7)); transform: scale(1.05); }
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}
.navbar.scrolled {
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 45px; }
.nav-logo span {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-light);
  position: relative; transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 28px; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep); border: none; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.5px;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 168, 78, 0.4);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 5px;
}
.hamburger span {
  width: 28px; height: 2px; background: var(--gold); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.25; filter: blur(1px);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,14,26,0.3) 0%,
    rgba(6,14,26,0.6) 50%,
    var(--navy-deep) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 850px; margin: 0 auto; padding: 60px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(200, 168, 78, 0.1);
  border: 1px solid rgba(200, 168, 78, 0.25);
  font-size: 0.8rem; font-weight: 600; color: var(--gold-light);
  margin-bottom: 28px; letter-spacing: 1.5px; text-transform: uppercase;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: var(--gray-light); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-deep); border: none; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(200, 168, 78, 0.4);
}
.btn-outline {
  padding: 16px 40px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  background: transparent; color: var(--gold-light);
  border: 2px solid rgba(200, 168, 78, 0.4); cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(200, 168, 78, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(200, 168, 78, 0.1);
}
.stat { text-align: center; }
.stat-number {
  font-family: 'Cinzel', serif; font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTIONS GENERAL ===== */
section { position: relative; z-index: 1; padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  margin-bottom: 16px;
}
.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ===== SERVICES ===== */
.services { background: var(--navy-deep); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 0; overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(200,168,78,0.05), transparent);
  opacity: 0; transition: var(--transition); border-radius: 20px;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 168, 78, 0.35);
  box-shadow: var(--shadow-gold);
}
.service-card:hover::before { opacity: 1; }
.service-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover .service-card-img {
  transform: scale(1.1);
}
.service-card-body { padding: 32px; position: relative; z-index: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(200,168,78,0.15), rgba(200,168,78,0.05));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  transform: translateY(-5px) scale(1.05) rotate(5deg);
  background: linear-gradient(135deg, rgba(200,168,78,0.3), rgba(200,168,78,0.1));
  box-shadow: 0 10px 20px rgba(200,168,78,0.2);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--white); transition: color 0.3s; }
.service-card:hover h3 { color: var(--gold-light); }
.service-card p { font-size: 0.92rem; color: var(--gray); line-height: 1.7; }
.service-features {
  margin-top: 20px; display: flex; flex-direction: column; gap: 8px;
}
.service-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--gray-light);
  transition: transform 0.4s ease, color 0.4s ease;
}
.service-card:hover .service-features li {
  transform: translateX(8px);
  color: var(--white);
}
.service-card:hover .service-features li:nth-child(1) { transition-delay: 0.05s; }
.service-card:hover .service-features li:nth-child(2) { transition-delay: 0.1s; }
.service-card:hover .service-features li:nth-child(3) { transition-delay: 0.15s; }
.service-card:hover .service-features li:nth-child(4) { transition-delay: 0.2s; }
.service-features li::before {
  content: '⚔'; font-size: 0.7rem; color: var(--gold);
}

/* ===== VIDEO SECTION ===== */
.video-section { background: var(--navy); padding: 100px 0; }
.video-wrapper {
  position: relative; max-width: 380px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  aspect-ratio: 9 / 16;
}
.video-wrapper video {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 20px;
}
.video-glow {
  position: absolute; inset: -2px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(200,168,78,0.2), transparent, rgba(200,168,78,0.1));
  z-index: -1;
}

/* ===== WHY US / FEATURES ===== */
.why-us { background: var(--navy-deep); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--navy-light); padding: 40px 30px;
  border-radius: 20px; border: 1px solid var(--glass-border);
  text-align: center; position: relative; overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-card::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(200,168,78,0.1) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(200, 168, 78, 0.5);
  box-shadow: 0 15px 40px rgba(200,168,78,0.15);
}
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.feature-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(200, 168, 78, 0.1); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 20px;
  animation: float-icon 3s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover .feature-icon {
  animation: none;
  transform: scale(1.2) rotate(-5deg) translateY(-5px);
  background: rgba(200, 168, 78, 0.2);
  box-shadow: 0 0 20px rgba(200,168,78,0.3);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--gray); }

/* ===== PROCESS / TIMELINE ===== */
.process { background: var(--navy); }
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 30px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--gold), transparent);
}
.timeline-item {
  display: flex; gap: 28px; margin-bottom: 48px;
  position: relative; opacity: 0; transform: translateX(-20px);
  transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(200,168,78,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(200,168,78,0.7); transform: scale(1.05); }
  100% { box-shadow: 0 0 10px rgba(200,168,78,0.3); transform: scale(1); }
}
.timeline-number {
  position: absolute; left: 0; top: 0;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  animation: pulse-glow 2.5s infinite ease-in-out;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.timeline-item:hover .timeline-number {
  animation: none;
  transform: scale(1.2);
  box-shadow: 0 0 35px var(--gold);
  background: var(--white);
}
.timeline-content {
  background: var(--navy-light); padding: 30px; border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}
.timeline-item:hover .timeline-content {
  transform: translateX(15px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(200,168,78,0.15);
}
.timeline-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--gold); transition: color 0.3s; }
.timeline-item:hover .timeline-content h3 { color: var(--gold-light); }
.timeline-content p { font-size: 0.9rem; color: var(--gray); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--navy-deep); }
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto;
  padding-bottom: 20px; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 360px; scroll-snap-align: start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 36px;
  flex-shrink: 0; transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(200,168,78,0.3);
  box-shadow: var(--shadow-gold);
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.95rem; color: var(--gray-light);
  line-height: 1.8; font-style: italic; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 700; color: var(--navy-deep);
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--gray); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--navy);
  padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,168,78,0.08), transparent 70%);
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.cta-section p {
  font-size: 1.1rem; color: var(--gray-light); max-width: 550px;
  margin: 0 auto 36px; position: relative; z-index: 1;
}
.cta-buttons { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-whatsapp {
  padding: 16px 40px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; border: none; cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 50px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--gray); max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Cinzel', serif; font-size: 0.95rem;
  color: var(--gold-light); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: var(--gray);
  margin-bottom: 10px; transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-bottom {
  text-align: center; padding-top: 30px;
  border-top: 1px solid rgba(200,168,78,0.08);
  font-size: 0.8rem; color: var(--gray);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(6,14,26,0.97);
    backdrop-filter: blur(20px);
    padding: 40px 24px; gap: 24px;
    border-bottom: 1px solid var(--glass-border);
  }
  .hamburger { display: flex; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card { min-width: 300px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
