:root {
  --brand-navy: #060b26;
  --brand-deep-blue: #0a1138;
  --brand-slate-blue: #121b4e;
  --brand-accent-blue: #2563eb;
  --brand-gold: #d4af37;
  --brand-gold-hover: #c59b27;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Theme Colors (Dark Mode - Default) */
  --bg-primary: #060b26;
  --bg-secondary: #0a1138;
  --bg-card: rgba(18, 27, 78, 0.6);
  --bg-card-solid: #0f1740;
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-header: rgba(6, 11, 38, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);

  /* Typography Scale (modular 1.25 ratio) */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.3rem, 1.1rem + 1vw, 1.5rem);
  --text-3xl: clamp(1.7rem, 1.4rem + 1.5vw, 1.875rem);
  --text-4xl: clamp(2.1rem, 1.7rem + 2vw, 2.25rem);
  --text-5xl: clamp(2.5rem, 1.8rem + 3.5vw, 3rem);
  --text-6xl: clamp(3rem, 2rem + 5vw, 3.75rem);
  --text-7xl: clamp(3.5rem, 2.2rem + 6.5vw, 4.5rem);

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
}

/* Light Mode */
.light-mode {
  /* Premium "Distinctly Blue" aesthetic */
  --bg-primary: #d4e4f7;
  --bg-gradient: linear-gradient(135deg, #e5f0fc 0%, #d4e4f7 50%, #c2d8f2 100%);
  --bg-secondary: #c2d8f2;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-solid: #ffffff;
  --bg-input: rgba(255, 255, 255, 0.5);
  --bg-header: rgba(212, 228, 247, 0.85);

  /* Deep navy text for ultimate contrast & authority */
  --text-primary: #060b26;
  --text-secondary: #121b4e;
  --text-muted: #1e293b;
  --text-faint: #334155;

  /* "Expensive" micro-details: Navy-tinted shadows & borders instead of generic black/gray */
  --border-color: rgba(6, 11, 38, 0.06);
  --border-strong: rgba(6, 11, 38, 0.12);
  --shadow-color: rgba(6, 11, 38, 0.05);

  /* Elements always on dark/brand backgrounds keep light text */
  .site-footer,
  .grade-table-header,
  .dashboard-tab-active,
  .dashboard-tab-inactive:hover,
  .print-btn,
  .portal-dashboard-btn,
  .score-submit-btn,
  .mobile-nav-bg,
  .mobile-nav-close:hover {
    color: #f1f5f9;
  }

  .site-footer .footer-links-title,
  .site-footer .footer-links-list,
  .site-footer .footer-school-type,
  .site-footer .footer-school-desc,
  .site-footer .footer-contact-title,
  .site-footer .footer-contact-inner,
  .site-footer .footer-contact-item,
  .site-footer .footer-contact-item-2,
  .site-footer .footer-link {
    color: #94a3b8;
  }

  .site-footer .footer-links-title {
    color: #cbd5e1;
  }

  .site-footer .footer-contact-item i,
  .site-footer .footer-contact-item-2 i {
    color: var(--brand-gold);
  }

  /* Dropdown hover */
  .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Action tip inline code*/
  .action-tip b {
    background-color: rgba(0, 0, 0, 0.06);
  }

  /* Score table border on dark dashboard */
  .score-table-body tr {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  .score-table-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
  }

  /*  secondary CTA contrast in light mode */
  .hero-cta-secondary {
    border-color: rgba(180, 140, 20, 0.6);
    color: #1e293b;
  }

  .hero-cta-secondary:hover {
    border-color: rgba(180, 140, 20, 0.9);
    box-shadow: 0 8px 25px rgba(180, 140, 20, 0.15),
      0 0 0 3px rgba(180, 140, 20, 0.1);
  }

  /* Fix muddy hero background elements */
  .hero-logo-bg {
    mix-blend-mode: overlay;
    opacity: 0.03 !important;
    /* Very faint so it doesn't dirty the blue */
    filter: blur(2px) grayscale(100%);
  }

  .hero-glow-blur {
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 0%,
      transparent 70%
    );
    filter: blur(50px);
  }

  .hero-glow-ring-1,
  .hero-glow-ring-2 {
    border-color: rgba(255, 255, 255, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient, var(--bg-primary));
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-navy);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Animations */
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: pulseGlow 8s ease-in-out infinite;
}

