/* ===========================
   CSS Variables
   =========================== */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F3FF;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-border: #E9D5FF;

  /* Accents */
  --color-primary: #3B82F6;
  --color-primary-dark: #2563EB;
  --color-accent: #7C3AED;
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #7C3AED 100%);
  --gradient-subtle: linear-gradient(135deg, #EEF2FF, #F5F3FF, #EDE9FE);

  /* Scoring */
  --color-score-high: #22C55E;
  --color-score-mid: #EAB308;
  --color-score-low: #EF4444;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

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

ul {
  list-style: none;
}

/* ===========================
   Utilities
   =========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF;
  filter: brightness(1.05);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(124, 58, 237, 0.04);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #7C3AED 100%);
  transition: box-shadow 0.3s;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.header--scrolled {
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header__logo {
  flex-shrink: 0;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__menu {
  display: flex;
  gap: 32px;
}

.header__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.header__link:hover {
  color: #FFFFFF;
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: var(--radius-sm) !important;
  backdrop-filter: blur(8px);
}

.header__cta:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  transform: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s;
}

.header__burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger--active span:nth-child(2) {
  opacity: 0;
}

.header__burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
}

.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: rgba(59, 130, 246, 0.12);
  top: -200px;
  right: -100px;
}

.hero__blob--2 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.1);
  bottom: -150px;
  left: -150px;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ===========================
   Steps (How it works)
   =========================== */
.how-it-works .section__title {
  margin-bottom: 48px;
}

.results-demo .section__title {
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.06);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.3s;
}

.step:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
  border-color: #C4B5FD;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.step__icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.step__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===========================
   Results Demo (Mockup) — Chat style
   =========================== */
.mockup {
  max-width: 520px;
  margin: 0 auto;
}

.mockup__browser {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(124, 58, 237, 0.1);
  background: #F8FAFC;
  border: 1px solid var(--color-border);
}

.mockup__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #7C3AED 100%);
  position: relative;
}

.mockup__toolbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__dot:first-child {
  background: rgba(255, 255, 255, 0.45);
}

.mockup__dot:nth-child(2) {
  background: rgba(255, 255, 255, 0.35);
}

.mockup__dot:nth-child(3) {
  background: rgba(255, 255, 255, 0.25);
}

.mockup__url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 14px;
  border-radius: 8px;
  margin-left: 8px;
  letter-spacing: 0.3px;
}

.mockup__content {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat mockup messages */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: mockup-fade-in 0.3s ease-out both;
}

.chat-msg--user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.chat-msg__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-msg__avatar--ai {
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.chat-msg__avatar--ai svg {
  width: 14px;
  height: 14px;
}

.chat-msg__bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-msg--ai .chat-msg__bubble {
  background: #FFFFFF;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.chat-msg--user .chat-msg__bubble {
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Vacancy card inside chat */
.vacancy-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px;
  background: #FFFFFF;
  transition: box-shadow 0.2s;
}

.vacancy-card--high {
  border-left-color: var(--color-score-high);
}

.vacancy-card--mid {
  border-left-color: var(--color-score-mid);
}

.vacancy-card--low {
  border-left-color: var(--color-score-low);
}

.vacancy-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.vacancy-card__info {
  flex: 1;
  min-width: 0;
}

.vacancy-card__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--color-text);
}

.vacancy-card__company {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.vacancy-card__salary {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.vacancy-card__score {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
}

.vacancy-card__score--high {
  background: conic-gradient(var(--color-score-high) calc(var(--score-pct, 87) * 1%), #E5E7EB 0);
}

.vacancy-card__score--mid {
  background: conic-gradient(var(--color-score-mid) calc(var(--score-pct, 54) * 1%), #E5E7EB 0);
}

.vacancy-card__score--low {
  background: conic-gradient(var(--color-score-low) calc(var(--score-pct, 20) * 1%), #E5E7EB 0);
}

.vacancy-card__score::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
}

.vacancy-card__score-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.vacancy-card__score--high .vacancy-card__score-value {
  color: var(--color-score-high);
}

.vacancy-card__score--mid .vacancy-card__score-value {
  color: var(--color-score-mid);
}

.vacancy-card__score--low .vacancy-card__score-value {
  color: var(--color-score-low);
}

.vacancy-card__description {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.vacancy-card__summary {
  font-size: 12px;
  color: #4C1D95;
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--gradient-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

@keyframes mockup-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Pricing
   =========================== */
.pricing {
  text-align: center;
}

.pricing__card {
  max-width: 480px;
  margin: 0 auto;
  padding: 52px 36px;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 64px rgba(99, 102, 241, 0.1), 0 4px 16px rgba(124, 58, 237, 0.06);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.pricing__price {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.pricing__currency {
  font-size: 40px;
}

.pricing__label {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.pricing__description {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pricing__promo {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 32px;
  padding: 6px 16px;
  background: #F5F3FF;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* ===========================
   FAQ
   =========================== */
.faq__list {
  max-width: 720px;
  margin: 32px auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: block;
  text-align: center;
  line-height: 30px;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: transform 0.25s;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 20px;
}

.faq__answer p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq__answer a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===========================
   Contacts
   =========================== */
.contacts {
  text-align: center;
}

.contacts__info {
  margin-top: 24px;
}

.contacts__item {
  font-size: 17px;
  margin-bottom: 8px;
}

.contacts__item a {
  color: var(--color-accent);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: linear-gradient(135deg, #1E293B 0%, #1E1B3A 50%, #2E1065 100%);
  color: #94A3B8;
  padding: 48px 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__brand {
  flex-shrink: 0;
}

.footer__logo {
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: #94A3B8;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #FFFFFF;
}

.footer__info {
  font-size: 14px;
}

.footer__legal {
  margin-top: 8px;
}

.footer__copyright {
  margin-top: 4px;
  opacity: 0.6;
}

/* ===========================
   Document pages (offer, privacy)
   =========================== */
.doc-page {
  padding-top: calc(var(--header-height) + 48px);
}

.doc-page__content {
  max-width: 720px;
  margin: 32px auto 0;
}

.doc-page__placeholder {
  text-align: center;
  padding: 64px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.doc-page__placeholder p {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.doc-page__placeholder p:last-child {
  margin-bottom: 0;
}

.doc-page__placeholder a {
  color: var(--color-accent);
}

.doc-page__iframe {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* ===========================
   Mobile menu overlay
   =========================== */
.header__nav--open {
  display: flex;
}

/* ===========================
   Responsive: Tablet (768px+)
   =========================== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 100px 0;
  }

  .section__title {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

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

  .vacancy-card__title {
    font-size: 15px;
  }
}

/* ===========================
   Responsive: Desktop (1024px+)
   =========================== */
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__links {
    gap: 32px;
  }
}

/* ===========================
   Responsive: Mobile (<768px)
   =========================== */
@media (max-width: 767px) {
  .header__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.97), rgba(99, 102, 241, 0.97), rgba(124, 58, 237, 0.97));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }

  .header__nav--open {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .header__link {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
  }

  .header__link:hover {
    color: #FFFFFF;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 48px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn--lg {
    width: 100%;
    max-width: 320px;
  }

  .mockup__content {
    padding: 12px;
    gap: 10px;
  }

  .vacancy-card {
    padding: 12px;
  }

  .vacancy-card__header {
    gap: 10px;
  }

  .pricing__price {
    font-size: 48px;
  }

  .pricing__currency {
    font-size: 32px;
  }

  .pricing__card {
    padding: 32px 20px;
  }
}
