@font-face {
  font-family: "Platform";
  src: url("assets/fonts/Platform-Medium-Web-v0.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Platform";
  src: url("assets/fonts/Platform-Medium-Web-v0.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-bump: 2px;
  --color-bg: #ffffff;
  --color-bg-alt: #ffffff;
  --color-primary: #44f5e0;
  --color-secondary: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #22c55e;
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-full: 999px;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.06);
}

html {
  font-size: calc(16px + var(--font-bump));
  overflow-x: hidden;
  width: 100%;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  font-family: "Platform", "Platform-fallback", "Platform-fallback-android",
    "Noto Sans", "NotoSans-fallback", "NotoSans-fallback-android", sans-serif;
  color: var(--color-secondary);
  background: var(--color-bg);
}

/* Fixed action buttons - Enroll (round) above WhatsApp, bottom-right */
.float-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-actions .whatsapp-float {
  position: static;
}

/* Round Enroll button above WhatsApp */
.float-btn-enroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #44f5e0 0%, #c026d3 50%, #7c3aed 100%);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(68, 245, 224, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: enroll-gradient-shift 4s ease infinite;
  position: relative;
  overflow: hidden;
}

.float-btn-enroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 48%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: enroll-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

.float-btn-enroll:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(68, 245, 224, 0.5);
  color: #fff;
}

.float-btn-enroll:active {
  transform: scale(0.98);
}

/* WhatsApp contact float - inside .float-actions */
.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float:active {
  transform: scale(0.98);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Enrollment modal – mobile-responsive form */
.enroll-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}

.enroll-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.enroll-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.25rem 1.75rem;
  margin: auto;
}

.enroll-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.enroll-modal-close:hover {
  color: var(--color-secondary);
  background: rgba(0, 0, 0, 0.06);
}

.enroll-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  line-height: 1.3;
  color: var(--color-secondary);
}

.enroll-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.enroll-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
}

.enroll-field .req {
  color: #dc2626;
}

.enroll-field input,
.enroll-field select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: #fff;
  color: var(--color-secondary);
  font-family: inherit;
}

.enroll-field input:focus,
.enroll-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(68, 245, 224, 0.2);
}

.enroll-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

/* Phone code dropdown only – 30% width */
.enroll-phone-row select.enroll-code,
.enroll-field select[name="phone_code"] {
  width: 30%;
  min-width: 90px;
  flex-shrink: 0;
}

.enroll-phone-row input {
  flex: 1;
  min-width: 0;
}

.enroll-coupon-toggle-wrap {
  margin-top: 0.25rem;
}

.enroll-coupon-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.enroll-coupon-toggle:hover {
  color: #e11d8b;
}

.enroll-coupon-box {
  margin-top: -0.5rem;
}

.enroll-coupon-row {
  display: flex;
  gap: 0.5rem;
}

.enroll-coupon-row input {
  flex: 1;
  min-width: 0;
}

.btn-enroll-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.btn-enroll-sm:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-enroll-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  background: linear-gradient(135deg, #44f5e0 0%, #c026d3 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(68, 245, 224, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-enroll-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(68, 245, 224, 0.45);
  color: #fff;
}

.auth-body {
  background: radial-gradient(circle at top left, #ffe4f0, #f9fafb 55%);
}

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

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

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

/* Header */
@keyframes banner-slide-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes banner-code-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.5); }
}

@keyframes banner-icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.top-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 200% 100%;
  color: #e2e8f0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: banner-slide-in 0.5s ease-out, enroll-gradient-shift 5s ease infinite;
}

/* Moving light sweep – same effect as Enroll button */
.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: enroll-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.top-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 2.5rem 0.5rem 0;
  position: relative;
  flex-wrap: wrap;
}

.top-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(68, 245, 224, 0.2);
  color: #44f5e0;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  animation: banner-icon-pulse 2s ease-in-out infinite;
}

.top-banner-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(to bottom, #0d47a1 50%, #ffeb3b 50%);
  flex-shrink: 0;
}

