/* CodeWorks — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --black: #000000;
  --text: #111111;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --gray-50: #f8f9fa;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-purple: 0 20px 60px rgba(124, 58, 237, 0.18);
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── Navigation ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-signin {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-signin:hover {
  color: var(--purple);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

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

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

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 12px 24px;
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 12px 0;
}

.btn-ghost:hover {
  color: var(--purple);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
  padding: 12px 24px;
}

.btn-purple:hover {
  box-shadow: 0 4px 16px var(--purple-glow);
}

.btn-full {
  width: 100%;
}

/* ── Badge ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--purple-light);
  background: var(--purple-light);
  color: var(--purple);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.section-title-left {
  text-align: left;
  margin-bottom: 16px;
}

/* ── Cards ── */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Hero ── */

.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.hero-play:hover {
  color: var(--purple);
}

.play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.hero-play:hover .play-icon {
  border-color: var(--purple);
}

.hero-tags {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tag-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

/* ── Dashboard Preview ── */

.dashboard-wrapper {
  position: relative;
}

.dashboard-glow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 60%;
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-preview {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg), var(--shadow-purple);
  overflow: hidden;
  display: flex;
  min-height: 420px;
}

.dashboard-sidebar {
  width: 180px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-100);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dashboard-sidebar .logo {
  margin-bottom: 24px;
  padding-left: 4px;
}

.dashboard-nav {
  flex: 1;
}

.dashboard-nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.dashboard-nav li a.active,
.dashboard-nav li a:hover {
  background: var(--white);
  color: var(--text);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--gray-200);
  margin-top: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), #a78bfa);
  flex-shrink: 0;
}

.user-info {
  font-size: 0.6875rem;
  line-height: 1.3;
}

.user-name {
  font-weight: 600;
}

.user-role {
  color: var(--text-muted);
}

.dashboard-main {
  flex: 1;
  padding: 24px;
  overflow: hidden;
}

.dashboard-greeting {
  margin-bottom: 20px;
}

.dashboard-greeting h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-greeting p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.continue-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.continue-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--purple);
  border-radius: 999px;
}

.progress-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.stat-value {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.recent-projects h5 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-project {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 10px;
}

.mini-project-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 6px;
  font-size: 0.625rem;
}

.mini-project h6 {
  font-size: 0.625rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.mini-project .progress-bar {
  height: 4px;
  margin-bottom: 0;
}

/* ── Trusted By ── */

.trusted-section {
  padding: 40px 0;
}

.trusted-bar {
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.trusted-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.trusted-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trusted-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: -0.02em;
}

/* ── Features Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Page Header (inner pages) ── */

.page-header {
  padding: 64px 0 48px;
  text-align: center;
}

.page-header .badge {
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-header h1 .accent {
  color: var(--purple);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Course Cards ── */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  padding: 0;
  overflow: hidden;
}

.course-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--purple-light), #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 2rem;
}

.course-body {
  padding: 24px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.course-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-light);
  padding: 4px 10px;
  border-radius: 999px;
}

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

.course-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.course-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-lessons {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Project Cards ── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  padding: 28px;
  display: flex;
  gap: 20px;
}

.project-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.project-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--gray-50);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Roadmap ── */

.roadmap-timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.roadmap-step {
  position: relative;
  padding-left: 64px;
  padding-bottom: 48px;
}

.roadmap-step:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  border: 4px solid var(--purple-light);
}

.roadmap-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.roadmap-step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.roadmap-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-skill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple);
  background: var(--purple-light);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 32px;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--purple);
  box-shadow: var(--shadow-purple);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.check-icon {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-stat {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
}

.about-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
}

.about-stat .stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  padding: 28px;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), #c4b5fd);
  margin: 0 auto 16px;
}

.team-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Auth Forms ── */

.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .auth-subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.8125rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.form-checkbox input {
  accent-color: var(--purple);
}

.form-link {
  color: var(--purple);
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-light);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ── CTA Section ── */

.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--gray-100);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--purple);
}

/* ── Icons (inline SVG helper) ── */

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-badge,
  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

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

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-actions.open {
    display: flex;
    position: absolute;
    top: calc(var(--nav-height) + 280px);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--gray-100);
  }

  .mobile-menu-btn {
    display: block;
  }

  .dashboard-preview {
    flex-direction: column;
    min-height: auto;
  }

  .dashboard-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
  }

  .dashboard-sidebar .logo {
    margin-bottom: 0;
  }

  .dashboard-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .dashboard-user {
    border-top: none;
    margin-top: 0;
  }

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

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

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

  .courses-grid,
  .projects-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .trusted-bar {
    flex-direction: column;
    text-align: center;
  }

  .trusted-logos {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
