@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --red: #D42B2B;
  --red-dark: #AA1F1F;
  --red-light: #F03C3C;
  --red-muted: rgba(212, 43, 43, 0.1);

  --dark: #0C0C15;
  --dark-2: #13131F;
  --dark-3: #1C1C2C;
  --dark-4: #252538;

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A6A;
  --text-muted: #8A8A9E;

  --gray-50: #F8F8FB;
  --gray-100: #F0F0F5;
  --gray-200: #E0E0EA;
  --gray-300: #C8C8D8;

  --white: #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --section-py: 96px;
  --container-max: 1200px;
  --container-px: 24px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  --shadow-red: 0 4px 24px rgba(212,43,43,0.25);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --topbar-height: 36px;
  --nav-height: 108px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-primary);
}
.display-1 { font-size: clamp(38px, 4.5vw, 60px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.display-2 { font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
h1 { font-size: clamp(26px, 3vw, 42px); }
h2 { font-size: clamp(21px, 2.3vw, 34px); }
h3 { font-size: clamp(16px, 1.7vw, 21px); }
h4 { font-size: 17px; }
.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--font-display);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: calc(var(--container-max) + var(--container-px) * 2);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}
.section { padding: var(--section-py) 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--dark-2); }
.section-gray { background: var(--gray-50); }
.section-red { background: var(--red); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,43,43,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--gray-300);
}
.btn-outline-dark:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   NAVIGATION
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--dark);
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-link {
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 14px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.topbar-link:first-child { border-left: 1px solid rgba(255,255,255,0.07); }
.topbar-link:hover { color: var(--white); }
.topbar-link.mec-link { color: rgba(212,43,43,0.85); }
.topbar-link.mec-link:hover { color: var(--red-light); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-phone {
  color: rgba(255,255,255,0.45);
  font-size: 11.5px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .topbar-phone { display: none; }
  .topbar-link { padding: 0 10px; font-size: 10.5px; }
}

.nav {
  position: fixed;
  top: var(--topbar-height); left: 0; right: 0;
  height: 72px;
  z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(12, 12, 21, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.nav-logo .logo-mark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.nav-logo .logo-uni { color: var(--white); }
.nav-logo .logo-xp { color: var(--red); }
.nav-logo .logo-tagline {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link .chevron { display: none !important; }
.nav-item:has(.nav-dropdown) .nav-link::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.55);
  margin-left: 5px;
  transition: transform var(--transition);
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-item:hover .nav-link::after { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s, transform 0.2s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transform: translateX(-50%) translateY(-6px);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-dropdown a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  padding-left: 20px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open,
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--dark-2);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
    align-items: stretch;
  }
  .nav-links.open .nav-dropdown,
  .nav-links.mobile-open .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.04);
    box-shadow: none;
    border: none;
    margin-top: 4px;
    display: none;
  }
  .nav-links.open .nav-item.open .nav-dropdown,
  .nav-links.mobile-open .nav-item.open .nav-dropdown { display: block; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-mark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.footer-brand .logo-uni { color: var(--white); }
.footer-brand .logo-xp { color: var(--red); }
.footer-brand .logo-tagline {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.28);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
}
.footer-contact-item .icon { color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--red-muted);
  color: var(--red);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header .label { display: block; margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 540px;
  line-height: 1.7;
}
.section-header.center p { margin: 0 auto; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 14px 0;
}
.section-header.center .divider { margin: 14px auto; }

/* ============================================
   STAT NUMBER
   ============================================ */
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red);
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-outline {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(212,43,43,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212,43,43,0.06) 0%, transparent 50%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,43,43,0.4), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { font-size: 10px; }
.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255,255,255,0.58);
  font-size: 17px;
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.7;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { animation: fadeInUp 0.7s var(--ease) both; }
.animate-fade-in { animation: fadeIn 0.7s var(--ease) both; }
.animate-slide-left { animation: slideInLeft 0.7s var(--ease) both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ============================================
   UTILITIES
   ============================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-py: 64px; --container-px: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-header.flex-between { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