.top-banner-text {
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.top-banner-text strong {
  color: #fff;
  font-weight: 600;
}

.top-banner-code {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0 0.15rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: #fbbf24;
  border-radius: 4px;
  border: none;
  animation: banner-code-glow 2.5s ease-in-out infinite;
  transition: transform 0.2s;
}

.top-banner-code:hover {
  transform: scale(1.04);
}

.top-banner-cta {
  margin-left: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.top-banner-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: scale(1.03);
}

.top-banner-link {
  margin-left: 0.4rem;
  text-decoration: underline;
  color: #e5e7eb;
  font-weight: 500;
}

.top-banner-link:hover {
  color: #ffffff;
}

.top-banner-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s;
}

.top-banner-close:hover {
  color: #e2e8f0;
}

.top-banner-hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: #111827;
  color: #f9fafb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.50rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.logo span {
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}

.main-nav a {
  color: #e5e7eb;
  font-weight: 500;
}

.main-nav a:hover {
  color: #ffffff;
}

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

.btn {
  border-radius: var(--radius-full);
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
}

.btn-dark {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  background: #111827;
  color: #f9fafb;
}

.btn-secondary:hover {
  background: #020617;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.55);
  color: #f9fafb;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.03);
}

.full-width {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  padding: 6px 8px;
}

.nav-toggle span {
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  transform-origin: center;
  transition: all 0.18s ease-out;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  background: var(--color-primary);
  color: #111827;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.2vw + 1.7rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0.65rem 0 0.9rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.4rem;
}

.hero-cta {
  margin-top: 0;
}

/* Enroll now – abstract highlight animation */
.btn-enroll {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #44f5e0 0%, #c026d3 50%, #7c3aed 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  font-weight: 600;
  animation: enroll-gradient-shift 4s ease infinite;
  box-shadow: 0 8px 24px rgba(68, 245, 224, 0.4);
}

.btn-enroll::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: enroll-shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-enroll:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(68, 245, 224, 0.5);
  color: #fff;
}

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

@keyframes enroll-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes enroll-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.hero-card-stack::before,
.hero-card-stack::after {
  content: "";
  position: absolute;
  inset: 12px -16px auto;
  border-radius: 18px;
  background: #faccf0;
  z-index: 0;
}

.hero-card-stack::after {
  inset: 24px -32px auto;
  background: #f9a8d4;
}

.hero-main-img {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.chem-atom {
  position: absolute;
  width: 160px;
  height: 160px;
  opacity: 0.28;
  pointer-events: none;
}

.chem-atom-hero {
  right: 6%;
  top: 10%;
}

.chem-atom-lab {
  display: none;
}

.chem-atom-footer {
  display: none;
}

.chem-tube {
  position: absolute;
  width: 80px;
  height: 140px;
  right: 4%;
  bottom: -20px;
  opacity: 0.3;
  pointer-events: none;
}

.chem-tube-glass {
  position: absolute;
  inset: 20px 18px 0 18px;
  border-radius: 18px 18px 8px 8px;
  border: 2px solid rgba(15, 23, 42, 0.7);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(148, 163, 184, 0.2));
  overflow: hidden;
}

.chem-tube-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, #22c55e, #a7f3d0);
  animation: chem-liquid 5s ease-in-out infinite alternate;
}

.chem-tube-bubble {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: chem-bubble 3s linear infinite;
}

.chem-tube-bubble:nth-child(2) {
  left: 35%;
  animation-delay: 0.6s;
}

.chem-tube-bubble:nth-child(3) {
  left: 65%;
  animation-delay: 1.2s;
}

@keyframes chem-liquid {
  0% {
    height: 40%;
  }
  100% {
    height: 55%;
  }
}

@keyframes chem-bubble {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
}

.chem-nucleus {
  position: absolute;
  inset: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at top left, #f97316, #facc15);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
}

.chem-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.25);
  animation: chem-spin 16s linear infinite;
}

.chem-orbit-2 {
  transform: rotate(60deg);
  animation-duration: 18s;
}

.chem-orbit-3 {
  transform: rotate(120deg);
  animation-duration: 20s;
}

.chem-orbit span {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #0f172a;
}

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

/* Hero scroll ticker – text moving left */
.hero-ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 0.6rem 0;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-ticker-track {
  display: inline-flex;
  animation: hero-ticker-scroll 18s linear infinite;
  white-space: nowrap;
}

.hero-ticker-text {
  padding-right: 3rem;
  flex-shrink: 0;
}