.gold-shimmer {
  background: linear-gradient(90deg, #d4af37 0%, #fff 50%, #d4af37 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
}

.hidden {
  display: none !important;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .header-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 55;
}

.brand-logo-img {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.45));
}

.brand-location {
  font-size: 0.75rem;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--brand-gold);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--brand-gold);
}

.nav-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--brand-gold);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover .nav-dot {
  opacity: 1;
}

.nav-link.active {
  color: var(--brand-gold);
}

.nav-link.active .nav-dot {
  opacity: 1;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
}

.dropdown-trigger:hover {
  color: var(--brand-gold);
}

.dropdown-chevron {
  font-size: 8px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.dropdown-trigger:hover .dropdown-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-inner {
  background-color: var(--bg-card-solid);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  color: #fff;
  background-color: var(--border-color);
}

.dropdown-item-icon {
  color: rgba(212, 175, 55, 0.7);
  font-size: 0.75rem;
  width: 1rem;
  text-align: center;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-terminal-btn {
  display: none;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.5rem;
  color: var(--brand-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.05);
}

@media (min-width: 640px) {
  .results-terminal-btn {
    display: inline-flex;
  }
}

.results-terminal-btn:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
}

.portal-dashboard-btn {
  display: none;
  background: linear-gradient(90deg, var(--brand-accent-blue), #4f46e5);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
  transform: translateY(0);
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .portal-dashboard-btn {
    display: flex;
  }
}

.portal-dashboard-btn:hover {
  background: linear-gradient(90deg, var(--brand-accent-blue), #6366f1);
  transform: translateY(-2px);
}

/* ===========================================
   HAMBURGER BUTTON
   =========================================== */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  position: relative;
}

.hamburger-btn:hover {
  background-color: var(--border-color);
}

.hamburger-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line-1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

/* ===========================================
   THEME TOGGLE
   =========================================== */
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  font-size: 0.875rem;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Dark mode (default): show sun */
.theme-icon-sun {
  color: var(--brand-gold);
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-icon-moon {
  color: var(--brand-gold);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show moon */
.light-mode .theme-icon-moon {
  color: #000000;
  opacity: 1;
  transform: rotate(0) scale(1);
}

.light-mode .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.light-mode .theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .theme-toggle {
    display: flex;
  }
}

/* ===========================================
   MOBILE NAV OVERLAY
   =========================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(6, 11, 38, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100%;
  background: var(--bg-card-solid);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
    background-color 0.35s ease;
  box-shadow: -20px 0 60px var(--shadow-color);
}

.mobile-nav-overlay.active .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-nav-links {
  flex: 1;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.mobile-nav-overlay.active .mobile-nav-link {
  animation: slideInRight 0.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) {
  animation-delay: 0.25s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-link-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background-color: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mobile-nav-link-title {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.mobile-nav-link-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.125rem;
}

.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(
    90deg,
    var(--brand-gold),
    var(--brand-gold-hover)
  );
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.625rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.mobile-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.mobile-nav-powered {
  text-align: center;
  font-size: 0.65rem;
  color: #475569;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .mobile-nav-overlay {
    display: none;
  }
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  position: relative;
  z-index: 10;
  margin-top: 0;
  overflow: hidden;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 0 2rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

/* Mobile order: text → CTAs → stats → image → features */
.hero-content {
  order: 1;
  position: relative;
  z-index: 10;
}

.hero-ctas {
  order: 2;
  position: relative;
  z-index: 10;
}

.hero-stats {
  order: 3;
  position: relative;
  z-index: 10;
}

.hero-image {
  order: 4;
  position: relative;
  z-index: 1;
}

.hero-features {
  order: 5;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1.5rem;
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    order: unset;
  }

  .hero-ctas {
    grid-column: 1;
    grid-row: 2;
    order: unset;
  }

  .hero-stats {
    grid-column: 1;
    grid-row: 3;
    order: unset;
  }

  .hero-features {
    grid-column: 1;
    grid-row: 4;
    order: unset;
  }

  .hero-image {
    grid-column: 2;
    grid-row: 1 / 5;
    order: unset;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }
}

/* Hero Left */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 28px;
    gap: 0.625rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  width: fit-content;
}

@media (min-width: 768px) {
  .hero-badge {
    font-size: 0.75rem;
    gap: 0.625rem;
  }
}

.hero-badge {
  position: relative;
  overflow: hidden;
}

.hero-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

.hero-badge-ping {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: #34d399;
  opacity: 0.75;
}

.hero-badge-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
}

