﻿:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --accent: #38bdf8;
  --bg: #0b1730;
  --surface: #142442;
  --surface-soft: #1e3355;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --radius: 28px;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.20);
  --font-body: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background-color: var(--bg);
  background-image: none;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease;
}

body.python-bg {
  background: url("premium_photo-1661877737564-3dfd7282efcb.avif") center center/cover no-repeat fixed;
  min-height: 100vh;
}

body.python-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

body.python-bg .course-hero-content {
  max-width: 640px;
}

body.python-bg .course-hero-content p {
  color: #ffffff;
  font-size: 1.15rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  line-height: 1.8;
}

body.python-bg .course-level {
  color: #93c5fd;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

body.python-bg .course-hero-content h1 {
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7), 0 1px 6px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

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

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

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

button,
input,
a.btn {
  font: inherit;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 22, 48, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 30px rgba(2, 12, 32, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 8px 20px rgba(2, 8, 23, 0.3);
}

.brand-logo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
}

.main-nav {
  display: none;
}

.main-nav.open {
  display: grid;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  padding: 24px 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 18px;
}

.main-nav.open a {
  display: block;
  margin: 0;
}

.main-nav a {
  margin-left: 24px;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.28s ease, border-color 0.28s ease;
  position: relative;
  padding: 7px 0 5px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.42);
}

.movies-nav-link {
  color: #f6d365 !important;
  border-bottom-color: transparent !important;
}

.movies-nav-link:hover {
  color: #ffe7a3 !important;
  border-bottom-color: #f6d365 !important;
}