/* Request free demo – fixed bottom-left (footer side), opens enroll modal */
.demo-cta-fixed {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  pointer-events: none;
}

.demo-cta-fixed .demo-cta {
  pointer-events: auto;
}

.demo-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: auto;
  max-width: 320px;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #44f5e0 0%, #c026d3 40%, #7c3aed 100%) border-box;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(68, 245, 224, 0.35), 0 0 0 0 rgba(68, 245, 224, 0.5);
  animation: demo-cta-glow 1.8s ease-in-out infinite;
  overflow: hidden;
}

.demo-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%, transparent 100%);
  background-size: 200% 100%;
  animation: demo-cta-shine 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes demo-cta-shine {
  0%, 100% { background-position: 150% 0; }
  50% { background-position: -50% 0; }
}

@keyframes demo-cta-glow {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(68, 245, 224, 0.35), 0 0 0 0 rgba(68, 245, 224, 0.4);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(68, 245, 224, 0.5), 0 0 0 5px rgba(68, 245, 224, 0.15);
    filter: brightness(1.05);
  }
}

.demo-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(68, 245, 224, 0.5), 0 0 0 6px rgba(68, 245, 224, 0.2);
  filter: brightness(1.08);
  animation: none;
}

.demo-cta:active {
  transform: scale(0.97);
}

.demo-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #44f5e0 0%, #7c3aed 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(68, 245, 224, 0.5);
}

.demo-cta-icon svg {
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

.demo-cta-text {
  text-align: center;
}

.demo-cta-free {
  display: inline-block;
  padding: 0.1em 0.35em;
  margin: 0 0.05em;
  background: linear-gradient(135deg, #44f5e0 0%, #c026d3 100%);
  color: #fff;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 6px rgba(68, 245, 224, 0.4);
}

.demo-cta-hint {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

@media (min-width: 380px) {
  .demo-cta-hint {
    display: inline;
    width: auto;
    margin-top: 0;
    margin-left: 0.25rem;
    font-weight: 500;
  }
}

/* Raise above mobile footer nav when visible */
@media (max-width: 768px) {
  .demo-cta-fixed {
    bottom: 60px;
  }
}

@keyframes hero-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 2rem 0 1.75rem;
  font-size: 0.9rem;
}

.hero-stat .stat-number {
  font-weight: 700;
}

.hero-stat .stat-label {
  color: var(--color-muted);
}

/* Sections */
.section-header {
  margin-bottom: 1.4rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.subjects {
  padding: 1.5rem 0 1.5rem;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.subject-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.subject-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subject-icon::before {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 14px;
  height: 12px;
  border-radius: 0 0 6px 6px;
  border: 2px solid #111827;
  border-top: none;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.35), transparent);
}

.subject-icon::after {
  content: "";
  position: absolute;
  bottom: 15px;
  width: 10px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  border: 2px solid #111827;
  border-bottom: none;
}

.subject-text {
  flex: 1 1 auto;
}

.subject-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.subject-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.subject-arrow {
  font-size: 1.2rem;
}

.link-button {
  margin-top: 1rem;
  border: none;
  background: none;
  padding: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.how-it-works {
  padding: 2.5rem 0 1.5rem;
}

.how-title {
  font-size: 1.8rem;
  margin: 0 0 1.4rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.step-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.step-label {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card::before {
  content: "H\u2082O";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.12);
  font-weight: 600;
}

.step-label-1 {
  background: #bbf7d0;
}

.step-label-2 {
  background: #fee2e2;
}

.step-label-3 {
  background: #e0f2fe;
}

/* Lab equipment working models */
.lab-models {
  padding: 2rem 0 2.5rem;
}

.lab-title {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lab-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.lab-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.lab-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.lab-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.lab-icon-flask::before,
.lab-icon-flask::after {
  content: "";
  position: absolute;
  border: 2px solid #0f172a;
}

.lab-icon-flask::before {
  bottom: 7px;
  width: 18px;
  height: 12px;
  border-radius: 0 0 8px 8px;
  border-top: none;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.4), transparent);
}

.lab-icon-flask::after {
  bottom: 17px;
  width: 10px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}

.lab-icon-microscope::before,
.lab-icon-microscope::after {
  content: "";
  position: absolute;
  background: #0f172a;
}

.lab-icon-microscope::before {
  width: 5px;
  height: 16px;
  transform: rotate(-20deg);
  border-radius: 3px;
}

.lab-icon-microscope::after {
  bottom: 10px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.lab-icon-atom::before,
.lab-icon-atom::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.8);
}

.lab-icon-atom::before {
  width: 22px;
  height: 22px;
}

.lab-icon-atom::after {
  width: 22px;
  height: 22px;
  transform: rotate(60deg);
}

.lab-icon-atom span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0f172a;
}

/* Molecular band near footer */
.molecular-band {
  padding: 2rem 0 2.2rem;
  background: #f9fafb;
}

.molecular-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.molecular-text h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.molecular-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.molecular-graphic {
  position: relative;
  width: 180px;
  height: 120px;
  margin-left: auto;
  transform-origin: 50% 50%;
}

.molecular-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes mol-orbit {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(4deg);
  }
  100% {
    transform: translateY(0) rotate(-4deg);
  }
}

