:root {
  --color-background: #f8f9fc;
  --color-foreground: #0f0f12;
  --color-card: #ffffff;
  --color-muted: #f1f2f6;
  --color-muted-foreground: #6b7280;
  --color-primary: hsl(258, 70%, 62%);
  --color-primary-rgb: 124, 88, 220;
  --color-primary-foreground: #ffffff;
  --color-accent: hsl(308, 60%, 52%);
  --color-accent-rgb: 197, 68, 163;
  --color-border: #e5e7ef;
  --color-success: hsl(145, 55%, 55%);
  --radius: 0.875rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 40px rgba(124, 88, 220, 0.25);
}

.dark {
  --color-background: #080810;
  --color-foreground: #f0f0f8;
  --color-card: #111118;
  --color-muted: #1a1a28;
  --color-muted-foreground: #9ca3af;
  --color-border: #1e1e30;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
}

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

body {
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========================
   HEADER
======================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 252, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s;
}

.dark .header {
  background: rgba(8, 8, 16, 0.92);
}

.developer-banner {
  border-bottom: 1px solid rgba(124, 88, 220, 0.1);
  background: linear-gradient(to right, rgba(124, 88, 220, 0.04), rgba(197, 68, 163, 0.04));
}

.dark .developer-banner {
  border-bottom: 1px solid rgba(124, 88, 220, 0.15);
  background: rgba(124, 88, 220, 0.06);
}

.developer-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
}

.dev-text {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.dev-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.dev-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 0.5rem;
  color: white;
  box-shadow: 0 4px 12px rgba(124, 88, 220, 0.3);
}

.logo-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 60;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--color-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  background: var(--color-muted);
  color: var(--color-primary);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 280px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Models Grid in Dropdown */
.models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: var(--color-muted);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-foreground);
  transition: all 0.2s;
  cursor: default;
}

.model-tag:hover {
  background: rgba(124, 88, 220, 0.15);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.model-tag.corex {
  background: linear-gradient(to right, rgba(124, 88, 220, 0.2), rgba(197, 68, 163, 0.2));
  color: var(--color-primary);
  font-weight: 700;
  border: 1px solid rgba(124, 88, 220, 0.3);
}

/* Student Menu Dropdown */
.student-menu {
  min-width: 320px;
  padding: 0.5rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--color-foreground);
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: var(--color-muted);
  transform: translateX(-3px);
}

.dropdown-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.dropdown-item div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.item-desc {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

.soon-badge {
  padding: 0.125rem 0.5rem;
  background: rgba(255, 193, 7, 0.15);
  color: #d97706;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.new-badge {
  padding: 0.125rem 0.5rem;
  background: rgba(124, 88, 220, 0.15);
  color: var(--color-primary);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--color-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--color-muted);
  color: var(--color-primary);
}

.theme-toggle-desktop {
  display: flex;
}

.theme-toggle-mobile {
  display: none;
}

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  box-shadow: 0 4px 14px rgba(124, 88, 220, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 88, 220, 0.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  box-shadow: 0 4px 20px rgba(124, 88, 220, 0.4), 0 0 0 0 rgba(124, 88, 220, 0.2);
}

.btn-glow:hover {
  box-shadow: 0 8px 30px rgba(124, 88, 220, 0.5), 0 0 0 4px rgba(124, 88, 220, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-foreground);
}

.btn-outline:hover {
  background: var(--color-muted);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 1.875rem;
  font-size: 1.05rem;
}

/* ========================
   HERO SECTION
======================== */
.hero-section {
  padding: 5.5rem 0 7.5rem;
  position: relative;
  overflow: hidden;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}

.dark .orb {
  opacity: 0.18;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -150px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  bottom: -200px;
  left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 15px); }
}

.orb-3 {
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%); }
  33% { transform: translate(calc(-50% + 20px), calc(-50% - 20px)); }
  66% { transform: translate(calc(-50% - 15px), calc(-50% + 15px)); }
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.125rem;
  border-radius: 9999px;
  border: 1px solid rgba(124, 88, 220, 0.25);
  background: rgba(124, 88, 220, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
  backdrop-filter: blur(10px);
}

.glow-animation {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(124, 88, 220, 0.6)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 12px rgba(124, 88, 220, 0.9)); }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.subtitle {
  color: var(--color-muted-foreground);
  font-size: 1.875rem;
  font-weight: 600;
}

.hero-description {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
  line-height: 1.9;
}

