/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1A2332;
  --navy-deep: #0D1520;
  --blue: #004ACC;
  --blue-hover: #003DAA;
  --blue-glow: rgba(0, 74, 204, 0.15);
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --surface: #F8F9FA;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }

/* ===== LAYOUT ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 35, 50, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.header-brand img {
  height: 32px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
}

.lang-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.lang-toggle a {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.lang-toggle a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1e2d42 0%, var(--navy-deep) 50%, #0a0f18 100%);
  color: var(--white);
  padding: 120px 0 140px;
  text-align: center;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow behind headline */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 74, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: subtlePulse 6s ease-in-out infinite;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 74, 204, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 74, 204, 0.4);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-outline:hover svg {
  transform: translateX(3px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--surface);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.section--alt .feature-card {
  background: var(--white);
}

.feature-card:hover {
  border-color: rgba(0, 74, 204, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 74, 204, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-glow);
  border-radius: 14px;
  color: var(--blue);
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 74, 204, 0.3);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ===== PORTALS ===== */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.portal-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(0, 74, 204, 0.12), 0 0 0 1px rgba(0, 74, 204, 0.12);
  transform: translateY(-4px);
}

.portal-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-glow);
  border-radius: 14px;
  color: var(--blue);
  transition: all 0.3s;
}

.portal-card:hover .portal-icon {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 74, 204, 0.3);
}

.portal-icon svg {
  width: 26px;
  height: 26px;
}

.portal-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.portal-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
  transition: gap 0.2s;
}

.portal-card:hover .portal-link {
  gap: 10px;
}

.portal-link svg {
  width: 14px;
  height: 14px;
}

/* ===== PARTNERS ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 36px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.partner-card:hover {
  border-color: rgba(0, 74, 204, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.partner-card .partner-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.partner-card img {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.partner-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.partner-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
  transition: gap 0.2s;
}

.partner-link:hover {
  gap: 10px;
}

.partner-link svg {
  width: 14px;
  height: 14px;
}

/* ===== PORTAL CTA ===== */
.portal-cta {
  position: relative;
  text-align: center;
  padding: 96px 0;
  background: linear-gradient(160deg, #1e2d42 0%, var(--navy-deep) 50%, #0a0f18 100%);
  color: var(--white);
  overflow: hidden;
}

.portal-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.portal-cta .wrap {
  position: relative;
  z-index: 1;
}

.portal-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.portal-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  margin-bottom: 36px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #F3F4F6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-white svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-white:hover svg {
  transform: translateX(3px);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.4);
  padding: 32px 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 96px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.0625rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .portal-cta {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
