/* 11 ACTIVE-IT — Emerald design system (shared: tokens, buttons, header, footer) */

:root {
  --em-50: #EEF9F2;
  --em-100: #D7F2E1;
  --em-200: #B0E6C4;
  --em-300: #84D9A3;
  --em-400: #6AD18F;
  --em-500: #50C878;
  --em-600: #38B062;
  --em-700: #1E7A46;
  --em-800: #155C34;
  --em-rgb: 80, 200, 120;

  --ink-950: #07110C;
  --ink-900: #0B1711;
  --ink-800: #0F1F17;
  --ink-700: #183126;
  --ink-600: #2A4236;

  --text: #16241C;
  --text-muted: #5A6B62;
  --bg: #F4F8F5;
  --surface: #FFFFFF;
  --border: #E2ECE5;

  --amber: #F4B740;
  --danger: #E5484D;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 23, .06), 0 1px 3px rgba(15, 31, 23, .08);
  --shadow: 0 8px 24px rgba(15, 31, 23, .08);
  --shadow-lg: 0 24px 60px rgba(15, 31, 23, .14);
  --shadow-glow: 0 10px 30px rgba(var(--em-rgb), .35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* template variables of the public theme */
  --clickapp-base: #50C878;
  --clickapp-base-rgb: 80, 200, 120;
  --clickapp-black: #0F1F17;
  --clickapp-black-rgb: 15, 31, 23;
  --clickapp-gray: #5A6B62;
  --clickapp-gray-rgb: 90, 107, 98;
  --clickapp-primary: #F4F8F5;
  --clickapp-primary-rgb: 244, 248, 245;
  --clickapp-bdr-color: #E2ECE5;
  --clickapp-bdr-radius: 16px;
  --clickapp-font: "Manrope", sans-serif;
  --clickapp-font-two: "Manrope", sans-serif;
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--em-500); color: var(--ink-900); }

/* overflow:hidden on the template wrapper breaks position:sticky of the header */
.page-wrapper { overflow: clip !important; }

.x-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.x-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 24px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}

.x-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}

.x-btn:hover { transform: translateY(-2px); }
.x-btn:hover .x-btn__icon { transform: rotate(-45deg); }
.x-btn:active { transform: translateY(0) scale(.98); }
.x-btn:focus-visible { outline: 3px solid rgba(var(--em-rgb), .55); outline-offset: 3px; }

.x-btn--primary { background: var(--em-500); color: var(--ink-900) !important; box-shadow: var(--shadow-glow); }
.x-btn--primary .x-btn__icon { background: var(--ink-900); color: var(--em-500); }
.x-btn--primary:hover { background: var(--em-400); box-shadow: 0 16px 40px rgba(var(--em-rgb), .45); }

.x-btn--ghost { background: rgba(255, 255, 255, .06); color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.x-btn--ghost .x-btn__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.x-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--em-500); color: var(--em-300) !important; }
.x-btn--ghost:hover .x-btn__icon { background: var(--em-500); color: var(--ink-900); }

.x-btn--outline { background: transparent; color: var(--ink-800) !important; box-shadow: inset 0 0 0 1.5px var(--border); }
.x-btn--outline .x-btn__icon { background: var(--em-50); color: var(--em-700); }
.x-btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--em-500); background: var(--surface); }
.x-btn--outline:hover .x-btn__icon { background: var(--em-500); color: var(--ink-900); }

.x-btn--dark { background: var(--ink-800); color: #fff !important; }
.x-btn--dark .x-btn__icon { background: var(--em-500); color: var(--ink-900); }
.x-btn--dark:hover { background: var(--ink-700); box-shadow: var(--shadow-lg); }

.x-btn--sm { min-height: 46px; padding: 6px 6px 6px 18px; font-size: 15px; }
.x-btn--sm .x-btn__icon { width: 34px; height: 34px; font-size: 12px; }

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--em-700);
  text-decoration: none;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.x-link:hover { gap: 14px; color: var(--ink-800); }

/* ---------- Floating header ---------- */

.x-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  margin: 14px 0 0;
  padding: 0 14px;
  pointer-events: none;
}
.x-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 10px 10px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(15, 31, 23, .06), 0 4px 18px rgba(15, 31, 23, .05);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease), min-height .35s var(--ease);
}
.x-header.is-scrolled .x-header__bar { min-height: 64px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(15, 31, 23, .06), 0 14px 40px rgba(15, 31, 23, .12); }
.x-header__logo img { display: block; width: 176px; height: auto; }