.highlight-text {
  color: var(--color-primary);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.stat-card {
  padding: 1.25rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.04), rgba(197, 68, 163, 0.02));
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 88, 220, 0.25);
}

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

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.15), rgba(197, 68, 163, 0.1));
  border-radius: 0.5rem;
  color: var(--color-primary);
  margin: 0 auto 0.75rem;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Supported Models Display */
.supported-models {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.75rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.models-title {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.models-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  background: var(--color-muted);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-foreground);
  transition: all 0.25s;
  border: 1px solid transparent;
}

.model-badge:hover {
  background: rgba(124, 88, 220, 0.12);
  color: var(--color-primary);
  border-color: rgba(124, 88, 220, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 88, 220, 0.15);
}

.model-badge.special {
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.2), rgba(197, 68, 163, 0.2));
  color: var(--color-primary);
  font-weight: 700;
  border-color: rgba(124, 88, 220, 0.35);
  box-shadow: 0 2px 8px rgba(124, 88, 220, 0.15);
}

/* ========================
   SECTION COMMON
======================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.12), rgba(197, 68, 163, 0.08));
  border: 1px solid rgba(124, 88, 220, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.75;
}

/* ========================
   PRICING SECTION
======================== */
.pricing-section {
  padding: 6rem 0;
}

.pricing-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.08), rgba(197, 68, 163, 0.06));
  border: 1px solid rgba(124, 88, 220, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}

.pricing-notice svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 1.125rem;
  background: var(--color-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 88, 220, 0.2);
}

.pricing-card.popular {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: 0 8px 40px rgba(124, 88, 220, 0.2), var(--shadow-md);
  background: linear-gradient(to bottom, rgba(124, 88, 220, 0.04), var(--color-card));
}

.pricing-card.popular:hover {
  box-shadow: 0 12px 50px rgba(124, 88, 220, 0.3), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 0.3rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124, 88, 220, 0.35);
}

.pricing-header {
  margin-bottom: 1.25rem;
}

.plan-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.12), rgba(197, 68, 163, 0.08));
  border-radius: 0.625rem;
  color: var(--color-primary);
  border: 1px solid rgba(124, 88, 220, 0.2);
}

.plan-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.plan-description {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.25rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-features {
  flex: 1;
  list-style: none;
  margin-bottom: 1.5rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.check-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
  opacity: 0.85;
}

.plan-note {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  background: var(--color-muted);
  border-radius: 0.5rem;
  border-right: 3px solid var(--color-primary);
  margin-bottom: 0.75rem;
}

/* Custom Plan */
.custom-plan {
  margin-top: 2.5rem;
  padding: 2.25rem;
  border: 2px dashed rgba(124, 88, 220, 0.3);
  border-radius: 1.125rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.04), rgba(197, 68, 163, 0.03));
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: border-color 0.3s;
}

.custom-plan:hover {
  border-color: rgba(124, 88, 220, 0.5);
}

.custom-plan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.15), rgba(197, 68, 163, 0.1));
  border-radius: 0.75rem;
  color: var(--color-primary);
  flex-shrink: 0;
  border: 1px solid rgba(124, 88, 220, 0.2);
}

.custom-plan-content {
  flex: 1;
}

.custom-plan-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.custom-plan-description {
  font-size: 0.9rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

.custom-plan-text {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ========================
   BUILDER SECTION
======================== */
.builder-section {
  padding: 6rem 0;
}

.builder-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(124, 88, 220, 0.2);
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.06), rgba(197, 68, 163, 0.03), rgba(124, 88, 220, 0.06));
  padding: 3.5rem 2.5rem;
}

.builder-bg-effect {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.builder-bg-right {
  top: -5rem;
  right: -5rem;
  background: rgba(124, 88, 220, 0.18);
}

.builder-bg-left {
  bottom: -5rem;
  left: -5rem;
  background: rgba(197, 68, 163, 0.18);
}

.builder-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.builder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(124, 88, 220, 0.3);
  background: rgba(124, 88, 220, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.builder-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
  letter-spacing: -0.025em;
}

.builder-description {
  font-size: 1.05rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.builder-features {
  margin-bottom: 1.75rem;
}

.builder-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.builder-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.15), rgba(197, 68, 163, 0.1));
  border-radius: 0.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  border: 1px solid rgba(124, 88, 220, 0.2);
}

