:root {
  --sf: 'Space Grotesk', sans-serif;
  --bf: 'Inter', sans-serif;
  --deep-sea: #0a1628;
  --purple: #8b5cf6;
  --blue: #00adff;
  --mint: #00d9c0;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;

  /* HubSpot dark theme — Cross-Page Spec §8.1 */
  --hsf-global__font-family: 'Inter', sans-serif;
  --hsf-global__font-size: 14px;
  --hsf-global__color: #d1d5db;
  --hsf-global-error__color: #f87171;
  --hsf-background__background-color: transparent;
  --hsf-background__border-color: transparent;
  --hsf-background__border-radius: 0px;
  --hsf-background__padding: 0px;
  --hsf-field-input__background-color: rgba(255, 255, 255, 0.1);
  --hsf-field-input__border-color: rgba(255, 255, 255, 0.2);
  --hsf-field-input__border-radius: 8px;
  --hsf-field-input__color: #ffffff;
  --hsf-field-input__font-size: 16px;
  --hsf-field-input__placeholder-color: #9ca3af;
  --hsf-field-label__color: #d1d5db;
  --hsf-field-label__font-size: 14px;
  --hsf-button__background-color: rgba(139, 92, 246, 0.8);
  --hsf-button__color: #ffffff;
  --hsf-button__border-color: rgba(139, 92, 246, 0.5);
  --hsf-button__border-radius: 8px;
  --hsf-button__font-family: 'Inter', sans-serif;
  --hsf-button__font-size: 14px;
  --hsf-button__font-weight: 500;
  --hsf-button--hover__background-color: #8b5cf6;
  --hsf-button--hover__color: #ffffff;
  --hsf-button--hover__border-color: #8b5cf6;
  --hsf-legal-consent__color: #9ca3af;
  --hsf-legal-consent__font-size: 12px;
  --hsf-rich-text__color: #9ca3af;
  --hsf-rich-text__font-size: 12px;
  --hsf-row__vertical-spacing: 16px;
  --hsf-module__vertical-spacing: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--bf);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-300);
  background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ===== ACCESSIBILITY ===== */
a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; background: var(--purple); color: white; border-radius: 8px; font-family: var(--bf); font-size: 0.875rem; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== GRADIENT TEXT ===== */
.grad-text {
  color: #8b5cf6;
  background: linear-gradient(90deg, #8b5cf6 0%, #00adff 50%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (forced-colors: active) {
  .grad-text { -webkit-text-fill-color: currentColor; background: none; color: LinkText; }
}

/* ===== LAYOUT ===== */
.ge-container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.ge-container--narrow { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.ge-container--mid { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* ===== AMBIENT BACKGROUNDS ===== */
.ge-ambient-1 { position: fixed; inset: 0; background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 50%); pointer-events: none; z-index: 0; }
.ge-ambient-2 { position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.04) 0%, transparent 50%); pointer-events: none; z-index: 0; }

/* ===== PRIMARY BUTTON ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--bf);
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: rgba(139,92,246,0.8);
  border: 1px solid rgba(139,92,246,0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.3); }
.btn-primary .btn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #00adff);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover .btn-fill { transform: translateX(0); }
.btn-primary .btn-text { position: relative; z-index: 1; }
.btn-primary .btn-arrow { position: relative; z-index: 1; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ===== SECONDARY BUTTON ===== */
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--bf);
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  overflow: visible;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-secondary .btn-border-static {
  position: absolute; inset: 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: opacity 0.3s; pointer-events: none;
}
.btn-secondary:hover .btn-border-static { opacity: 0; }
.btn-secondary .border-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.btn-secondary .border-svg rect {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s ease-out;
}
.btn-secondary:hover .border-svg rect { stroke-dashoffset: 0; }
.btn-secondary .btn-glow {
  position: absolute; inset: 0; border-radius: 8px;
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.btn-secondary:hover .btn-glow { opacity: 1; }
.btn-secondary .btn-text { position: relative; z-index: 1; }
.btn-secondary .btn-arrow { position: relative; z-index: 1; transition: transform 0.3s; }
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ===== GLASS CARD (standard) ===== */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}

/* ===== HERO ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1200px) {
  .ge-container,
  .ge-container--narrow,
  .ge-container--mid { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-illustration { display: none; }
}

/* ===== BACK LINK ===== */
.ge-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--bf);
  font-size: 0.875rem;
  font-weight: 400;
  color: #d1d5db;
  background: transparent;
  transition: all 0.3s;
}
.ge-back-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}
.ge-back-link .back-arrow {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.3s;
}
.ge-back-link:hover .back-arrow {
  transform: rotate(180deg) translateX(4px);
}

/* ===== COURSE PREVIEW CARDS (Feature Card — Light Glass, horizontal) ===== */
.course-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .course-preview-grid { grid-template-columns: 1fr; }
}
.course-preview-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  backdrop-filter: none;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
}
.course-preview-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.course-preview-card .card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 1;
}
.course-preview-card:hover .card-glow { opacity: 1; }
.course-preview-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.course-preview-card .card-body {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.course-preview-card h3 {
  font-family: var(--sf);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.course-preview-card h3 span {
  display: block;
  font-weight: 400;
  color: var(--gray-300);
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}
@media (max-width: 400px) {
  .course-preview-card { grid-template-columns: 100px 1fr; }
}

/* ===== GRADIENT DIVIDER ===== */
.ge-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4) 20%, rgba(0,173,255,0.4) 50%, rgba(0,217,192,0.4) 80%, transparent);
}

/* ===== NEURAL CANVAS ===== */
#neuralCanvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}