:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --accent: #8b5cf6;
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-alt: #f1f0ff;
  --text: #1e1b4b;
  --text-muted: #555570;
  --border: #e2e3ef;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(99,102,241,0.06);
  --shadow-lg: 0 8px 32px rgba(99,102,241,0.13);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ═══════ HEADER ═══════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 0;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  background: var(--surface-alt);
  color: var(--primary);
}

/* ═══════ HERO ═══════ */
.hero {
  background: linear-gradient(150deg, #0f0a2e 0%, #1e1b4b 25%, #312e81 50%, #4338ca 75%, #6366f1 100%);
  color: #fff;
  padding: 100px 28px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
}

.shape-1 {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -8%;
  animation: float1 18s ease-in-out infinite;
}

.shape-2 {
  width: 420px;
  height: 420px;
  bottom: -20%;
  left: -6%;
  animation: float2 22s ease-in-out infinite;
}

.shape-3 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 8%;
  animation: spin1 40s linear infinite;
}

.shape-4 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: 12%;
  animation: spin1 30s linear infinite reverse;
}

.shape-dots {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: float1 25s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15px, -20px) rotate(3deg); }
  66% { transform: translate(-10px, 12px) rotate(-2deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-18px, 14px) rotate(-4deg); }
  66% { transform: translate(12px, -16px) rotate(2deg); }
}

@keyframes spin1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-accent {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  opacity: 0.78;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.85;
  font-weight: 300;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px 36px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  pointer-events: none;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ═══════ MAIN ═══════ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px;
}

/* ═══════ PARTNER CARDS ═══════ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.partner-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.partner-card .partner-link {
  display: inline-block;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 5px 12px;
  background: var(--surface-alt);
  border-radius: 6px;
  margin-bottom: 14px;
  transition: all var(--transition);
  word-break: break-all;
  line-height: 1.5;
  max-width: 100%;
}

.partner-card .partner-link:hover {
  background: var(--primary);
  color: #fff;
}

.partner-card p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  flex: 1;
}

/* ═══════ SUBPAGE CONTENT ═══════ */
.page-header {
  background: linear-gradient(150deg, #312e81 0%, #4338ca 60%, #6366f1 100%);
  color: #fff;
  padding: 64px 28px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.content-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 28px;
}

.content-area p {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 1rem;
}

.content-area p:first-child::first-letter {
  font-size: 2.6em;
  font-weight: 700;
  color: var(--primary);
  float: left;
  margin: 2px 12px 0 0;
  line-height: 1;
}

/* ═══════ INTERNAL LINKS ═══════ */
.internal-links {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.internal-links h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

.internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internal-links li a {
  display: block;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.internal-links li a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
}

/* ═══════ FAQ ═══════ */
.faq-section {
  margin-top: 64px;
}

.faq-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  transition: all var(--transition);
}

.faq-item[open] summary::after {
  content: '-';
  background: var(--primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ═══════ FOOTER ═══════ */
.site-footer {
  background: #1e1b4b;
  color: rgba(255,255,255,0.5);
  padding: 36px 28px;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 56px;
}

.site-footer a {
  color: var(--primary-light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  nav {
    justify-content: center;
  }

  nav a {
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .hero {
    padding: 64px 18px 56px;
    min-height: auto;
  }

  .hero-stats {
    gap: 16px;
    padding: 14px 24px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .shape-1, .shape-2 {
    width: 280px;
    height: 280px;
  }

  .shape-3, .shape-4 {
    display: none;
  }

  .main {
    padding: 32px 16px;
  }

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

  .partner-card {
    padding: 22px 20px;
  }

  .partner-card h2 {
    font-size: 1.1rem;
  }

  .content-area {
    padding: 32px 16px;
  }

  .internal-links {
    padding: 20px;
  }

  .internal-links ul {
    gap: 6px;
  }

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

  .faq-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 5px 8px;
    font-size: 11.5px;
  }

  .partner-card .partner-link {
    font-size: 0.75rem;
  }
}