.hero-badge-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-badge-divider {
  height: 0.75rem;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-badge-secure {
  color: var(--brand-gold);
  font-weight: 600;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-heading {
    gap: 0;
    text-align: left;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-7xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-title-accent {
  color: var(--brand-gold);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.5;
  max-width: 35ch;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.6;
    padding-bottom: 0.125rem;
  }
}

.hero-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  /* font-weight: 300; */
  font-weight: 300;
  line-height: 1.6;
  max-width: 55ch;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--text-base);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0 0;
  position: relative;
  z-index: 10;
}

/* Full-width CTA buttons on mobile for proper touch targets */
.hero-ctas .hero-cta-primary,
.hero-ctas .hero-cta-secondary {
  flex: 1;
  justify-content: center;
  min-height: 2.875rem;
}

@media (min-width: 768px) {
  .hero-ctas {
    justify-content: flex-start;
    padding: 0;
  }

  .hero-ctas .hero-cta-primary,
  .hero-ctas .hero-cta-secondary {
    flex: none;
    min-height: unset;
  }
}

.hero-cta-primary {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.hero-cta-primary:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4),
    0 0 0 3px rgba(212, 175, 55, 0.15);
}

.hero-cta-primary:hover::before {
  left: 100%;
}

.hero-cta-primary:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.3);
  transition: all 0.08s ease;
}

.hero-cta-secondary {
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
}

.hero-cta-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.02)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-cta-secondary:hover {
  border-color: rgba(212, 175, 55, 0.8);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15),
    0 0 0 3px rgba(212, 175, 55, 0.08);
}

.hero-cta-secondary:hover::before {
  opacity: 1;
}

.hero-cta-secondary:active {
  transform: translateY(1px) scale(0.96);
  transition: all 0.08s ease;
}

.hero-cta-secondary-icon {
  color: var(--brand-gold);
  transition: transform 0.3s ease;
}

.hero-cta-secondary:hover .hero-cta-secondary-icon {
  transform: translateX(2px);
}

/* CTA Icon Swap */
.cta-icon-default {
  transition: all 0.3s ease;
}

.cta-icon-hover {
  display: none;
  transition: all 0.3s ease;
}

.hero-cta-primary:hover .cta-icon-default,
.hero-cta-secondary:hover .cta-icon-default {
  display: none;
}

.hero-cta-primary:hover .cta-icon-hover,
.hero-cta-secondary:hover .cta-icon-hover {
  display: inline-flex;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-top: 2px solid rgba(212, 175, 55, 0.15);
}

@media (min-width: 768px) {
  .hero-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .hero-feature {
    flex-direction: row;
    text-align: left;
    width: auto;
    padding: 0;
    background: none;
    border: none;
    border-top: none;
  }
}

.hero-feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.hero-feature-title {
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-feature-title {
    font-size: var(--text-sm);
  }
}

.hero-feature-desc {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-feature-desc {
    font-size: var(--text-xs);
  }
}

/* Hero Right */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.5rem;
  position: relative;
}

/* Hide decorative hero-image elements on mobile */
.hero-image .hero-glow-ring,
.hero-image .hero-glow-blur,
.hero-image .hero-building-bg {
  display: none;
}

