:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary: #3b82f6;
  --primary-600: #2563eb;
  --accent: #10b981;
  --dark: #1f2937;
  --light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.content-section {
  padding: 80px 0;
  background: #ffffff;
}

.prose {
  max-width: 920px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f172a;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.prose h4 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.prose p {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.1rem;
  color: #475569;
}

.prose li {
  margin: 0.35rem 0;
}

.prose strong {
  color: #0f172a;
}

.formula {
  margin: 0.9rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.12);
  overflow-x: auto;
}

.formula code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  white-space: nowrap;
}

.table-wrap {
  margin: 0.8rem 0 1.3rem;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(2, 6, 23, 0.08);
  font-size: 0.95rem;
}

.data-table thead th {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
  font-weight: 800;
}

.data-table tbody tr:hover td {
  background: rgba(2, 6, 23, 0.02);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Perfectly Centered */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--dark);
  min-width: 240px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--primary-600);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--dark);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-link.is-active {
  color: var(--primary-600);
  background: transparent;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-600);
}

.cta-button {
  background: var(--primary-gradient);
  color: white !important;
  border: none;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero - Reduced Text Size */
.hero {
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 500px at 85% 35%, rgba(59, 130, 246, 0.20), transparent 55%),
    radial-gradient(900px 420px at 10% 20%, rgba(99, 102, 241, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 60%, #ffffff 100%);
}

.hero .container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.45rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-accent {
  -webkit-text-fill-color: initial;
  color: var(--primary-600);
}

.hero-content p {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.university-pills {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.pill-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary-600);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.pill-icon svg {
  width: 16px;
  height: 16px;
}

.hero-actions {
  margin-bottom: 1.25rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.30);
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.20);
  border: 1px solid rgba(2, 6, 23, 0.08);
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  position: absolute;
  width: min(560px, 92%);
  height: min(380px, 70%);
  background: radial-gradient(500px 200px at 70% 30%, rgba(37, 99, 235, 0.25), transparent 70%),
    radial-gradient(400px 180px at 30% 60%, rgba(99, 102, 241, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  border: 1px solid rgba(2, 6, 23, 0.06);
  filter: blur(0px);
  z-index: 0;
  transform: rotate(-2deg);
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.badge {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #ffffff 100%);
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2.25rem;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--primary-600);
  font-weight: 900;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.1rem 1.05rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35);
}

/* Features */
.features-section {
  padding: 80px 0;
  text-align: center;
}

.features-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  padding: 0.75rem;
  background: var(--primary-gradient);
  border-radius: 12px;
  color: white;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  padding: 2.5rem 0;
}

.footer p {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
  }

  .hero-image-frame {
    display: none;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.05rem;
  }
  
  .features-section h2 {
    font-size: 1.75rem;
  }

  .faq-section h2 {
    font-size: 1.6rem;
  }

  .prose h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .university-pills {
    flex-direction: column;
    align-items: center;
  }
}
