/* ==========================================================
   FitSoft — landing page
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --accent: #C6F432;
  --accent-rgb: 198, 244, 50;
  --orange: #FF9F43;

  --ink: #0E1116;
  --ink-2: #161A21;
  --ink-3: #1F242D;
  --line-dark: #2A303B;
  --muted-dark: #A6ADBB;

  --bg: #F5F6F8;
  --white: #FFFFFF;
  --line: #E4E7EC;
  --muted: #4A5260;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --pill: 999px;

  --container: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', 'Noto Sans Georgian', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.split--top { align-items: start; }

.section { padding: 112px 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--ink); color: var(--white); }
.section--tight-top { padding-top: 0; }

.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.section__head--flush { margin-bottom: 0; gap: 20px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; font-weight: 800; }
.section__title--center { text-align: center; margin-bottom: 40px; }
.section__text { font-size: 18px; color: var(--muted); }
.section--dark .section__text { color: var(--muted-dark); }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow--accent { color: var(--accent); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .75); }
.btn--ghost { color: var(--white); border-color: #3A4150; }
.btn--ghost:hover { border-color: var(--white); }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 44px; padding: 10px 20px; }
.btn--lg { min-height: 52px; padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; font-size: 17px; min-height: 52px; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 110; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-3);
  color: var(--white);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo__mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.logo__mark svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo__text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.logo--sm .logo__mark { width: 28px; height: 28px; border-radius: 8px; }
.logo--sm .logo__mark svg { width: 16px; height: 16px; }
.logo--sm .logo__text { font-size: 18px; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__link { position: relative; color: #C9CED8; text-decoration: none; transition: color .2s; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 72px 0 96px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(36px, 5vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.hero__text { font-size: 19px; color: var(--muted-dark); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; color: var(--muted-dark); }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks li::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--pill);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }

/* Dashboard mock */
.mock-wrap { animation: fadeIn 1s .3s both; }
.mock {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: floaty 6s ease-in-out 1.3s infinite;
}
.mock__top { display: flex; align-items: center; justify-content: space-between; }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A4150; }
.mock__url { font-size: 12px; color: var(--muted-dark); }
.mock__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock__stat { background: var(--ink); border-radius: 14px; padding: 14px; font-size: 12px; color: var(--muted-dark); }
.meter {
  display: block;
  height: 10px;
  width: var(--w);
  margin-top: 12px;
  border-radius: 6px;
  background: var(--accent);
  transform-origin: left;
  animation: growX 1.1s var(--ease) .7s both;
}
.meter--white { background: var(--white); }
.meter--orange { background: var(--orange); }
.mock__panel { background: var(--ink); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock__label { font-size: 13px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px;
  background: var(--line-dark);
  transform-origin: bottom;
  animation: grow .9s var(--ease) both;
}
.bars i.is-active { background: var(--accent); }
.bars i:nth-child(1) { animation-delay: .6s; }
.bars i:nth-child(2) { animation-delay: .7s; }
.bars i:nth-child(3) { animation-delay: .8s; }
.bars i:nth-child(4) { animation-delay: .9s; }
.bars i:nth-child(5) { animation-delay: 1s; }
.bars i:nth-child(6) { animation-delay: 1.1s; }
.bars i:nth-child(7) { animation-delay: 1.2s; }
.mock__list { padding: 8px 16px; gap: 0; }
.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-3);
  animation: slideIn .6s var(--ease) both;
}
.mock__row:last-child { border-bottom: 0; }
.mock__row:nth-child(1) { animation-delay: 1.1s; }
.mock__row:nth-child(2) { animation-delay: 1.25s; }
.mock__row:nth-child(3) { animation-delay: 1.4s; }
.mock__member { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mock__member i { width: 30px; height: 30px; border-radius: 50%; background: var(--line-dark); }

.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); background: var(--line-dark); color: var(--white); white-space: nowrap; }
.tag--accent { background: var(--accent); color: var(--ink); }
.tag--orange { background: var(--orange); color: var(--ink); }