/* EduEase Logo behind student */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 250%;
  max-width: 38rem;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  100% {
    opacity: 0.12;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-logo-bg-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: blur(1px);
}

@media (min-width: 768px) {
  .hero-logo-bg {
    max-width: 34rem;
    animation-name: logoRevealMd;
  }

  @keyframes logoRevealMd {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
      opacity: 0.08;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

@media (min-width: 1024px) {
  .hero-logo-bg {
    max-width: 72rem;
    animation-name: logoRevealLg;
  }

  @keyframes logoRevealLg {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
      opacity: 0.09;
      transform: translate(-50%, -50%) scale(1);
    }
  }
}

/* Mobile: student image */
.hero-student {
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: studentReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes studentReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-student-img {
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 2;
}

.hero-student::after {
  content: "";
  position: absolute;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1.5rem;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(8px);
}

@media (min-width: 400px) {
  .hero-student-img {
    max-width: 16rem;
  }
}

@media (min-width: 640px) {
  .hero-student-img {
    max-width: 20rem;
  }
}

@media (min-width: 768px) {
  .hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-student-img {
    max-width: 28rem;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .hero-student-img {
    max-width: 30rem;
  }
}

@media (min-width: 1280px) {
  .hero-student-img {
    max-width: 34rem;
  }
}

/* Hero Background Elements */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 80%
  );
}

.hero-accent-line {
  position: absolute;
  top: 0;
  right: 15%;
  width: 1px;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.25) 0%,
    rgba(212, 175, 55, 0) 100%
  );
  pointer-events: none;
  transform: rotate(15deg);
  transform-origin: top center;
}

@media (max-width: 767px) {
  .hero-accent-line {
    display: none;
  }
}

.hero-accent-line-bottom {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.4),
    transparent
  );
  pointer-events: none;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb 20s infinite ease-in-out alternate;
  will-change: transform;
}

.hero-orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.4) 0%,
    transparent 70%
  );
  top: -10vw;
  left: -10vw;
  animation-duration: 25s;
}

.hero-orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.3) 0%,
    transparent 70%
  );
  bottom: -10vw;
  right: -10vw;
  animation-duration: 22s;
  animation-delay: -5s;
}

.hero-orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(
    circle,
    rgba(10, 17, 56, 0.8) 0%,
    transparent 70%
  );
  top: 40%;
  left: 30%;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(5vw, -5vw) scale(1.1);
  }

  66% {
    transform: translate(-5vw, 5vw) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Hero Title Reveal Animation */
@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-line {
  display: inline-block;
  animation: heroTitleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title-accent {
  position: relative;
  display: inline-block;
  animation: heroTitleReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-title-accent-bar {
  position: absolute;
  bottom: 0.08em;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-gold),
    rgba(212, 175, 55, 0.2)
  );
  border-radius: 2px;
  transform-origin: left;
  animation: heroBarGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

@keyframes heroBarGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Floating Result Preview Card */
.hero-float-card {
  display: none;
}

@media (min-width: 768px) {
  .hero-float-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    bottom: 15%;
    left: -2rem;
    z-index: 20;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    width: 11rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    animation: heroCardFloat 5s ease-in-out infinite,
      heroCardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
  }
}

@keyframes heroCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes heroCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-float-card-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-float-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.hero-float-card-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-float-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hero-float-card-name {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.hero-float-card-score {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.hero-float-card-max {
  font-weight: 400;
  color: var(--text-faint);
}

.hero-float-card-bar-track {
  width: 100%;
  height: 3px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.hero-float-card-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-gold),
    var(--brand-accent-blue)
  );
  border-radius: 2px;
  animation: heroBarFillUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes heroBarFillUp {
  to {
    width: 97.6%;
  }
}

/* Hero Glow Rings (desktop only) */
@media (min-width: 768px) {
  .hero-image .hero-glow-ring,
  .hero-image .hero-glow-blur {
    display: block;
  }

  .hero-glow-ring {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    pointer-events: none;
  }

  .hero-glow-ring-1 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 8s ease-in-out infinite;
  }

  .hero-glow-ring-2 {
    width: 480px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(37, 99, 235, 0.05);
    animation: pulseGlow 8s ease-in-out 2s infinite;
  }

  .hero-glow-blur {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.06) 0%,
      transparent 70%
    );
    filter: blur(40px);
    pointer-events: none;
  }
}

