/* ============================================================
   SnapHire — coming-soon landing
   Design tokens
   ============================================================ */
:root {
  --accent: #5B5BD6;
  --bg: #161513;
  --surface: #201F1C;
  --surface-alt: #1B1A17;
  --border: #2E2D29;
  --border-strong: #33322E;

  --text: #F2F1EC;
  --text-muted: #A6A49A;
  --text-dim: #8C8A81;
  --text-faint: #7C7A72;

  --success: #5FB98B;
  --danger: #E4634A;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes shc-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Page layout
   ============================================================ */
.page {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -10%, #211F49 0%, #17161400 52%),
    radial-gradient(90% 70% at 90% 110%, #1E1D33 0%, #16151300 55%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Brand
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shc-fade .5s ease both;
}
/* Логотип із дизайн-системи (білий варіант для тёмного фону).
   Пропорція 3.7385:1 — задаємо тільки висоту, ширина рахується сама. */
.brand__logo {
  height: 64px;
  width: auto;
  display: block;
}

/* ============================================================
   Headline + lead
   ============================================================ */
.headline {
  max-width: 760px;
  text-align: center;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 0;
  text-wrap: balance;
  animation: shc-rise .5s ease .05s both;
}
.headline__accent { color: var(--accent); }

.lead {
  max-width: 560px;
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 20px 0 0;
  text-wrap: pretty;
  animation: shc-rise .5s ease .12s both;
}
.lead strong { color: var(--text); font-weight: 700; }

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 48px 0 0;
  animation: shc-rise .5s ease .2s both;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.countdown__cell {
  min-width: 118px;
  padding: 20px 10px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.countdown__cell--accent { color: var(--accent); }
.countdown__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.countdown__sep {
  font-size: 44px;
  font-weight: 700;
  color: #3A3833;
  margin-bottom: 34px;
}

/* ============================================================
   CTA button
   ============================================================ */
.cta {
  margin-top: 44px;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 34px -16px var(--accent);
  transition: filter .16s ease, transform .16s ease;
  animation: shc-rise .5s ease .26s both;
}
.cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.cta:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}
.cta--block {
  width: 100%;
  margin-top: 22px;
  animation: none;
}

/* ============================================================
   Segment links (b2b / b2c)
   ============================================================ */
.segments {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 0;
  animation: shc-rise .5s ease .3s both;
}
.segments__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.segments__link:hover {
  border-color: var(--accent);
  background: #26251F;
  transform: translateY(-1px);
}
.segments__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.segments__hint {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ============================================================
   Footer note
   ============================================================ */
.note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 30px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  animation: shc-fade .6s ease .3s both;
}
.note__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* ============================================================
   Social
   ============================================================ */
.social__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 32px 0 0;
  animation: shc-fade .6s ease .34s both;
}
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  animation: shc-fade .6s ease .36s both;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.social__link:hover {
  border-color: #4A4843;
  background: #26251F;
  color: var(--text);
}

/* ============================================================
   Modal
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 9, 0.62);
  backdrop-filter: blur(6px);
  animation: shc-fade .18s ease both;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  animation: shc-rise .24s ease both;
}
.modal__view[hidden] { display: none; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.modal__title--center { text-align: center; }
.modal__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background .16s ease;
}
.modal__close:hover { background: #26251F; }

.modal__text {
  font-size: 14.5px;
  line-height: 1.5;
  color: #9A988F;
  margin: 10px 0 22px;
}
.modal__text--center { text-align: center; margin: 6px 0 0; }
.modal__text strong { color: var(--text); font-weight: 700; }

.modal__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
.modal__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
  transition: border-color .16s ease;
}
.modal__input:focus { border-color: var(--accent); }
.modal__error {
  font-size: 13px;
  color: var(--danger);
  font-weight: 600;
  margin: 9px 0 0;
}
.modal__error[hidden] { display: none; }
.modal__captcha {
  margin: 16px 0 0;
  min-height: 65px;
}
.modal__fineprint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: center;
  margin: 14px 0 0;
}

/* Success view */
.modal__view#view-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.modal__view#view-success[hidden] { display: none; }
.modal__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 185, 139, 0.14);
  margin-bottom: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .page { padding: 40px 20px; }
  .headline { font-size: 36px; }
  .lead { font-size: 17px; }
  .countdown { gap: 6px; }
  .countdown__cell {
    min-width: 0;
    width: 100%;
    font-size: 40px;
    padding: 14px 6px 16px;
    border-radius: var(--radius-md);
  }
  .countdown__unit { flex: 1; }
  .countdown__sep { font-size: 28px; margin-bottom: 30px; }
  .brand__logo { height: 52px; }
  .segments { width: 100%; max-width: 360px; flex-direction: column; gap: 10px; }
  .segments__link { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