.molecular-graphic {
  animation: mol-orbit 8s ease-in-out infinite;
}

.progress-section {
  padding: 2.5rem 0 2rem;
}

.progress-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.progress-text {
  text-align: center;
}

.progress-text h2 {
  font-size: clamp(28px, 4.6vw, calc(50px + var(--font-bump)));
  font-weight: 700;
  margin: 0 0 0.5rem;
  white-space: nowrap;
}

.progress-subtitle {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.progress-highlight {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.progress-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.progress-media img {
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

/* Progress heading (text) */
.progress-heading {
  position: relative;
  padding: 2.25rem 0 1.25rem;
  background: #ffffff;
}

.progress-heading-inner {
  text-align: center;
}

.progress-heading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Big abstract chemistry formulas – vertical, left (front) side, scroll section */
.progress-heading-chem {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  writing-mode:  vertical-rl;
  transform:scale(-1);
  text-orientation: mixed;
  font-size: 150px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
      color: rgb(17 24 39 / 25%);
  line-height: 1.4;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  white-space: nowrap;
  pointer-events: none;
}

.progress-heading-chem sub {
  font-size: 0.6em;
  vertical-align: sub;
  font-weight: 600;
}

.progress-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Proven progress carousel */
.pp-carousel {
  padding: 1.5rem 0 2.25rem;
  background: #ffffff;
}

.pp-carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

/* FAQ section */
.faq {
  padding: 2.5rem 0 2.75rem;
  background: #f9fafb;
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.faq-visual {
  position: relative;
}

.faq-image-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-content {
  position: relative;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
  background: #0f172a;
  color: #f9fafb;
}

.faq-answer {
  padding: 0 1rem 0.85rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.faq-answer p {
  margin: 0;
}

.pp-center {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pp-stage {
  position: relative;
  min-height: 360px;
}

.pp-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.pp-slide.is-active {
  display: grid;
}

.pp-left {
  display: flex;
  justify-content: center;
}

.pp-stack {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
}

.pp-stack::before,
.pp-stack::after {
  content: "";
  position: absolute;
  inset: 14px auto auto -22px;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #f3f4f6;
  z-index: 0;
  pointer-events: none;
}

.pp-stack::after {
  inset: 28px auto auto -44px;
  opacity: 0.9;
}

.pp-stack img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.pp-right h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pp-sub {
  margin: 0 0 1.1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.pp-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pp-dots-global {
  justify-content: center;
}

.pp-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
}

.pp-dot.is-active {
  background: var(--color-primary);
}

.pp-arrow {
  position: relative;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: #111827;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

.pp-arrow:hover {
  transform: translateY(-1px);
}

.pp-arrow:active {
  transform: translateY(0);
}

.lessons-banner {
  background: var(--color-primary);
  color: #111827;
  padding: 2rem 0;
}

.lessons-inner h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.lessons-inner p {
  margin: 0;
  font-size: 0.95rem;
}

.become-tutor {
  padding: 2.5rem 0 3rem;
}

.become-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.become-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.become-content {
  background: #f8358c;
  color: #111827;
  padding: 2rem 2rem 2.2rem;
}

.become-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.become-content p {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
}

.become-content ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  font-size: 0.95rem;
}

.become-content li + li {
  margin-top: 0.15rem;
}

.become-content .btn-dark {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Mobile app-style bottom navigation (shown only on mobile) */
.mobile-footer-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    align-items: center;
    justify-content: space-around;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
    min-width: 0;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:focus {
    color: var(--color-primary);
  }

  .mobile-nav-item.is-active {
    color: var(--color-primary);
  }

  .mobile-nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .mobile-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Reserve space above fixed bottom nav so content isn't hidden */
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Video section – more videos in a line, arrows (left half, center full, right half) */
.video-section {
  padding: 3rem 0 3.5rem;
  background: #ffffff;
}

.video-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #000000;
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.video-carousel-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-carousel-stage {
  overflow: hidden;
  width: 100%;
}

.video-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease-out;
  width: max-content;
}

.video-carousel-slide {
  flex: 0 0 480px;
  width: 480px;
  min-width: 0;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.video-carousel-slide .video-frame {
  position: relative;
  width: 480px;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.video-carousel-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.video-carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.video-carousel-arrow:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.video-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 4px;
}

.video-placeholder-text {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .video-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
  }
  .video-carousel-slide .video-frame {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 480 / 360;
    margin: 0 auto;
  }
  .video-carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  .faq-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-visual {
    order: -1;
  }
}

/* Footer */
.site-footer {
  margin-top: 1rem;
  background: #020617;
  color: #e5e7eb;
  padding: 2.5rem 0 1.8rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

/* Auth page */
.auth-main {
  padding: 2.5rem 0 2.5rem;
}

.auth-container {
  max-width: 880px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.8rem 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

.auth-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.auth-carousel .pp-stage {
  min-height: 200px;
}

.auth-carousel .pp-slide {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.auth-carousel .pp-left-only {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.auth-carousel .pp-left-only img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-carousel .pp-arrow {
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
}

.auth-form-wrap h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.auth-sub {
  margin: 0 0 1.2rem;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.auth-field span {
  font-weight: 600;
  color: var(--color-muted);
}

.auth-field input {
  border-radius: 3px;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-link {
  color: #111827;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.auth-footer-text {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .auth-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .auth-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-carousel .pp-arrow {
    display: none;
  }

  .auth-carousel .pp-slide,
  .auth-carousel .pp-slide.is-active {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Student dashboard */
.student-dashboard-body {
  background: #f1f5f9;
}

.student-dashboard-header .student-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 0.35rem 0.6rem;
  background: rgba(68, 245, 224, 0.1);
  border-radius: 6px;
  color: var(--color-primary);
}

.student-dashboard-main {
  padding: 1.5rem 0 2.5rem;
}

.student-dashboard-container {
  max-width: 1000px;
}

.student-profile-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 1.5rem;
}

.student-profile-photo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(68, 245, 224, 0.3);
}

.student-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-profile-info {
  flex: 1;
  min-width: 0;
}

.student-profile-name {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.student-profile-meta {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.student-profile-id {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  opacity: 0.9;
}

.student-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.student-stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.student-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.student-stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.student-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.student-dashboard-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.student-dashboard-card-wide {
  grid-column: 1 / -1;
}

.student-card-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.student-schedule-list,
.student-list,
.student-announcements {
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-schedule-list li,
.student-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.student-schedule-list li:last-child,
.student-list li:last-child {
  border-bottom: none;
}

.schedule-time {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.schedule-subject {
  font-weight: 500;
  color: var(--color-secondary);
}

.schedule-empty .schedule-subject {
  color: var(--color-muted);
  font-weight: 400;
}

.student-list-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.student-announcements li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 1rem;
}

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

.announce-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  flex-shrink: 0;
  width: 3rem;
}

.student-announcements p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.student-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.student-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.student-link:hover {
  background: rgba(68, 245, 224, 0.15);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .student-profile-card {
    flex-direction: column;
    text-align: center;
  }

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

  .student-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-dashboard-card-wide {
    grid-column: 1;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}

.footer-logo-block {
  max-width: 260px;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-text {
  margin: 0;
  color: #9ca3af;
  max-width: 18rem;
}

.footer-multi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-group h4 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.footer-group a {
  display: block;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-links-band {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 1.2rem;
  padding: 1.2rem 0;
}

.footer-links-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.site-footer::before {
  content: "Na · Cl · H\u2082O · CO\u2082";
  position: absolute;
  top: 16px;
  right: 120px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(148, 163, 184, 0.25);
}

.footer-beakers {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 120px;
  height: 50px;
  pointer-events: none;
  opacity: 0.3;
}

.footer-beakers::before,
.footer-beakers::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 26px;
  height: 24px;
  border-radius: 4px 4px 6px 6px;
  border: 2px solid rgba(248, 250, 252, 0.85);
  border-top: none;
}

.footer-beakers::before {
  left: 8px;
  background: linear-gradient(to top, rgba(56, 189, 248, 0.8), transparent);
}

.footer-beakers::after {
  left: 52px;
  background: linear-gradient(to top, rgba(244, 63, 94, 0.8), transparent);
}

.footer-column-small h5 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column-small a {
  display: block;
  color: #e5e7eb;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #e5e7eb;
}

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

/* Enhanced molecular animation */
.molecular-graphic {
  position: relative;
  width: 180px;
  height: 120px;
  margin-left: auto;
  transform-origin: 50% 50%;
  animation: mol-orbit 8s ease-in-out infinite;
}

.mol-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #0f172a);
}

.mol-node-main {
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
}

.mol-node-a {
  top: 15%;
  left: 18%;
  background: radial-gradient(circle at 30% 30%, #fee2e2, #b91c1c);
  animation: mol-node-a-orbit 6s linear infinite;
}

.mol-node-b {
  bottom: 10%;
  left: 25%;
  background: radial-gradient(circle at 30% 30%, #dbeafe, #1d4ed8);
  animation: mol-node-b-orbit 7s linear infinite;
}

.mol-node-c {
  top: 18%;
  right: 4%;
  background: radial-gradient(circle at 30% 30%, #dcfce7, #16a34a);
  animation: mol-node-c-orbit 5.5s linear infinite;
}

.mol-node-d {
  bottom: 20%;
  right: 14%;
  background: radial-gradient(circle at 30% 30%, #e0e7ff, #4f46e5);
  animation: mol-node-d-orbit 6.5s linear infinite;
}

@keyframes mol-orbit {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes mol-node-a-orbit {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, -6px);
  }
  50% {
    transform: translate(18px, 0);
  }
  75% {
    transform: translate(10px, 6px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Tutor profile page */
.profile-main {
  padding: 2.5rem 0 2.5rem;
}

.profile-top {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-media .profile-video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #020617;
}

.profile-video img {
  width: 100%;
  display: block;
}

.profile-video {
  background: linear-gradient(135deg, #020617, #111827);
}

.profile-video::before {
  content: "";
  position: absolute;
  inset: 12px 14px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #1d4ed8, #22c55e);
  opacity: 0.55;
}

.profile-video::after {
  content: "";
  position: absolute;
  inset: 24px 26px;
  border-radius: 12px;
  background: #020617;
  opacity: 0.9;
}

.profile-video img {
  display: none;
}

.profile-header-inline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.profile-header-inline h1 {
  margin: 0 0 0.15rem;
}

.profile-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #ec4899;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.profile-booking {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.profile-price {
  font-size: 1.6rem;
  font-weight: 700;
}

.profile-price-sub {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.profile-rating-summary {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.profile-rating-value {
  font-weight: 700;
}

.profile-rating-label {
  color: var(--color-muted);
}

.profile-cta {
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: profile-cta-pulse 3.5s ease-in-out infinite;
  background: #3ddabe;
  color: #020617;
  border: 2px solid #000000;
  border-radius: 5px;
  height: 64px;
  padding: 0;
  font-size: 20px;
  line-height: 64px;
}

.profile-cta-row {
  display: flex;
  gap: 0.6rem;
}

.profile-ghost-btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  height: 36px;
  cursor: pointer;
}

.profile-trial {
  border-radius: 12px;
  background: #d1fae5;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
}

.profile-trial-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.profile-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
}

.profile-header {
  margin-bottom: 1.5rem;
}

.profile-heading-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.6), rgba(15, 23, 42, 0.9)),
    url("images/1813621533-e87b901c9623a78133aa78f3f29f7bfeabe85b8db4456d0ac41436f1c52ef63d-d_295x166.avif")
      center/cover no-repeat;
}

.profile-heading-main h1 {
  margin: 0 0 0.1rem;
}

.profile-subline {
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  gap: 0.5rem;
}

.profile-tagline {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.profile-about-image-wrapper {
  margin-top: 0.8rem;
  max-width: 360px;
}

.profile-about-image {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow-soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.profile-section + .profile-section {
  margin-top: 1.6rem;
}

.profile-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.rating-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
}

.rating-value {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.rating-label {
  color: var(--color-muted);
}

.rating-note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.reviews-summary {
  margin-bottom: 0.6rem;
}

.reviews-score {
  font-size: 1.4rem;
  font-weight: 700;
}

.reviews-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.review-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 0.9rem;
}

.review-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.review-meta {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.schedule-banner {
  border-radius: 10px;
  background: #e0f2fe;
  padding: 0.7rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.schedule-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.schedule-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

.schedule-tab-active {
  background: #020617;
  color: #f9fafb;
  border-color: #020617;
}

.schedule-select {
  margin-left: auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  font-size: 0.85rem;
}

.schedule-day-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.schedule-slot {
  display: block;
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  cursor: pointer;
}

.profile-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.4)
  );
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.profile-cta:hover::after {
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.7s ease-out, opacity 0.2s ease-out;
}

.profile-cta:hover,
.profile-cta:focus-visible {
  background: #020617;
  color: #ffffff;
}

.profile-cta:active {
  background: #000000;
  color: #ffffff;
}

@keyframes profile-cta-pulse {
  0%,
  100% {
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.5);
    transform: translateY(-1px);
  }
}

.profile-side-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.profile-side-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
}

.profile-side-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

@media (max-width: 960px) {
  .profile-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rating-grid,
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@keyframes mol-node-b-orbit {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(6px, 6px);
  }
  50% {
    transform: translate(14px, 0);
  }
  75% {
    transform: translate(6px, -6px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes mol-node-c-orbit {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-6px, -4px);
  }
  50% {
    transform: translate(-12px, 0);
  }
  75% {
    transform: translate(-6px, 4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes mol-node-d-orbit {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-4px, 6px);
  }
  50% {
    transform: translate(-10px, 2px);
  }
  75% {
    transform: translate(-4px, -4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Responsive */
.hide-on-mobile {
  display: inline-flex;
}

.show-on-mobile {
  display: none;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.3rem;
  }

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

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

@media (max-width: 768px) {
  .top-banner-inner {
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  }

  .top-banner-text {
    font-size: 0.8rem;
  }

  .top-banner-code {
    font-size: 0.75rem;
    padding: 0.18rem 0.4rem;
  }

  .header-inner {
    padding: 0.7rem 0;
  }

  .main-nav {
    position: fixed;
    inset: 56px 1rem auto 1rem;
    background: rgba(248, 250, 252, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    transform-origin: top;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease-out;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem 0.75rem;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .main-nav a {
    color: #000;
  }

  .main-nav a:hover {
    color: #000;
    opacity: 0.85;
  }

  .header-actions > .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    color: #000;
  }

  .nav-toggle span {
    background: #000;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    text-align: left;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.5rem;
  }

  .hide-on-mobile {
    display: none;
  }

  .show-on-mobile {
    display: inline-flex;
  }

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

  .progress-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-carousel-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
  }

  .pp-arrow-left {
    left: 0.25rem;
  }

  .pp-arrow-right {
    right: 0.25rem;
  }

  .pp-slide,
  .pp-slide.is-active {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .pp-right {
    text-align: left;
  }

  .become-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 1rem;
  }

  .enroll-modal-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }

  .enroll-modal {
    max-height: calc(100vh - 1rem);
    padding: 1.25rem 1rem 1.5rem;
  }

  .enroll-code {
    min-width: 80px;
  }

  .hero {
    padding-top: 2rem;
  }

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

  .subject-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-multi,
  .footer-links-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .float-actions {
    right: 1rem;
    bottom: 4rem;
    gap: 10px;
  }

  .float-btn-enroll,
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 0.65rem;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