/* ---------- Audience strip ---------- */
.strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 32px 0; }
.strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; font-size: 16px; font-weight: 600; color: var(--muted); }
.strip__list li { display: flex; align-items: center; }
.strip__list li + li::before { content: "•"; color: #C9CED8; margin-right: 18px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(14, 17, 22, .35); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__title { font-size: 20px; font-weight: 700; }
.card__text { font-size: 16px; color: var(--muted); }

.card--dark { background: var(--ink-2); border-color: var(--line-dark); padding: 32px; }
.card--dark:hover { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.card--dark .card__title { font-size: 21px; }
.card--dark .card__text { color: var(--muted-dark); }
.step__num { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ---------- Benefits ---------- */
.benefits { display: flex; flex-direction: column; gap: 14px; }
.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.benefit:hover { transform: translateX(6px); box-shadow: 0 12px 30px -18px rgba(14, 17, 22, .3); }
.benefit__check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.benefit__check svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.benefit strong { display: block; font-size: 17px; }
.benefit p { font-size: 15px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { padding: 36px; border-radius: var(--radius-lg); gap: 20px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 22px; font-weight: 700; }
.plan__desc { font-size: 15px; color: var(--muted); margin-top: -12px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 44px; font-weight: 800; line-height: 1.2; }
.plan__price span { font-size: 15px; color: var(--muted); }
.plan__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; flex-grow: 1; }
.plan__list li { display: flex; gap: 10px; }
.plan__list li::before { content: "✓"; font-weight: 800; color: var(--ink); }

.plan--featured { background: var(--ink); color: var(--white); border: 2px solid var(--accent); }
.plan--featured .plan__desc,
.plan--featured .plan__price span { color: var(--muted-dark); }
.plan--featured .plan__list { color: var(--line); }
.plan--featured .plan__list li::before { color: var(--accent); }
.plan--featured:hover { box-shadow: 0 24px 50px -20px rgba(var(--accent-rgb), .45); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  transition: border-color .25s, box-shadow .25s;
}
.faq__item:hover { border-color: #C9CED8; }
.faq__item[open] { box-shadow: 0 12px 30px -20px rgba(14, 17, 22, .35); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; width: 20px; height: 20px; transition: transform .3s var(--ease); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; inset: 9px 0 auto; height: 2px; background: currentColor; border-radius: 2px; }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding-top: 14px; font-size: 16px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--ink-2);
  color: var(--white);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s;
}
a.contact__item:hover { transform: translateX(6px); border-color: rgba(var(--accent-rgb), .5); }
.contact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.contact__item small { display: block; font-size: 13px; color: var(--muted-dark); }
.contact__item strong { font-size: 18px; }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__title { font-size: 24px; font-weight: 800; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font-size: 16px;
  padding: 14px 16px;
  min-height: 48px;
  border: 1px solid #C9CED8;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .45); }
.field.has-error input { border-color: #D92D20; }
.form__status { font-size: 14px; font-weight: 600; text-align: center; min-height: 1em; }
.form__status.is-success { color: #067647; }
.form__status.is-error { color: #D92D20; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -10px; }

/* ---------- Footer ---------- */
.footer { background: #0A0C10; color: var(--muted-dark); padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a { text-decoration: none; transition: color .2s; }
.footer__nav a:hover { color: var(--white); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animations ---------- */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); }
  70%  { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

.fade-up { animation: fadeUp .8s var(--ease) both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; }

/* Scroll reveal (JS adds .js to <html> and .is-visible to elements) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s, border-color .35s;
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .benefit.reveal.is-visible:hover { transform: translateX(6px); transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 12px 0; font-size: 17px; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 8px; }
  .section { padding: 80px 0; }
  .section--tight-top { padding-top: 0; }
  .hero { padding: 48px 0 72px; }
}

@media (max-width: 560px) {
  .form, .plan { padding: 26px; }
  .mock__stats { grid-template-columns: 1fr; }
  .strip__list li + li::before { display: none; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