.footer-links a:hover,
.contact-links a:hover {
  color: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 52px rgba(59, 130, 246, 0.18);
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 18px 45px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  background-color: #111f3d;
  background-image: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #f8fafc;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 35, 0.64);
  pointer-events: none;
  animation: hero-glow 18s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 96px 0 62px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-description {
  margin: 24px 0 34px;
  max-width: 560px;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill strong {
  font-size: 1.15rem;
  color: #f8fafc;
}

.pill span {
  font-size: 0.95rem;
  color: #cbd5e1;
}

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

.hero-card {
  position: relative;
  background: rgba(18, 38, 70, 0.9);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 32px;
  padding: 32px;
  width: min(520px, 100%);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 48px 100px rgba(15, 23, 42, 0.28);
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.30);
}

.chat-panel {
  width: min(360px, 92vw);
  max-height: 72vh;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.chat-panel.hidden {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.chat-header p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.chat-body {
  padding: 16px;
  display: grid;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.98);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
}

.chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.chat-form button {
  min-width: 90px;
}

.chat-message {
  padding: 14px 16px;
  border-radius: 20px;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message.user {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #e2e8f0;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.chat-message.loading {
  opacity: 0.85;
}

.login-section {
  display: grid;
  place-items: center;
  padding: 72px 0;
  min-height: calc(100vh - 110px);
  background: #0b1730;
}

.auth-card {
  width: min(100%, 440px);
  background: #142442;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(2, 12, 32, 0.3);
  padding: 38px;
  backdrop-filter: none;
}

.auth-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 22px;
  border-radius: 50%;
}

.auth-kicker {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 8px 0 8px;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.auth-intro {
  margin: 0 0 28px;
  color: #b7c4d4;
}

.auth-card form {
  display: grid;
  gap: 10px;
}

.auth-card label {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-card label span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 500;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #0f1c33;
  color: #f8fafc;
  outline: none;
}

.auth-card input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7dd3fc;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.alert {
  border-radius: 8px;
  padding: 18px 20px;
  margin: 18px 0 0;
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #115e59;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Pro Area styles and transitions */
.pro-area {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.pro-area.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.pro-area .games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 14px;
}

/* Keep hidden sections inaccessible until unlocked */
.hidden { display: none !important; }

.hero-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.floating-icon {
  animation: float 6s ease-in-out infinite, hero-glow 12s ease-in-out infinite alternate;
}

.hero-card h2,
.section-header h2,
.quote-card h2,
.feature-card h3,
.course-card h3,
.stat-card strong {
  font-weight: 700;
}

.hero-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.hero-card p,
.hero-card-list span,
.feature-card p,
.course-card p,
.quote-copy p,
.contact-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.hero-card-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.hero-card-list div {
  display: grid;
  gap: 8px;
}

.hero-card-list strong {
  color: #ffffff;
}

.learning-principles {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 42px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.learning-principles .section-label {
  background: #eff6ff;
  border-color: #dbeafe;
  color: #1d4ed8;
}

.principles-grid {
  display: grid;
  gap: 24px;
}

.principle-intro h2 {
  max-width: 360px;
  margin: 16px 0 0;
  color: #0f2346;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
}

.principle-number {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.principle-item h3 {
  margin: 0 0 5px;
  color: #13284b;
  font-size: 1rem;
}

.principle-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.section {
  padding: clamp(72px, 8vw, 104px) 0;
}

.surface-section {
  background: #17243d;
}

.stats-section {
  background: #2563eb;
  color: #ffffff;
}

.quote-section {
  background-color: #17243d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Ccircle cx='110' cy='110' r='96' stroke='rgba(96,165,250,0.08)' stroke-width='2' fill='none'/%3E%3Ccircle cx='110' cy='110' r='48' stroke='rgba(96,165,250,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  background-repeat: repeat;
}

.contact-section {
  background: #111f35;
}

.privacy-section {
  background: #17243d;
}

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.section-header h2 {
  margin: 18px 0 18px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-header p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1rem;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.course-card,
.feature-card,
.stat-card,
.quote-card,
.contact-card {
  border-radius: 28px;
  background: rgba(20, 36, 62, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.13);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.feature-card:hover,
.quote-card:hover,
.contact-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(2, 12, 32, 0.26);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.course-thumb {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.course-card:hover .course-thumb {
  transform: scale(1.02);
}

.course-card-content {
  padding: 30px;
  display: grid;
  gap: 18px;
}

.course-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.16);
  font-weight: 700;
  width: fit-content;
}

.course-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.course-card p {
  color: #475569;
}

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

.feature-card {
  padding: 32px;
  display: grid;
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.16);
  font-size: 1.4rem;
}

.feature-card h3 {
  margin: 0;
  color: #f8fafc;
}

.feature-card p {
  color: #cbd5e1;
}

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

.stat-card {
  padding: 34px 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
  text-align: center;
}

.stat-card strong {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #ffffff;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.quote-card {
  padding: 48px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
}

.quote-copy {
  max-width: 820px;
}

.quote-copy h2 {
  margin: 18px 0 20px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #f8fafc;
}

.quote-copy strong {
  display: block;
  margin-top: 24px;
  color: #cbd5e1;
}

.contact-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-copy {
  display: grid;
  gap: 22px;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-link {
  display: inline-flex;
  margin-top: 16px;
  color: #1d4ed8;
  font-weight: 700;
}

.contact-card {
  padding: 32px;
  background: rgba(24, 40, 62, 0.92);
}

.contact-card h3 {
  margin-top: 0;
  color: #f8fafc;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-form-btn {
  margin-top: 8px;
  width: fit-content;
  padding: 12px 20px;
}

.contact-links a {
  color: #2563eb;
  font-weight: 600;
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.popup-overlay,
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.popup-overlay.hidden,
.modal.hidden {
  display: none;
}

..popup-overlay {
  background: rgba(22, 36, 60, 0.78);
}

.popup-content,
.modal-panel {
  position: relative;
  width: min(760px, calc(100% - 36px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  background: #162e4b;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.popup-content h1,
.modal-panel h3 {
  margin-top: 0;
}

.popup-content ol {
  padding-left: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  z-index: 51;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 8px;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
  position: absolute;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  content: '';
  top: -8px;
}

.menu-toggle span::after {
  content: '';
  top: 8px;
}

@media (min-width: 760px) {
  .main-nav {
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
  }

  .principles-grid {
    grid-template-columns: 1.25fr repeat(3, 1fr);
    align-items: start;
    gap: 30px;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1.3fr 0.9fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 759px) {
  .hero {
    padding-top: 90px;
  }

  .hero-pill-grid {
    grid-template-columns: 1fr;
  }

  .learning-principles {
    padding: 36px 0;
  }

  .section-header,
  .hero-card,
  .course-card,
  .feature-card,
  .quote-card,
  .contact-card,
  .stat-card {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

@media (min-width: 1024px) {
  .hero {
    padding-top: 120px;
  }
}

.hidden {
  display: none !important;
}

.animate-fade-up,
.animate-slide-up,
.animate-slide-right,
.animate-slide-left,
.animate-scale-in {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.animate-slide-left {
  transform: translate3d(-30px, 0, 0);
}

.animate-slide-right {
  transform: translate3d(30px, 0, 0);
}

.animate-scale-in {
  transform: translate3d(0, 0, 0) scale(0.98);
}

.animate-fade-up.in-view,
.animate-slide-up.in-view,
.animate-slide-right.in-view,
.animate-slide-left.in-view,
.animate-scale-in.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

.delay-3 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-slide-up,
  .animate-slide-right,
  .animate-slide-left,
  .animate-scale-in {
    transition: none !important;
    animation: none !important;
  }
}

/* Landing page: a quieter editorial treatment, kept separate from course pages. */
.landing-page {
  --landing-ink: #17243b;
  --landing-muted: #5f6b7a;
  --landing-paper: #f5f2ec;
  --landing-paper-deep: #ebe7de;
  --landing-blue: #1d5fd1;
  background: var(--landing-paper);
  color: var(--landing-ink);
  line-height: 1.65;
}

.landing-page .site-header {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
  background: rgba(8, 20, 35, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.landing-page .brand,
.landing-page .main-nav a {
  color: #ffffff;
}

.landing-page .brand-mark {
  background: #050505;
  box-shadow: 0 6px 16px rgba(2, 8, 23, 0.28);
}

.landing-page .main-nav a:hover,
.landing-page .main-nav a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.landing-page .btn {
  border-radius: 10px;
  box-shadow: none;
}

.landing-page .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 36, 59, 0.12);
}

.landing-page .btn-primary {
  background: var(--landing-blue);
}

.landing-page .btn-secondary {
  background: transparent;
  color: var(--landing-ink);
  border-color: rgba(23, 36, 59, 0.25);
}

.landing-page .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.landing-page .hero {
  min-height: 100vh;
  padding-top: 0;
  background-color: #20364c;
  background-image: url('https://cdn.corenexis.com/f/AN2acgXC7c4.png');
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(23, 36, 59, 0.12);
}

.landing-page .hero-logo-heading {
  display: block;
  margin: 18px 0 0;
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.landing-page .hero-overlay {
  display: block;
  background: rgba(8, 20, 35, 0.58);
  animation: none;
}

.landing-page .hero-inner {
  width: 76%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: auto auto auto;
  column-gap: 0;
  row-gap: 0;
  align-content: start;
  align-items: start;
  padding: 110px 0 60px;
}

.landing-page .hero-panel {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.landing-page .hero-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 680px;
}

.landing-page .hero-title {
  grid-column: 1;
  grid-row: 3;
  margin: 24px 0 0;
  max-width: 620px;
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.landing-page .hero-main-actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  justify-content: center;
  gap: 18px;
}

.landing-page .eyebrow {
  margin-bottom: 18px;
  color: var(--landing-blue);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.landing-page .hero-copy h1,
.landing-page .hero-card h2,
.landing-page .section-header h2,
.landing-page .quote-copy h2,
.landing-page .contact-copy h2 {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.025em;
}

.landing-page .hero-copy h1 {
  max-width: 620px;
  color: #ffffff;
  font-size: clamp(3.1rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.landing-page .hero-description {
  max-width: 510px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.landing-page .pill {
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  padding: 14px 0 0;
}

.landing-page .pill strong,
.landing-page .pill span {
  color: #ffffff;
}

.landing-page .pill strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.landing-page .hero-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-page .hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: start;
  padding-top: 0;
}

.landing-page .hero-actions .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(8, 20, 35, 0.22);
}

.landing-page .hero-card h2 {
  color: var(--landing-ink);
  font-size: clamp(1.75rem, 2vw, 2.25rem);
}

.landing-page .hero-card h2,
.landing-page .hero-card > p,
.landing-page .hero-card-list {
  display: none;
}

.landing-page .hero-card p,
.landing-page .hero-card-list span {
  color: var(--landing-muted);
}

.landing-page .hero-card-list {
  border-top: 1px solid rgba(23, 36, 59, 0.12);
  padding-top: 18px;
}

.landing-page .hero-card-list strong {
  color: var(--landing-ink);
}

.landing-page .hero-icon {
  width: 180px;
  aspect-ratio: 1;
  height: auto;
  margin: 0 0 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 18px 34px rgba(23, 36, 59, 0.18);
}

.landing-page .hero-logo-caption {
  display: block;
  margin: -14px 0 0;
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  text-align: center;
}

.landing-page .hero-icon img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
}

.landing-page .wave-divider {
  display: none;
}

.landing-page .learning-principles,
.landing-page .featured-courses,
.landing-page .about-section,
.landing-page .surface-section,
.landing-page .contact-section,
.landing-page .privacy-section {
  background: var(--landing-paper);
}

.landing-page .learning-principles {
  padding: 54px 0;
  border-bottom-color: rgba(23, 36, 59, 0.12);
}

.landing-page .learning-principles .section-label,
.landing-page .section-label,
.landing-page .course-tag {
  border: 0;
  border-radius: 4px;
  background: var(--landing-paper-deep);
  color: var(--landing-blue);
  letter-spacing: 0.1em;
}

.landing-page .principle-intro h2,
.landing-page .principle-item h3 {
  color: var(--landing-ink);
}

.landing-page .principle-item p,
.landing-page .section-header p {
  color: var(--landing-muted);
}

.landing-page .section-header h2 {
  color: var(--landing-ink);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
}

.landing-page .course-card,
.landing-page .feature-card,
.landing-page .quote-card,
.landing-page .contact-card,
.landing-page .stat-card {
  border: 1px solid rgba(23, 36, 59, 0.13);
  border-radius: 14px;
  background: #fbfaf7;
  box-shadow: 0 12px 28px rgba(23, 36, 59, 0.07);
}

.landing-page .course-card:hover,
.landing-page .feature-card:hover,
.landing-page .quote-card:hover,
.landing-page .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(23, 36, 59, 0.1);
}

.landing-page .course-card h3,
.landing-page .feature-card h3,
.landing-page .course-card p,
.landing-page .contact-card h3 {
  color: var(--landing-ink);
}

.landing-page .course-card p,
.landing-page .feature-card p {
  color: var(--landing-muted);
}

.landing-page .feature-card {
  padding: 28px;
}

.landing-page .feature-icon {
  border-radius: 10px;
  background: #e2ebf4;
}

.landing-page .surface-section {
  border-top: 1px solid rgba(23, 36, 59, 0.1);
  border-bottom: 1px solid rgba(23, 36, 59, 0.1);
}

.landing-page .stats-section {
  background: var(--landing-ink);
}

.landing-page .stat-card {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: none;
}

.landing-page .quote-section {
  background: var(--landing-paper-deep);
}

.landing-page .quote-card {
  background: #fbfaf7;
}

.landing-page .quote-copy h2,
.landing-page .quote-copy strong {
  color: var(--landing-ink);
}

.landing-page .quote-copy p {
  color: var(--landing-muted);
}

.landing-page .contact-link,
.landing-page .contact-links a {
  color: var(--landing-blue);
}

.landing-page .site-footer {
  background: var(--landing-ink);
}

.site-context-menu {
  position: fixed;
  z-index: 1000;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(23, 36, 59, 0.14);
  border-radius: 10px;
  background: #fbfaf7;
  box-shadow: 0 14px 36px rgba(23, 36, 59, 0.2);
  color: var(--landing-ink, #17243b);
  line-height: 1.4;
}

.site-context-menu[hidden] {
  display: none;
}

.site-context-menu a,
.site-context-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 9px 12px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.site-context-menu a:hover,
.site-context-menu button:hover,
.site-context-menu a:focus-visible,
.site-context-menu button:focus-visible {
  outline: none;
  background: #e9eff7;
  color: #1d4ed8;
}

@media (max-width: 759px) {
  .landing-page .site-header {
    position: absolute;
  }

  .landing-page .hero-inner {
    min-height: 680px;
    padding: 128px 0 58px;
  }

  .landing-page .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .landing-page .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: min(100% - 32px, 520px);
    min-height: 100vh;
    padding: 72px 0 48px;
  }

  .landing-page .hero-icon {
    width: 150px;
  }

  .landing-page .hero-panel,
  .landing-page .hero-copy {
    width: 100%;
  }

  .landing-page .hero-panel {
    order: 1;
  }

  .landing-page .hero-copy {
    order: 2;
  }
}

html {
  scroll-behavior: smooth;
}

.policy-content {
  padding: 42px;
  background: rgba(22, 36, 60, 0.92);
  border: 1px solid rgba(96, 165, 250, 0.16);
  margin-bottom: 28px;
}

.policy-content h3 {
  margin: 0 0 28px;
  font-size: 1.8rem;
  color: #f8fafc;
  font-weight: 700;
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #e2e8f0;
  font-weight: 700;
}

/* Shared product UI refinement: a quieter, more authored visual language. */
body:not(.landing-page) {
  background-color: #101820;
  background-image: none;
}

.btn {
  border-radius: 8px;
  padding: 12px 22px;
  box-shadow: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-primary {
  background: #2563eb;
  box-shadow: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  border-radius: 8px;
}

.site-header {
  background: #0f1b2d;
  backdrop-filter: none;
  border-bottom-color: #26384d;
  box-shadow: none;
}

.auth-card,
.policy-content,
.contact-card,
.feature-card,
.course-card,
.quote-card,
.stat-card {
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(2, 12, 32, 0.16);
}

.auth-card {
  box-shadow: 0 20px 50px rgba(2, 12, 32, 0.3);
}

.landing-page .btn-primary {
  background: #2563eb;
  box-shadow: none;
}

.landing-page .btn:hover {
  box-shadow: none;
}

.landing-page .hero-card {
  border-radius: 0;
}

@media (max-width: 759px) {
  .btn {
    padding: 11px 18px;
  }
}

.policy-section p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.8;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.policy-section li {
  margin-bottom: 10px;
  color: #cbd5e1;
  line-height: 1.7;
}

.policy-section a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
}

.glass-card {
  background: rgba(22, 36, 60, 0.30);
  border: 1px solid rgba(96, 165, 250, 0.16);
  backdrop-filter: blur(18px);
}

@media (max-width: 759px) {
  .policy-content {
    padding: 28px;
  }
  
  .policy-content h3 {
    font-size: 1.4rem;
  }
}

.course-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: #f8fafc;
}

.course-hero-inner {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 40px 0;
}

.course-hero-content {
  max-width: 640px;
}

.course-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.course-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.course-hero p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.course-stats .stat {
  display: grid;
  gap: 8px;
}

.course-stats strong {
  font-size: 1.8rem;
  color: #ffffff;
  line-height: 1;
}

.course-stats span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.course-content {
  padding: 80px 0;
  background: #17243d;
}

.course-progress {
  margin-bottom: 60px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Typography direction: humanist body copy with editorial display type. */
body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.section-label,
.auth-kicker {
  font-family: var(--font-display);
}

.main-nav a,
.btn,
input,
textarea,
select,
button {
  font-family: var(--font-body);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

@media (min-width: 760px) {
  .lessons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lessons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Final visual direction: solid surfaces and real imagery, without decorative gradients. */
body {
  background-image: none;
}

.btn-primary,
.chat-bubble,
.stats-section {
  background: #2563eb;
}

.hero {
  background-image: url('https://cdn.corenexis.com/f/AN2acgXC7c4.png');
}

.hero-overlay {
  background: rgba(8, 20, 35, 0.64);
  animation: none;
}

.surface-section,
.privacy-section {
  background: #17243d;
}

.quote-section {
  background-image: none;
}

.login-section {
  background: #0b1730;
}

.auth-card.glass-card {
  background: #142442;
  backdrop-filter: none;
}

.progress-fill {
  background: #2563eb;
}

.lesson-card {
  background: #172a45;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lesson-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3b82f6;
}

.lesson-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lesson-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f8fafc;
}

.lesson-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.95rem;
}

.lesson-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lesson-time,
.lesson-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.9rem;
}

.course-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 759px) {
  .course-hero {
    padding: 60px 0;
  }

  .course-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-content {
    padding: 60px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes hero-glow {
  0% {
    background-position: 20% 20%, 80% 10%;
    opacity: 1;
  }
  50% {
    background-position: 24% 18%, 76% 12%;
    opacity: 0.92;
  }
  100% {
    background-position: 18% 22%, 82% 8%;
    opacity: 1;
  }
}

:root {
  --brand: #3478f6;
  --brand-dark: #1d5fd1;
  --accent: #55d6c2;
  --bg: #081426;
  --surface: #11233d;
  --surface-soft: #1b3354;
  --text: #edf5ff;
  --muted: #a9bad0;
  --border: rgba(148, 180, 218, 0.18);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 12, 32, 0.22);
}

html {
  scroll-padding-top: 88px;
}

body:not(.landing-page) {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(52, 120, 246, 0.13), transparent 34rem),
    radial-gradient(ellipse at 94% 48%, rgba(85, 214, 194, 0.07), transparent 30rem),
    #081426;
}

.landing-page {
  --landing-ink: #12223a;
  --landing-muted: #52647a;
  --landing-paper: #f3f6fb;
  --landing-paper-deep: #e7edf6;
  --landing-blue: #1d5fd1;
  background: var(--landing-paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 20, 38, 0.84);
  border-bottom: 1px solid rgba(148, 180, 218, 0.2);
  box-shadow: 0 12px 35px rgba(2, 12, 32, 0.15);
  backdrop-filter: blur(18px);
}

.landing-page .site-header {
  position: sticky;
  background: rgba(8, 20, 38, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 35px rgba(2, 12, 32, 0.16);
}

.header-inner {
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand-mark,
.landing-page .brand-mark {
  box-shadow: 0 0 0 3px rgba(85, 214, 194, 0.16), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.main-nav a {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary,
.landing-page .btn-primary {
  background: linear-gradient(135deg, #3478f6, #245bd2);
  box-shadow: 0 9px 24px rgba(36, 91, 210, 0.24);
}

.btn-primary:hover,
.landing-page .btn-primary:hover {
  background: linear-gradient(135deg, #4b8cff, #2c68e4);
  box-shadow: 0 14px 30px rgba(36, 91, 210, 0.32);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(148, 180, 218, 0.32);
}

.landing-page .btn-secondary {
  color: var(--landing-ink);
  border-color: rgba(18, 34, 58, 0.22);
}

.course-card,
.feature-card,
.quote-card,
.contact-card,
.stat-card,
.auth-card,
.policy-content,
.lesson-card {
  border-radius: 20px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.landing-page .course-card,
.landing-page .feature-card,
.landing-page .quote-card,
.landing-page .contact-card,
.landing-page .stat-card {
  border-radius: 20px;
  border-color: rgba(31, 63, 105, 0.14);
  box-shadow: 0 14px 36px rgba(31, 63, 105, 0.08);
}

.landing-page .course-card:hover,
.landing-page .feature-card:hover,
.landing-page .quote-card:hover,
.landing-page .contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 120, 246, 0.34);
  box-shadow: 0 24px 48px rgba(31, 63, 105, 0.14);
}

.landing-page .hero {
  min-height: min(860px, calc(100vh - 68px));
  background-position: center 42%;
}

.landing-page .hero-overlay {
  background: linear-gradient(110deg, rgba(6, 17, 35, 0.79), rgba(8, 20, 38, 0.5) 55%, rgba(14, 43, 74, 0.45));
}

.landing-page .hero-title {
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(2, 12, 32, 0.3);
}

.landing-page .hero-icon {
  box-shadow: 0 20px 52px rgba(2, 12, 32, 0.32), 0 0 0 8px rgba(85, 214, 194, 0.12);
}

.landing-page .learning-principles {
  background: linear-gradient(180deg, #f8faff, #edf2f9);
}

.landing-page .section-label,
.landing-page .course-tag {
  border-radius: 999px;
  background: rgba(52, 120, 246, 0.1);
}

.section-header h1,
.section-header h2,
.course-hero h1 {
  text-wrap: balance;
}

.course-hero {
  background-image: linear-gradient(120deg, rgba(9, 26, 53, 0.94), rgba(23, 71, 133, 0.8));
}

.course-content {
  background: linear-gradient(180deg, rgba(17, 35, 61, 0.98), rgba(8, 20, 38, 0.98));
}

.progress-bar {
  height: 10px;
  background: rgba(148, 180, 218, 0.16);
}

.progress-fill {
  background: linear-gradient(90deg, #3478f6, #55d6c2);
}

.lesson-card {
  background: linear-gradient(145deg, rgba(25, 48, 79, 0.96), rgba(15, 32, 56, 0.96));
  border: 1px solid rgba(148, 180, 218, 0.18);
}

.lesson-card:hover {
  border-color: rgba(85, 214, 194, 0.42);
  box-shadow: 0 22px 44px rgba(2, 12, 32, 0.3);
}

.lesson-status {
  background: rgba(85, 214, 194, 0.12);
  color: #87eadb;
}

.auth-card,
.policy-content,
.contact-card,
.feature-card {
  border: 1px solid rgba(148, 180, 218, 0.18);
  box-shadow: 0 24px 70px rgba(2, 12, 32, 0.22);
}

.auth-card.glass-card {
  background: linear-gradient(145deg, rgba(20, 42, 72, 0.96), rgba(13, 30, 54, 0.96));
}

.policy-content {
  background: linear-gradient(145deg, rgba(22, 43, 71, 0.97), rgba(14, 31, 54, 0.97));
}

.site-footer {
  border-top: 1px solid rgba(148, 180, 218, 0.18);
}

input,
textarea,
select {
  border-radius: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #55d6c2;
  box-shadow: 0 0 0 4px rgba(85, 214, 194, 0.14);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #55d6c2;
  outline-offset: 3px;
}

.site-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #55d6c2, #3478f6);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 180, 218, 0.24);
  border-radius: 50%;
  background: rgba(13, 30, 54, 0.92);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 12px 30px rgba(2, 12, 32, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background 180ms ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #245bd2;
}

@media (max-width: 759px) {
  .landing-page .site-header {
    position: sticky;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.page-header {
  margin: 34px 0 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(148, 180, 218, 0.18);
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(20, 45, 78, 0.96), rgba(11, 28, 51, 0.96));
  box-shadow: 0 20px 55px rgba(2, 12, 32, 0.2);
}

.page-header-inner {
  gap: 24px;
}

.ai-chat-section {
  margin: 0 auto 60px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid rgba(148, 180, 218, 0.18);
  border-radius: 24px;
  background: rgba(15, 33, 58, 0.94);
  box-shadow: 0 20px 55px rgba(2, 12, 32, 0.22);
}

.ai-chat-form {
  display: grid;
  gap: 14px;
}

.ai-chat-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(148, 180, 218, 0.22);
  background: rgba(7, 20, 38, 0.82);
  color: #edf5ff;
}

.ai-chat-response {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(85, 214, 194, 0.22);
  border-radius: 18px;
  background: rgba(85, 214, 194, 0.06);
}

.login-section {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(52, 120, 246, 0.2), transparent 28rem),
    radial-gradient(ellipse at 82% 86%, rgba(85, 214, 194, 0.1), transparent 25rem),
    #081426;
}

.auth-card {
  overflow: hidden;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 180, 218, 0.24);
  background: rgba(7, 20, 38, 0.72);
  color: #edf5ff;
}

.course-progress {
  padding: 22px;
  border: 1px solid rgba(148, 180, 218, 0.16);
  border-radius: 18px;
  background: rgba(13, 30, 54, 0.68);
}

.course-stats .stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.policy-section + .policy-section {
  padding-top: 26px;
  border-top: 1px solid rgba(148, 180, 218, 0.14);
}

.menu-toggle {
  border: 1px solid rgba(148, 180, 218, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-page .menu-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 759px) {
  .page-header {
    margin-top: 18px;
  }

  .course-stats .stat {
    grid-template-columns: 1fr;
  }
}