.x-nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 5px; list-style: none; border-radius: var(--radius-pill); background: rgba(15, 31, 23, .04); }
.x-nav a {
  position: relative;
  display: block;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .25s, background-color .25s, box-shadow .25s;
}
.x-nav a:hover { color: var(--em-700); }
.x-nav a.is-active { color: var(--ink-900); background: var(--surface); box-shadow: var(--shadow-sm); }
.x-nav a.is-active::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--em-500); vertical-align: middle; transform: translateY(-1px); }

.x-header__actions { display: flex; align-items: center; gap: 8px; }
.x-header__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.x-header__login:hover { background: var(--em-50); color: var(--em-700); }

.x-burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--ink-800);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.x-drawer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; visibility: hidden; transition: visibility 0s linear .45s; }
.x-drawer.is-open { visibility: visible; transition: none; pointer-events: auto; }
.x-drawer__overlay { position: absolute; inset: 0; background: rgba(7, 17, 12, .55); opacity: 0; transition: opacity .35s var(--ease); }
.x-drawer__panel {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(380px, calc(100vw - 20px));
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: #fff;
  transform: translateX(110%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.x-drawer.is-open .x-drawer__overlay { opacity: 1; }
.x-drawer.is-open .x-drawer__panel { transform: translateX(0); }
.x-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.x-drawer__head img { width: 160px; }
.x-drawer__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; cursor: pointer; }
.x-drawer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.x-drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 14px; color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; transition: background-color .25s, color .25s; }
.x-drawer__nav a::after { content: "\2192"; opacity: .35; transition: opacity .25s, transform .25s var(--ease); }
.x-drawer__nav a:hover, .x-drawer__nav a.is-active { background: rgba(var(--em-rgb), .14); color: var(--em-400); }
.x-drawer__nav a:hover::after, .x-drawer__nav a.is-active::after { opacity: 1; transform: translateX(4px); }
.x-drawer__panel .x-btn { justify-content: space-between; }
.x-drawer__contact { margin-top: auto; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.x-drawer__contact a { color: #fff; text-decoration: none; }
.x-drawer__contact i { color: var(--em-500); width: 20px; }

/* ---------- Shared section primitives ---------- */

.x-section { padding: 120px 0; }
.x-section--tint { background: var(--bg); }

.x-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--em-50);
  color: var(--em-700);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.x-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em-500);
  box-shadow: 0 0 0 4px rgba(var(--em-rgb), .2);
  animation: x-ping 2.4s var(--ease) infinite;
}
.x-eyebrow--dark { background: rgba(var(--em-rgb), .12); color: var(--em-300); }

.x-title {
  margin: 18px 0 0;
  font-family: var(--font);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--ink-800);
}
.x-title span { color: var(--em-600); }
.x-nowrap { white-space: nowrap; font-weight: inherit; }
.x-lead { margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Closing CTA ---------- */

.x-cta { padding: 0 0 120px; }
.x-cta--top { padding-top: 120px; }
.x-cta__box {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
  padding: 72px;
  border-radius: 40px;
  background: var(--em-500);
  color: var(--ink-900);
  overflow: hidden;
  isolation: isolate;
}
.x-cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .35), transparent 40%),
    repeating-radial-gradient(circle at 110% 120%, rgba(15, 31, 23, .08) 0 2px, transparent 2px 28px);
}
.x-cta__kicker { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-700); }
.x-cta h2 { margin: 16px 0 0; font-family: var(--font); font-size: clamp(30px, 4.2vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; color: var(--ink-900); }
.x-cta p { margin: 18px 0 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: rgba(15, 31, 23, .75); }
.x-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.x-cta__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-900); text-decoration: none; border-bottom: 2px solid rgba(15, 31, 23, .25); padding-bottom: 2px; transition: border-color .25s; }
.x-cta__mail:hover { color: var(--ink-900); border-color: var(--ink-900); }

@media (max-width: 991px) {
  .x-cta__box { grid-template-columns: 1fr; padding: 48px 32px; }
}
@media (max-width: 600px) {
  .x-cta { padding-bottom: 72px; }
  .x-cta--top { padding-top: 72px; }
  .x-cta__box { padding: 40px 24px; border-radius: 28px; }
  .x-cta p { font-size: 16.5px; }
  .x-cta__actions { align-items: stretch; }
  .x-cta__actions .x-btn { justify-content: space-between; }
  .x-cta__mail { justify-content: center; }
}

