:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --dark: #111827;
  --text: #4b5563;
  --muted: #6b7280;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #16a34a;
  --error: #dc2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark);
}

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

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: #eef2ff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
}

.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 36%),
    linear-gradient(180deg, #fff, #f8fafc);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 { margin: 0 0 10px; }

.hero-content p:not(.eyebrow),
.page-hero p,
.split p,
.cta-box p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn.light {
  background: white;
  color: var(--primary);
}

.btn.full { width: 100%; }

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-stats div {
  background: white;
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 20px;
}

.hero-stats strong {
  display: block;
  font-size: 24px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
  min-height: 430px;
}

.profile-card,
.floating-card,
.info-card,
.review-card,
.form-card,
.search-box,
.candidate-card {
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.profile-card {
  padding: 44px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  color: white;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
}

.profile-card p {
  color: var(--text);
  line-height: 1.7;
}

.skill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.skill-row span {
  background: #eef2ff;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.floating-card {
  position: absolute;
  padding: 18px;
  width: 250px;
}

.floating-card strong,
.floating-card span { display: block; }

.floating-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.floating-card.top {
  top: -24px;
  right: 8px;
}

.floating-card.bottom {
  bottom: 18px;
  left: -18px;
}

.section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 34px;
}

.cards {
  display: grid;
  gap: 22px;
}

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

.info-card,
.review-card { padding: 28px; }

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef2ff;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 22px;
}

.info-card p,
.review-card p,
.candidate-card p {
  color: var(--text);
  line-height: 1.7;
}

.alt { background: white; }

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

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-weight: 800;
}

.stars {
  color: #f59e0b;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-card strong,
.review-card span { display: block; }

.review-card span {
  color: var(--muted);
  margin-top: 4px;
}

.cta-section { padding: 40px 0 90px; }

.cta-box {
  text-align: center;
  border-radius: 34px;
  padding: 56px 24px;
  background: linear-gradient(135deg, #4338ca, #06b6d4);
  color: white;
}

.cta-box p { color: rgba(255, 255, 255, 0.85); }

.footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--border);
}

.page-main { padding: 54px 0 80px; }

.page-hero {
  text-align: center;
  margin-bottom: 36px;
}

.page-hero h1 { font-size: clamp(38px, 5vw, 62px); }

.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.form-layout.single { max-width: 720px; }

.form-card { padding: 30px; }

label {
  display: block;
  font-weight: 900;
  margin: 18px 0 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.upload-box {
  border: 1px dashed #c7d2fe;
  background: #f8faff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
}

.upload-box p {
  color: var(--muted);
  margin: 10px 0 0;
}

.success-message {
  color: var(--success);
  font-weight: 900;
  margin-top: 16px;
}

.error-message {
  color: var(--error);
  font-weight: 900;
  margin-top: 16px;
}

.search-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
}

.search-box.two-fields {
  grid-template-columns: 1fr 1fr auto auto;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.result-top h2 {
  margin: 0;
  font-size: 30px;
}

.result-top span {
  color: var(--muted);
  font-weight: 800;
}

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

.candidate-card { padding: 24px; }

.candidate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.candidate-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eef2ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.candidate-card h3 { margin: 0; }

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.meta span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.resume-link { margin-top: 14px; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: white;
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

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

  .cards.three,
  .candidate-grid,
  .search-box.two-fields { grid-template-columns: 1fr; }

  .hero { padding-top: 54px; }

  .floating-card {
    position: static;
    width: auto;
    margin: 14px 0;
  }

  .hero-card { min-height: auto; }

  .profile-card { padding: 28px; }
}