/* Hero Stats Strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  width: fit-content;
}

@media (max-width: 767px) {
  .hero-stats {
    width: 100%;
    justify-content: space-around;
    padding: 0.75rem 1rem;
    gap: 0;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
  }
}

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

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat-unit {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--brand-gold);
}

.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 1.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  display: none;
  justify-content: center;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-scroll-indicator {
    display: flex;
  }
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--brand-gold);
  border-radius: 2px;
  margin-top: 6px;
  animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-divider {
  position: relative;
  height: 3rem;
}

.hero-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: block;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background-color: var(--brand-navy);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Footer Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 4;
  }
}

.footer-brand-logo {
  width: 100%;
  max-width: 22rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-brand-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35));
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.7;
  max-width: 16rem;
}

.footer-links {
}

@media (min-width: 768px) {
  .footer-links {
    grid-column: span 4;
  }
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-links-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-link {
  transition: color 0.3s ease;
  display: inline;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.footer-link:hover {
  color: var(--brand-gold);
}

.footer-contact {
}

@media (min-width: 768px) {
  .footer-contact {
    grid-column: span 4;
  }
}

.footer-contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-contact-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.footer-contact-address {
  line-height: 1.625;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-contact-item i {
  color: var(--brand-gold);
}

.footer-contact-item-2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item-2 i {
  color: var(--brand-gold);
}

.footer-copyright {
  border-top: 1px solid var(--border-color);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

@media (min-width: 640px) {
  .footer-copyright {
    flex-direction: row;
  }
}

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

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-link:hover {
  color: var(--brand-navy);
  background: linear-gradient(
    135deg,
    var(--brand-gold),
    var(--brand-gold-hover)
  );
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.footer-social-link:active {
  transform: scale(0.92);
}

@media (max-width: 640px) {
  .footer-brand-desc {
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }
}

/* ===========================================
   JUMP TO TOP BUTTON
   =========================================== */
.jump-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    var(--brand-gold),
    var(--brand-gold-hover)
  );
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  z-index: 40;
  opacity: 0;
  transform: translateY(1rem) scale(0.8);
  transition: all 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.jump-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.jump-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.jump-top-btn:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 640px) {
  .jump-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ===========================================
   SERVICE SECTIONS
   =========================================== */
.service-section {
  padding: 6rem 0;
  position: sticky;
  top: calc(5rem + var(--index) * 0.5rem);
  min-height: 90vh;
  background-color: transparent !important;
}

@media (min-width: 1024px) {
  .service-section {
    top: calc(6rem + var(--index) * 0.5rem);
    min-height: 70vh;
    padding: 4rem 0;
  }
}

.service-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(
    270deg,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.service-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .service-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .service-container {
    padding: 0 2rem;
  }
}

/* Glassmorphism Service Card */
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2rem;
  padding: 3rem 2rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 40px rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
}

.light-mode .service-card {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(212, 175, 55, 0.5) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(212, 175, 55, 0.9) 100%
      )
      border-box;
  box-shadow: 0 15px 35px rgba(6, 11, 38, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.light-mode .service-card:hover {
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.9) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(212, 175, 55, 0.5) 60%,
        rgba(255, 255, 255, 1) 100%
      )
      border-box;
  box-shadow: 0 30px 60px rgba(6, 11, 38, 0.08),
    0 0 40px rgba(212, 175, 55, 0.15);
  transform: translateY(-5px);
}

@media (min-width: 768px) {
  .service-card {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .service-card {
    padding: 5rem 4rem;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
  }
}

/* Alternate layout for even sections */
.service-section:nth-child(even) .service-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .service-section:nth-child(even) .service-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .service-section:nth-child(even) .service-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.service-section:nth-child(even)::before {
  right: auto;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.12) 0%,
    transparent 100%
  );
}