/* ---------- Footer ---------- */

.x-footer { position: relative; padding-top: 96px; background: var(--ink-900); color: rgba(255, 255, 255, .66); overflow: hidden; }
.x-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -260px;
  width: 900px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--em-rgb), .16), transparent);
  pointer-events: none;
}
.x-footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.x-footer__logo { width: 190px; margin-bottom: 22px; }
.x-footer p { margin: 0; font-size: 15px; line-height: 1.75; }
.x-footer h4 { margin: 0 0 22px; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--em-400); }
.x-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.x-footer__links a { display: inline-block; color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .25s, transform .25s var(--ease); }
.x-footer__links a:hover { color: var(--em-400); transform: translateX(4px); }
.x-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.x-footer__contact li { display: flex; gap: 14px; align-items: flex-start; }
.x-footer__contact i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(var(--em-rgb), .12); color: var(--em-400); font-size: 14px; }
.x-footer__contact a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.x-footer__contact a:hover { color: var(--em-400); }
.x-footer .x-footer__mark {
  position: relative;
  margin: 0 0 -0.12em;
  padding: 10px 0 0;
  font-size: clamp(64px, 15.5vw, 230px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--em-rgb), .28);
  background: linear-gradient(180deg, rgba(var(--em-rgb), .22), rgba(var(--em-rgb), 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.x-footer__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.x-footer__bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.x-footer__bottom a:hover { color: var(--em-400); }
.x-footer__legal { display: flex; gap: 24px; }

.x-totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--ink-800);
  color: var(--em-400);
  font-size: 16px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s;
}
.x-totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.x-totop:hover { background: var(--em-500); color: var(--ink-900); }

/* ---------- Reveal animations ---------- */

[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes x-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes x-ping { 0% { box-shadow: 0 0 0 0 rgba(var(--em-rgb), .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(var(--em-rgb), 0); } }

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

/* ---------- Legacy template components (inner pages) ---------- */

.thm-btn { border-radius: var(--radius-pill) !important; color: var(--ink-900) !important; font-family: var(--font); font-weight: 700 !important; box-shadow: var(--shadow-glow); }
.thm-btn > span { border-radius: 50% !important; background-color: var(--ink-900) !important; color: var(--em-500) !important; }
.thm-btn:hover { color: #fff !important; }
.thm-btn:before, .thm-btn:after { background-color: var(--ink-800) !important; }
.thm-btn:hover > span { background-color: var(--em-500) !important; color: var(--ink-900) !important; }
.page-header__bg { filter: hue-rotate(-40deg); }
.section-title__title, h1, h2, h3, h4, h5 { font-family: var(--font); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .x-footer__grid { grid-template-columns: 1fr 1fr; }
  .x-nav a { padding: 10px 14px; }
}

@media (max-width: 1080px) {
  .x-nav, .x-header__actions .x-btn, .x-header__login { display: none; }
  .x-burger { display: inline-flex; align-items: center; justify-content: center; }
  .x-section { padding: 88px 0; }
}

@media (max-width: 767px) {
  h1, h2, h3, .x-title { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
  .x-section { padding: 68px 0; }
  .x-title { font-size: clamp(28px, 8vw, 38px); }
  .x-lead { font-size: 16.5px; }
  .x-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 14px; font-size: 14px; opacity: 0; }
  .x-totop.is-visible { opacity: .92; }
}

@media (max-width: 600px) {
  .x-container { padding: 0 18px; }
  .x-header { top: 8px; margin-top: 8px; padding: 0 8px; }
  .x-header__bar { min-height: 62px; padding: 8px 8px 8px 16px; border-radius: 18px; }
  .x-header__logo img { width: 146px; }
  .x-burger { width: 46px; height: 46px; }
  .x-btn { font-size: 15px; min-height: 52px; }
  .x-totop { display: none; }
  .x-btn-row { flex-direction: column; align-items: stretch; }
  .x-btn-row .x-btn { width: 100%; justify-content: space-between; }

  .x-footer { padding-top: 64px; }
  .x-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 36px; }
  .x-footer__grid > :first-child, .x-footer__grid > :last-child { grid-column: 1 / -1; }
  .x-footer__logo { width: 160px; margin-bottom: 16px; }
  .x-footer h4 { margin-bottom: 14px; }
  .x-footer__links { gap: 10px; }
  .x-footer__bottom { flex-direction: column-reverse; gap: 12px; text-align: center; }
  .x-footer .x-footer__mark { font-size: 16vw; }
}