.builder-demo-card {
  border: 1px solid rgba(124, 88, 220, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.dark .builder-demo-card {
  background: rgba(17, 17, 24, 0.7);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.demo-description {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.25rem;
}

.demo-code {
  background: #0d0d1a;
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  border: 1px solid rgba(124, 88, 220, 0.2);
}

.code-tag { color: #c792ea; }
.code-content { color: #82aaff; }
.code-comment { color: #546e7a; }

/* ========================
   STEMX SECTION
======================== */
.stemx-section {
  padding: 6rem 0;
}

.stemx-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 2px solid rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.95), rgba(5, 10, 30, 0.98));
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stemx-bg-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
  pointer-events: none;
}

.stemx-glow-1 {
  top: -200px;
  right: -120px;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
}

.stemx-glow-2 {
  bottom: -200px;
  left: -120px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.stemx-logo {
  margin-bottom: 1.75rem;
}

.stemx-logo img {
  width: 200px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.stemx-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  background: linear-gradient(90deg, #00d4ff, #00ff88, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stemx-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.75rem;
}

.stemx-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.625rem;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 9999px;
  margin-bottom: 2.5rem;
  color: #fbbf24;
  font-size: 0.9rem;
  font-weight: 600;
}

.stemx-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.125rem;
  max-width: 64rem;
  margin: 0 auto 2.5rem;
}

.stemx-feature-card {
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.stemx-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.stemx-feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stemx-feature-icon.training { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.stemx-feature-icon.chatbot { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.stemx-feature-icon.image-gen { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.stemx-feature-icon.web-search { background: linear-gradient(135deg, #10b981, #059669); }
.stemx-feature-icon.image-analysis { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stemx-feature-icon.tts { background: linear-gradient(135deg, #f97316, #ea580c); }
.stemx-feature-icon.doc { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stemx-feature-icon.canva { background: linear-gradient(135deg, #00c4cc, #7b2cbf); }

.stemx-feature-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stemx-feature-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.stemx-integrations {
  margin: 0 auto 2.5rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.125rem;
  max-width: 34rem;
}

.stemx-integrations-title {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stemx-integrations-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s;
  position: relative;
  cursor: default;
}

.integration-logo:hover {
  color: #00d4ff;
  transform: scale(1.08) translateY(-2px);
}

.integration-logo span {
  font-size: 0.73rem;
  font-weight: 500;
}

.integration-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.integration-img.canva-logo {
  width: 80px;
  height: auto;
}

.notion-coming {
  position: relative;
  opacity: 0.55;
}

.integration-soon {
  position: absolute;
  top: -8px;
  right: -16px;
  padding: 0.15rem 0.4rem;
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  border-radius: 9999px;
  font-size: 0.58rem;
  font-weight: 700;
}

.stemx-more-coming {
  margin-top: 1.375rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.stemx-cta {
  display: flex;
  justify-content: center;
  gap: 1.125rem;
  flex-wrap: wrap;
}

.stemx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.875rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.01em;
}

.stemx-btn.subscribe {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.stemx-btn.subscribe:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.stemx-btn.enter {
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  color: #0a1428;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35);
}

.stemx-btn.enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.5);
  filter: brightness(1.05);
}

/* ========================
   ARDUINO SECTION
======================== */
.arduino-section {
  padding: 6rem 0;
}

.arduino-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 2px solid rgba(0, 188, 212, 0.2);
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.06), rgba(0, 150, 136, 0.03), rgba(0, 188, 212, 0.06));
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.arduino-bg-effect {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.25;
  pointer-events: none;
}

.arduino-bg-right {
  top: -100px;
  right: -100px;
  background: rgba(0, 188, 212, 0.5);
}

.arduino-bg-left {
  bottom: -100px;
  left: -100px;
  background: rgba(0, 150, 136, 0.5);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.arduino-badge {
  background: linear-gradient(to right, #00bcd4, #009688);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 188, 212, 0.35);
}

.coming-soon-tag {
  padding: 0.2rem 0.625rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.7rem;
}

.arduino-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
  background: linear-gradient(to right, #00bcd4, #26a69a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.arduino-description {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.85;
}

.arduino-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin: 0 auto 2.5rem;
}

.arduino-feature-card {
  padding: 1.75rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.arduino-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.45);
  box-shadow: 0 12px 35px rgba(0, 188, 212, 0.15);
}

.arduino-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.125rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.arduino-feature-icon.courses { background: linear-gradient(135deg, #00bcd4, #0097a7); }
.arduino-feature-icon.components { background: linear-gradient(135deg, #009688, #00796b); }
.arduino-feature-icon.chatbot { background: linear-gradient(135deg, #26a69a, #00897b); }
.arduino-feature-icon.projects { background: linear-gradient(135deg, #4db6ac, #26a69a); }

.arduino-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}

.arduino-feature-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.65;
}

.arduino-promo-text {
  padding: 1.375rem 1.75rem;
  background: rgba(0, 188, 212, 0.08);
  border-radius: var(--radius);
  max-width: 38rem;
  margin: 0 auto;
  border: 1px solid rgba(0, 188, 212, 0.2);
}

.arduino-promo-text p {
  font-size: 1rem;
  font-weight: 600;
  color: #00bcd4;
  margin: 0;
}

/* ========================
   STUDENT SECTION
======================== */
.student-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(124, 88, 220, 0.025), transparent);
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.student-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.125rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.student-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.student-card.hackathons::after { background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), transparent); }
.student-card.competitions::after { background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), transparent); }
.student-card.volunteering::after { background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), transparent); }
.student-card.scholarships::after { background: linear-gradient(135deg, rgba(124, 88, 220, 0.04), transparent); }

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.student-card:hover::after {
  opacity: 1;
}

.student-card.hackathons { border-top: 3px solid #f59e0b; }
.student-card.competitions { border-top: 3px solid #3b82f6; }
.student-card.volunteering { border-top: 3px solid #10b981; }
.student-card.scholarships { border-top: 3px solid var(--color-primary); }

.student-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-muted);
  border-radius: 0.875rem;
  margin-bottom: 1.125rem;
  position: relative;
  z-index: 1;
}

.hackathons .student-card-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.competitions .student-card-icon { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.volunteering .student-card-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.scholarships .student-card-icon { color: var(--color-primary); background: rgba(124, 88, 220, 0.1); }

.student-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.student-card-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.125rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.student-card-features {
  list-style: none;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.student-card-features li {
  font-size: 0.82rem;
  color: var(--color-muted-foreground);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}

.student-card-features li:last-child {
  border-bottom: none;
}

.student-card-features li::before {
  content: "•";
  color: var(--color-primary);
  margin-left: 0.5rem;
}

.student-card-badge {
  position: absolute;
  top: 1.125rem;
  left: 1.125rem;
  padding: 0.2rem 0.625rem;
  background: rgba(124, 88, 220, 0.1);
  color: var(--color-primary);
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(124, 88, 220, 0.2);
}

/* ========================
   PARTNERS SECTION
======================== */
.partners-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(124, 88, 220, 0.025), transparent);
}

.partners-roadmap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent), rgba(251, 191, 36, 0.4));
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.6;
}

.roadmap-node {
  position: relative;
  display: flex;
  margin-bottom: 4rem;
}

.roadmap-node:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 3rem);
}

.roadmap-node:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 3rem);
}

.node-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 10;
}

.node-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card);
  border: 3px solid var(--color-background);
  box-shadow: 0 0 0 3px var(--color-primary), var(--shadow-md);
  overflow: hidden;
}

.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hackclub-icon {
  box-shadow: 0 0 0 3px #f56565, var(--shadow-md);
}

.community-icon {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  box-shadow: 0 0 0 3px #a855f7, var(--shadow-md);
}

.soon-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  box-shadow: 0 0 0 3px #fbbf24, var(--shadow-md);
}

.node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(124, 88, 220, 0.15);
  transform: translate(-50%, -50%);
  animation: nodePulse 2.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes nodePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.node-content {
  flex: 1;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.125rem;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.node-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hackclubs-node .node-content:hover {
  border-color: rgba(245, 101, 101, 0.4);
}

.communities-node .node-content:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.node-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.node-badge {
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-badge.hackclub {
  background: rgba(245, 101, 101, 0.12);
  color: #f56565;
  border: 1px solid rgba(245, 101, 101, 0.25);
}

.node-badge.community {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.node-badge.soon {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.node-desc {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 1.375rem;
  line-height: 1.65;
}

.node-partners {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.partner-item:hover {
  border-color: var(--color-primary);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.partner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-muted);
}

.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-details {
  flex: 1;
}

.partner-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
  letter-spacing: -0.01em;
}

.partner-details span {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

.partner-status-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: statusBlink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.coming-soon-partners {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.coming-partner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem;
  background: var(--color-muted);
  border: 2px dashed var(--color-border);
  border-radius: 0.875rem;
  flex: 1;
  min-width: 100px;
  opacity: 0.5;
}

.placeholder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-muted-foreground);
}

.coming-partner-placeholder span {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

.partners-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.07), rgba(197, 68, 163, 0.04));
  border-radius: 1.125rem;
  border: 1px solid rgba(124, 88, 220, 0.18);
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 1.375rem;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(124, 88, 220, 0.35);
}

.cta-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.cta-text p {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.875rem;
  background: #25D366;
  color: white;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.cta-btn:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* ========================
   TELEGRAM SECTION
======================== */
.telegram-section {
  padding: 6rem 0;
}

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.telegram-card {
  border: 1px solid rgba(124, 88, 220, 0.15);
  border-radius: 1.125rem;
  background: linear-gradient(135deg, var(--color-card), rgba(124, 88, 220, 0.03));
  padding: 1.875rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.telegram-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 88, 220, 0.3);
}

.telegram-card-accent {
  background: linear-gradient(135deg, var(--color-card), rgba(197, 68, 163, 0.03));
  border-color: rgba(197, 68, 163, 0.15);
}

.telegram-card-accent:hover {
  border-color: rgba(197, 68, 163, 0.35);
}

.telegram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.12), rgba(197, 68, 163, 0.08));
  border-radius: 0.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 88, 220, 0.2);
}