.service-content {
  z-index: 2;
  order: 1;
}

.service-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  order: 2;
}

@media (min-width: 768px) {
  .service-section:nth-child(even) .service-content {
    order: 2;
  }
  .service-section:nth-child(even) .service-visual {
    order: 1;
  }
}

.service-icon-large {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-accent-blue) 0%,
    var(--brand-navy) 100%
  );
  border-radius: 2rem;
  font-size: 5rem;
  color: var(--brand-gold);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
}

.service-icon-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 16px 16px;
  border-radius: inherit;
  pointer-events: none;
}

.service-icon-large::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.12) 0%,
    transparent 70%
  );
  border-radius: 9999px;
  filter: blur(20px);
  pointer-events: none;
}

.service-icon-large:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 40px rgba(212, 175, 55, 0.08);
}

.service-subtitle {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
  transition: color 0.35s ease;
}

.service-description {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 2rem;
  max-width: 35ch;
  transition: color 0.35s ease;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.35s ease, transform 0.25s ease;
  padding: 0.5rem 0;
}

.service-feature:hover {
  transform: translateX(4px);
}

.service-feature i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.service-feature:hover i {
  transform: scale(1.15);
}

/* Light mode adjustments */
.light-mode .service-section {
  background-color: transparent !important;
}

.light-mode .service-section::before {
  background: linear-gradient(
    270deg,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 100%
  );
}

.light-mode .service-section:nth-child(even)::before {
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 100%
  );
}

.light-mode .service-icon-large {
  background: linear-gradient(
    135deg,
    var(--brand-accent-blue) 0%,
    #1e40af 100%
  );
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .service-section {
    padding: 4rem 0;
  }

  .service-grid {
    gap: 2rem;
  }

  .service-icon-large {
    width: 150px;
    height: 150px;
    font-size: 3.5rem;
  }

  .service-feature:hover {
    transform: translateX(2px);
  }

  .service-title {
    font-size: var(--text-3xl);
  }

  .service-description {
    font-size: var(--text-base);
  }
}

/* ===========================================
   LMS INTERACTIVE PANEL
   =========================================== */
.lms-interactive-panel {
  background: rgba(18, 27, 78, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.light-mode .lms-interactive-panel {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.lms-interactive-panel:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.05);
}

.lms-panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.light-mode .lms-panel-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.lms-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lms-panel-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.lms-card-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lms-scenario-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.light-mode .lms-scenario-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

.lms-scenario-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.lms-actions {
  display: flex;
  gap: 0.75rem;
}

.lms-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lms-btn:active {
  transform: scale(0.97);
}

.lms-btn-automate {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #60a5fa;
}

.lms-btn-automate:hover {
  background-color: var(--brand-accent-blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.lms-btn-manual {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
  color: var(--brand-gold);
}

.lms-btn-manual:hover {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.lms-feedback-alert {
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  animation: slideInFeedback 0.3s ease;
}

@keyframes slideInFeedback {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lms-feedback-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.lms-feedback-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.lms-progress-strip {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

#lms-progress-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-faint);
}

.lms-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.light-mode .lms-progress-track {
  background: rgba(0, 0, 0, 0.05);
}

.lms-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-gold),
    var(--brand-accent-blue)
  );
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lms-completion-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleUpState 0.4s ease;
}

@keyframes scaleUpState {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lms-success-icon {
  font-size: 2.25rem;
  color: #10b981;
  margin-bottom: 0.5rem;
  animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.lms-completion-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.lms-completion-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  max-width: 250px;
}

.lms-restart-btn {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lms-restart-btn:hover {
  background: var(--brand-gold-hover);
  transform: translateY(-1px);
}

/* ===========================================
   CUSTOM SCROLLBAR
   =========================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--brand-gold),
    var(--brand-gold-hover)
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold-hover);
}

/* ===========================================
   SCROLL PROGRESS BAR
   =========================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-gold),
    var(--brand-gold-hover)
  );
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}
