/* Theme tokens — aligned with 24connect-hub (indigo/purple, dark default) */
:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent-from: #4f46e5;
  --accent-to: #7c3aed;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --highlight: #ca8a04;
  --highlight-bg: rgba(234, 179, 8, 0.12);
  --hero-overlay: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --header-bg: rgba(255, 255, 255, 0.95);
}

html.dark {
  --bg: #0f1117;
  --bg-elevated: #121621;
  --bg-card: #1a1f2e;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2d3548;
  --accent-from: #6366f1;
  --accent-to: #a855f7;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --highlight: #facc15;
  --highlight-bg: rgba(250, 204, 21, 0.1);
  --hero-overlay: rgba(0, 0, 0, 0.15);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(18, 22, 33, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
  margin-right: 0.5rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--border);
  color: var(--text);
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-header {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  margin: 1.5rem 0 2rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-from) 0%, #9333ea 55%, #c026d3 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero .hero-accent {
  color: #fde047;
}

.hero-lead {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  opacity: 0.95;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-value {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: #fde047;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.hero .btn-primary {
  background: #fff;
  color: var(--accent-from);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary:hover {
  background: #f8fafc;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Salary */
.salary-block {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .salary-block {
    grid-template-columns: 1fr 1fr;
  }
}

.salary-card {
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.salary-card.highlight {
  background: var(--highlight-bg);
  border-color: var(--highlight);
}

.salary-amount {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--highlight);
  margin: 0 0 0.25rem;
}

.salary-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Schedule chips */
.schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.chip {
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.3s, border-color 0.3s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  font-weight: 700;
}

/* Reviews carousel */
.reviews-section {
  overflow: hidden;
}

.carousel {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.review-card {
  flex: 0 0 100%;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 280px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar-img,
.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-avatar-img {
  object-fit: cover;
  border: 2px solid var(--border);
}

.review-avatar--placeholder {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.review-meta h4 {
  margin: 0;
  font-size: 1rem;
}

.review-meta span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-height: 12rem;
  overflow-y: auto;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* CTA band */
.cta-band {
  margin: 2rem 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-from);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer .legal-placeholder {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-style: italic;
}

/* Responsive nav */
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .btn-header {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
  }
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none;
  }
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carousel-track {
    transition: none;
  }
}
