/* BlockU Custom Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --dark: #0f172a;
  --dark-lighter: #1e293b;
  --dark-card: #1e293b;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--dark);
  color: #e2e8f0;
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
.nav {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-light);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(37, 99, 235, 0.15);
  color: #fff;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(30, 41, 59, 0.8);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.lang-switcher button {
  padding: 4px 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.lang-switcher button:hover {
  background: rgba(59, 130, 246, 0.15);
}
.lang-switcher button.lang-active {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #e2e8f0;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--gray-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
}
.mobile-menu a:hover { background: rgba(37, 99, 235, 0.15); color: #fff; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* Sections */
.section { padding: 5rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 50%, var(--dark) 100%);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem; }
  .hero h1 { font-size: 1.75rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.1); text-decoration: none; }

/* Cards */
.card {
  background: var(--dark-card);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Stats */
.stats-bar {
  background: var(--dark-lighter);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3rem 1.5rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  display: block;
}
.stat-label { color: var(--gray); font-size: 0.9rem; }

/* Section headings */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.badge-yellow { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.badge-gray { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* Course card */
.course-card { position: relative; }
.course-card .course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.course-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; }
.course-card .course-code { color: var(--primary-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.course-card .course-enrolled { color: var(--gray); font-size: 0.85rem; }

/* Icon wrapper */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-wrap svg { width: 24px; height: 24px; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

/* Footer */
.footer {
  background: var(--dark-lighter);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 0.95rem; }
.footer p, .footer a { color: var(--gray); font-size: 0.85rem; }
.footer a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.faq-item {
  background: var(--dark-card);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(59, 130, 246, 0.05); }
.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--gray);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* Token Distribution Bar */
.token-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  margin-bottom: 1rem;
}
.token-bar > div { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: #fff; }

/* Contact form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.flex { display: flex; }
.gap-4 { gap: 1rem; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