.telegram-icon-accent {
  background: linear-gradient(135deg, rgba(197, 68, 163, 0.12), rgba(124, 88, 220, 0.08));
  color: var(--color-accent);
  border-color: rgba(197, 68, 163, 0.2);
}

.telegram-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.telegram-username {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.telegram-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.telegram-features li {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
  padding-right: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.telegram-features li::before {
  content: "•";
  margin-left: 0.5rem;
  color: var(--color-primary);
}

/* ========================
   CUSTOM PROJECTS SECTION
======================== */
.custom-projects-section {
  padding: 6rem 0;
}

.custom-projects-card {
  border: 2px solid rgba(124, 88, 220, 0.25);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.06), rgba(197, 68, 163, 0.04));
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.custom-projects-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 88, 220, 0.08), transparent 70%);
  pointer-events: none;
}

.custom-projects-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.15), rgba(197, 68, 163, 0.1));
  border-radius: 50%;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  border: 2px solid rgba(124, 88, 220, 0.2);
  box-shadow: 0 8px 24px rgba(124, 88, 220, 0.2);
  position: relative;
}

.custom-projects-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
  letter-spacing: -0.025em;
  position: relative;
}

.custom-projects-description {
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2.25rem;
  line-height: 1.8;
  position: relative;
}

/* ========================
   FOOTER
======================== */
.footer {
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to bottom, var(--color-muted), var(--color-background));
  padding: 3.5rem 0;
}

.dark .footer {
  background: linear-gradient(to bottom, rgba(24, 24, 40, 0.5), var(--color-background));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.125rem;
  letter-spacing: -0.02em;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  max-width: 24rem;
  line-height: 1.75;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 1.125rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-foreground);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.625rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-social-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: all 0.25s;
  color: white;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.footer-social-btn.whatsapp { background: #25D366; }
.footer-social-btn.whatsapp:hover { background: #1da851; }
.footer-social-btn.linkedin { background: #0077B5; }
.footer-social-btn.linkedin:hover { background: #005c8f; }
.footer-social-btn.facebook { background: #1877F2; }
.footer-social-btn.facebook:hover { background: #0d65d9; }
.footer-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.75rem;
  border-radius: 0.875rem;
  border: 1.5px solid rgba(124, 88, 220, 0.25);
  background: linear-gradient(135deg, rgba(124, 88, 220, 0.07), rgba(197, 68, 163, 0.05));
  box-shadow: var(--shadow-sm);
}

.developer-credit svg {
  color: var(--color-primary);
}

.developer-info {
  text-align: center;
}

.developer-label {
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.developer-name {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s;
  display: block;
  margin-top: 0.125rem;
}

.developer-name:hover {
  opacity: 0.75;
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
  font-weight: 500;
}

/* ========================
   CHATBOT WIDGET
======================== */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  font-family: inherit;
}

.chatbot-toggle {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(124, 88, 220, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(124, 88, 220, 0.55);
}

.chatbot-window {
  position: absolute;
  bottom: 5rem;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1.125rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatbotSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  display: flex;
}

@keyframes chatbotSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.chatbot-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.375rem;
  transition: background 0.2s;
  display: flex;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 300px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-message {
  display: flex;
  max-width: 85%;
}

.chatbot-message.bot { align-self: flex-start; }
.chatbot-message.user { align-self: flex-end; }

.chatbot-message .message-content {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.chatbot-message.bot .message-content {
  background: var(--color-muted);
  border-bottom-right-radius: 0.25rem;
  color: var(--color-foreground);
}

.chatbot-message.user .message-content {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(124, 88, 220, 0.3);
}

.chatbot-suggestions {
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-muted);
}

.suggestion-btn {
  padding: 0.45rem 0.875rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.73rem;
  color: var(--color-foreground);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
}

.suggestion-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(124, 88, 220, 0.25);
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-card);
}

.chatbot-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 88, 220, 0.1);
}

.chatbot-input::placeholder {
  color: var(--color-muted-foreground);
}

.chatbot-send {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(124, 88, 220, 0.3);
}

.chatbot-send:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(124, 88, 220, 0.4);
}

/* Chatbot Contact Buttons */
.chatbot-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.chatbot-contact-btn.whatsapp { background: #25D366; color: white; }
.chatbot-contact-btn.whatsapp:hover { background: #1da851; transform: scale(1.05); }
.chatbot-contact-btn.linkedin { background: #0077B5; color: white; }
.chatbot-contact-btn.linkedin:hover { background: #005c8f; transform: scale(1.05); }
.chatbot-contact-btn.builder { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; }
.chatbot-contact-btn.builder:hover { transform: scale(1.05); }
.chatbot-contact-btn.facebook { background: #1877F2; color: white; }
.chatbot-contact-btn.facebook:hover { background: #0d65d9; transform: scale(1.05); }
.chatbot-contact-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.chatbot-contact-btn.instagram:hover { transform: scale(1.05); }

.chatbot-buttons-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

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

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .container { padding: 0 1rem; }

  .hero-title { font-size: 2.1rem; }
  .subtitle { font-size: 1.25rem; }
  .section-title { font-size: 1.875rem; }
  .builder-title { font-size: 1.875rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-plan {
    flex-direction: column;
    text-align: center;
  }

  .theme-toggle-desktop { display: none; }
  .theme-toggle-mobile { display: flex; }

  .mobile-menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 290px;
    background: var(--color-background);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 56;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .nav.active { right: 0; }

  .nav-link,
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    visibility: visible;
    max-height: 500px;
    padding: 0.75rem 0;
  }

  .student-menu { min-width: 100%; }
  .models-grid { padding: 0.5rem; }

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

  /* Partners Roadmap Mobile */
  .roadmap-line { left: 30px; }

  .roadmap-node {
    flex-direction: column !important;
    padding-left: 80px !important;
    padding-right: 0 !important;
  }

  .node-marker { left: 30px; }
  .node-icon { width: 48px; height: 48px; }

  .node-content { padding: 1.375rem; }

  .node-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .partner-item { flex-wrap: wrap; }

  .partner-status { width: 100%; margin-top: 0.5rem; justify-content: flex-start; }

  .coming-soon-partners { flex-direction: column; }

  .partners-cta {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-content { flex-direction: column; }
  .cta-btn { width: 100%; justify-content: center; }

  .stemx-card { padding: 2.25rem 1.5rem; }
  .stemx-title { font-size: 1.5rem; }
  .stemx-features-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stemx-feature-card { padding: 1rem; }
  .stemx-feature-card h3 { font-size: 0.82rem; }
  .stemx-feature-card p { font-size: 0.75rem; }
  .stemx-notice { font-size: 0.8rem; padding: 0.75rem 1rem; }
  .stemx-cta { flex-direction: column; }
  .stemx-btn { width: 100%; justify-content: center; }

  .arduino-title { font-size: 1.75rem; }
  .arduino-features-grid { grid-template-columns: 1fr; }
  .arduino-container { padding: 2.25rem 1.5rem; }

  /* Chatbot Mobile */
  .chatbot-widget {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .chatbot-toggle { width: 3.25rem; height: 3.25rem; }

  .chatbot-window {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 85vh;
  }

  .chatbot-messages { max-height: calc(85vh - 180px); }

  .pricing-notice {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
  }

  .builder-container { padding: 2.25rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stemx-features-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
}
