/* ==========================================================================
   HMS Flow — Main Stylesheet
   Contents:
   1. Variables (color, typography, spacing)
   2. Base / Reset
   3. Utilities
   4. Buttons & badges
   5. Topbar, header, navigation, mobile menu
   6. Hero
   7. Sections (features, stats, steps, testimonials, pricing, faq, etc.)
   8. CTA band & footer
   9. Floating buttons
   10. Animations
   11. Responsive
   ========================================================================== */

/* 1. VARIABLES ----------------------------------------------------------- */
:root {
    --brand:        #2563eb;
    --brand-dark:   #1d4ed8;
    --brand-light:  #eef4ff;
    --brand-glow:   rgba(37, 99, 235, .32);

    --ink:          #12141d;   /* deep navy-black */
    --ink-2:        #1c2030;
    --navy:         #141b2d;
    --text:         #3a3f4c;
    --muted:        #6b7280;
    --line:         #e7e9ef;
    --bg:           #ffffff;
    --bg-soft:      #f7f8fb;
    --bg-softer:    #fbfcfe;

    --accent:       #14b8a6;   /* teal — success/confirm */
    --accent-dark:  #0d9488;
    --gold:         #f5b301;

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

    --shadow-sm:    0 2px 8px rgba(18,20,29,.06);
    --shadow:       0 12px 30px rgba(18,20,29,.08);
    --shadow-lg:    0 30px 70px rgba(18,20,29,.14);
    --shadow-brand: 0 16px 40px var(--brand-glow);

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

    --font:  'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --ease: cubic-bezier(.16,.84,.44,1);
}

/* 2. BASE / RESET ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

.icon { width: 22px; height: 22px; flex: none; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

::selection { background: var(--brand); color: #fff; }

/* 3. UTILITIES --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #cfd3df; }
.section--tight { padding: 60px 0; }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section--ink .section-head h2 { color: #fff; }
.section--ink .section-head p { color: #9aa1b4; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-light);
    padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.section--ink .eyebrow { background: rgba(37,99,235,.16); }

.grid { display: grid; gap: 26px; }
.text-center { text-align: center; }
.mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; } .mt-5 { margin-top: 40px; }

/* 4. BUTTONS & BADGES ------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font); font-weight: 700; font-size: .98rem; line-height: 1;
    padding: 14px 24px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
    cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
    white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 19px; height: 19px; }
.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 20px 46px var(--brand-glow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: #d3d6e0; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-lg); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font); font-weight: 700; font-size: .72rem; letter-spacing: .04em;
    padding: 5px 11px; border-radius: var(--radius-pill); text-transform: uppercase;
}
.badge--brand { background: var(--brand); color: #fff; }
.badge--accent { background: rgba(20,184,166,.14); color: var(--accent-dark); }

/* 5. TOPBAR / HEADER / NAV -------------------------------------------- */
.topbar { background: var(--ink); color: #aeb4c6; font-size: .84rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar__contact { display: flex; gap: 22px; align-items: center; }
.topbar__contact a, .topbar__hours { display: inline-flex; align-items: center; gap: 7px; color: #aeb4c6; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .icon, .topbar__hours .icon { width: 15px; height: 15px; color: var(--brand); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { color: #aeb4c6; padding: 5px; border-radius: 8px; transition: .2s; }
.topbar__social a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar__social .icon { width: 16px; height: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font); }
.brand__mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #5b8dff); color: #fff; box-shadow: var(--shadow-brand);
}
.brand__mark .icon { width: 23px; height: 23px; }
.brand__text { font-size: 1.42rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.brand__text span { color: var(--brand); }
.brand--light .brand__text { color: #fff; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__link {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    font-family: var(--font); font-weight: 600; font-size: .96rem; color: var(--ink-2);
    padding: 10px 15px; border-radius: 10px; transition: .2s;
}
.main-nav__link:hover { color: var(--brand); background: var(--bg-soft); }
.main-nav__link.is-active { color: var(--brand); }
.main-nav__caret { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.has-dropdown:hover .main-nav__caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
    min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transition: .24s var(--ease); z-index: 50;
}
.dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 20px; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__link { display: block; padding: 11px 14px; border-radius: 11px; transition: .18s; }
.dropdown__link:hover { background: var(--brand-light); }
.dropdown__title { display: block; font-family: var(--font); font-weight: 700; font-size: .95rem; color: var(--ink); }
.dropdown__desc { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }
body.menu-open .nav-toggle__open { display: none; }
body.menu-open .nav-toggle__close { display: block; }

/* Mobile menu */
.mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw); z-index: 200;
    background: #fff; box-shadow: var(--shadow-lg); padding: 26px 22px; overflow-y: auto;
    transform: translateX(105%); transition: transform .34s var(--ease); padding-top: 88px;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu__list > li { border-bottom: 1px solid var(--line); }
.mobile-menu__link { display: block; font-family: var(--font); font-weight: 700; font-size: 1.06rem; color: var(--ink); padding: 15px 4px; }
.mobile-menu__link.is-active { color: var(--brand); }
.mobile-menu__sub { padding: 0 0 12px 6px; }
.mobile-menu__sub a { display: block; padding: 8px 4px; color: var(--muted); font-size: .95rem; }
.mobile-menu__sub a:hover { color: var(--brand); }
.mobile-menu__actions { display: grid; gap: 10px; margin: 22px 0; }
.mobile-menu__contact { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-menu__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.mobile-menu__contact .icon { width: 18px; height: 18px; color: var(--brand); }
.mobile-menu__overlay {
    position: fixed; inset: 0; background: rgba(18,20,29,.5); backdrop-filter: blur(2px);
    z-index: 150; opacity: 0; visibility: hidden; transition: .3s;
}
body.menu-open .mobile-menu__overlay { opacity: 1; visibility: visible; }

/* 6. HERO ---------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 90px; overflow: hidden; background: var(--bg-softer); }
.hero::before {
    content: ''; position: absolute; top: -240px; right: -180px; width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(37,99,235,.14), transparent 62%); z-index: 0;
}
.hero::after {
    content: ''; position: absolute; bottom: -300px; left: -200px; width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(20,184,166,.12), transparent 62%); z-index: 0;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { margin: 18px 0 20px; }
.hero__title .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.hero__trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.hero__trust-item .icon { width: 20px; height: 20px; color: var(--accent); }
.hero__rating { display: inline-flex; align-items: center; gap: 4px; }
.hero__rating .icon { width: 17px; height: 17px; color: var(--gold); }

/* Hero visual — CSS-built dashboard mockup */
.hero__visual { position: relative; }
.mock {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line); overflow: hidden; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
    transition: transform .5s var(--ease);
}
.hero__visual:hover .mock { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock__dot { width: 11px; height: 11px; border-radius: 50%; background: #d7dae3; }
.mock__dot:nth-child(1){ background:#ff5f57; } .mock__dot:nth-child(2){ background:#febc2e; } .mock__dot:nth-child(3){ background:#28c840; }
.mock__title { margin-left: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mock__body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock__kpi { background: var(--bg-soft); border-radius: 14px; padding: 15px; }
.mock__kpi span { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mock__kpi strong { display: block; font-family: var(--font); font-size: 1.55rem; color: var(--ink); margin-top: 5px; }
.mock__kpi em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--accent-dark); }
.mock__chart { grid-column: 1 / -1; background: var(--bg-soft); border-radius: 14px; padding: 16px; }
.mock__bars { display: flex; align-items: flex-end; gap: 9px; height: 92px; margin-top: 12px; }
.mock__bars i { flex: 1; background: linear-gradient(var(--brand), #60a5fa); border-radius: 6px 6px 0 0; opacity: .9; animation: growBar 1s var(--ease) backwards; }
.mock__row { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--bg-soft); border-radius: 12px; }
.mock__row span { font-weight: 700; font-family: var(--font); color: var(--ink); font-size: .9rem; }
.mock__pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(20,184,166,.14); color: var(--accent-dark); }

.hero__float {
    position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 12px 15px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line);
    animation: floaty 4s ease-in-out infinite;
}
.hero__float .fico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; flex: none; }
.hero__float small { display: block; font-size: .72rem; color: var(--muted); }
.hero__float strong { font-family: var(--font); font-size: 1rem; color: var(--ink); }
.hero__float--1 { top: 22px; left: -28px; }
.hero__float--1 .fico { background: var(--accent); }
.hero__float--2 { bottom: 40px; right: -22px; animation-delay: 1.6s; }
.hero__float--2 .fico { background: var(--brand); }

/* Logo strip */
.logos { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logos__label { text-align: center; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 22px; }
.logos__row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.logos__row span { font-family: var(--font); font-weight: 800; font-size: 1.35rem; color: #b8bccb; letter-spacing: -.02em; transition: color .3s; }
.logos__row span:hover { color: var(--ink); }

/* 7. SECTIONS ------------------------------------------------------------ */
/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-light); color: var(--brand); margin-bottom: 18px; transition: .25s; }
.feature-card:hover .feature-card__icon { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.feature-card__icon .icon { width: 27px; height: 27px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.feature-card p { font-size: .95rem; color: var(--muted); }
a.feature-card { display: block; color: inherit; text-decoration: none; }
.feature-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--brand); }
.feature-card__link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
a.feature-card:hover .feature-card__link .icon { transform: translateX(4px); }

/* Split — visual + text feature groups */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 88px; }
.split--rev .split__media { order: 2; }
.split__media {
    background: linear-gradient(150deg, var(--bg-soft), #eef1f8); border-radius: var(--radius-lg);
    border: 1px solid var(--line); padding: 30px; position: relative; overflow: hidden;
}
.split__badge { display: inline-grid; width: 62px; height: 62px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); place-items: center; color: var(--brand); margin-bottom: 20px; }
.split__badge .icon { width: 30px; height: 30px; }
.feature-list { display: grid; gap: 13px; margin-top: 22px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.01rem; }
.feature-list .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(20,184,166,.14); color: var(--accent-dark); flex: none; margin-top: 2px; }
.feature-list .tick .icon { width: 14px; height: 14px; }

/* In-split mock rows */
.mini-rows { display: grid; gap: 12px; }
.mini-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.mini-row .mr-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-light); color: var(--brand); flex: none; }
.mini-row .mr-ico .icon { width: 21px; height: 21px; }
.mini-row .mr-main { flex: 1; }
.mini-row strong { display: block; font-family: var(--font); font-size: .98rem; color: var(--ink); }
.mini-row small { color: var(--muted); font-size: .82rem; }
.mini-row .mr-tag { font-family: var(--font); font-weight: 800; color: var(--accent-dark); font-size: .95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 10px; }
.stat__value { font-family: var(--font); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: #fff; line-height: 1; letter-spacing: -.03em; }
.section:not(.section--ink) .stat__value { color: var(--ink); }
.stat__value .suffix { color: var(--brand); }
.stat__label { margin-top: 10px; color: #9aa1b4; font-weight: 600; font-size: .96rem; }
.section:not(.section--ink) .stat__label { color: var(--muted); }

/* Steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { text-align: center; position: relative; }
.step__num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--brand); position: relative; z-index: 1; }
.step__num .icon { width: 28px; height: 28px; }
.step__index { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font); font-weight: 800; font-size: .82rem; display: grid; place-items: center; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }
.steps::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }

/* Solutions (segment cards) */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
    transition: .28s var(--ease); position: relative; overflow: hidden;
}
.solution-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), #60a5fa); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.solution-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.solution-card:hover::after { transform: scaleX(1); }
.solution-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-light), #dbe6ff); color: var(--brand); margin-bottom: 18px; }
.solution-card__icon .icon { width: 29px; height: 29px; }
.solution-card h3 { margin-bottom: 8px; }
.solution-card > p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.solution-card ul { display: grid; gap: 9px; }
.solution-card li { display: flex; gap: 9px; align-items: center; font-size: .9rem; color: var(--text); }
.solution-card li .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
    box-shadow: var(--shadow-sm); position: relative;
}
.testimonial__stars { display: flex; gap: 3px; margin-bottom: 15px; }
.testimonial__stars .icon { width: 18px; height: 18px; color: var(--gold); }
.testimonial__quote { font-size: 1.08rem; color: var(--ink-2); line-height: 1.6; font-weight: 500; }
.testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #60a5fa); color: #fff; display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 1.1rem; flex: none; }
.testimonial__name { font-family: var(--font); font-weight: 700; color: var(--ink); }
.testimonial__role { font-size: .85rem; color: var(--muted); }

/* Pricing */
.pricing-toggle { display: inline-flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px; margin: 0 auto 12px; }
.pricing-toggle button { border: 0; background: transparent; font-family: var(--font); font-weight: 700; font-size: .92rem; color: var(--muted); padding: 9px 20px; border-radius: var(--radius-pill); cursor: pointer; transition: .2s; }
.pricing-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pricing-save { color: var(--accent-dark); font-weight: 700; font-size: .82rem; background: rgba(20,184,166,.12); padding: 3px 9px; border-radius: 999px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.plan {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
    transition: .28s var(--ease); position: relative;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan--featured:hover { transform: scale(1.03) translateY(-4px); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-family: var(--font); font-weight: 700; font-size: .78rem; padding: 6px 16px; border-radius: 999px; letter-spacing: .03em; box-shadow: var(--shadow-brand); }
.plan__name { font-family: var(--font); font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.plan__audience { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 40px; }
.plan__price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.plan__amount { font-family: var(--font); font-size: 2.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan__cur { font-family: var(--font); font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.plan__per { color: var(--muted); font-size: .92rem; }
.plan__note { font-size: .82rem; color: var(--muted); min-height: 20px; }
.plan__cta { margin: 22px 0; }
.plan__features { display: grid; gap: 12px; }
.plan__features li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; }
.plan__features .icon { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.plan__quote { font-family: var(--font); font-size: 1.7rem; font-weight: 800; color: var(--ink); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .95rem; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font); }
.compare thead th { background: var(--ink); color: #fff; font-size: 1rem; }
.compare thead th:first-child { border-radius: 12px 0 0 0; text-align: left; }
.compare thead th:last-child { border-radius: 0 12px 0 0; }
.compare tbody td:first-child, .compare tbody th:first-child { text-align: left; font-weight: 600; color: var(--ink); font-family: var(--font-body); }
.compare .yes { color: var(--accent-dark); } .compare .yes .icon { width: 20px; height: 20px; margin: 0 auto; }
.compare .no { color: #cfd2dc; }
.compare tbody tr:hover { background: var(--bg-soft); }
.compare .row-group td { background: var(--bg-soft); font-family: var(--font); font-weight: 700; color: var(--ink); text-align: left; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; padding: 22px 24px; text-align: left; font-family: var(--font); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.faq-q .fq-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-light); color: var(--brand); flex: none; transition: .28s var(--ease); }
.faq-item.is-open .fq-ico { background: var(--brand); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-a__inner { padding: 0 24px 24px; color: var(--text); }

/* Content banner / page hero */
.page-hero { position: relative; background: var(--ink); color: #cfd3df; padding: 66px 0; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 60%); }
.page-hero__inner { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: #9aa1b4; font-size: 1.14rem; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #8a90a4; margin-bottom: 20px; }
.breadcrumb a { color: #b6bccd; } .breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { width: 15px; height: 15px; }

/* Values / feature rows (about) */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.value-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-light); color: var(--brand); margin-bottom: 16px; }
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .95rem; }

/* Integration cards */
.integrations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.integration { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .25s; }
.integration:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.integration__logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--bg-soft); font-family: var(--font); font-weight: 800; font-size: 1.15rem; color: var(--brand); flex: none; }
.integration h4 { font-size: 1.02rem; margin-bottom: 4px; }
.integration .integration__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); }
.integration p { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--brand-light); color: var(--brand); flex: none; }
.contact-info__item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-info__item p, .contact-info__item a { color: var(--muted); font-size: .96rem; }
.contact-info__item a:hover { color: var(--brand); }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.form-group label .req { color: var(--brand); }
.form-control {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-softer);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.form-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 14px; text-align: center; }

.alert { padding: 15px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 22px; display: flex; gap: 11px; align-items: center; }
.alert .icon { width: 20px; height: 20px; flex: none; }
.alert--success { background: rgba(20,184,166,.1); color: var(--accent-dark); border: 1px solid rgba(20,184,166,.3); }
.alert--error { background: #fef2f2; color: #dc2626; border: 1px solid rgba(220,38,38,.28); }

/* In-content CTA row */
.inline-cta { background: linear-gradient(135deg, var(--brand-light), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; text-align: center; }
.inline-cta h2 { margin-bottom: 12px; }
.inline-cta p { color: var(--muted); max-width: 540px; margin: 0 auto 24px; }

/* Prose (legal pages) */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.prose h3 { margin: 24px 0 10px; }
.prose p, .prose li { color: var(--text); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }

/* 8. CTA BAND & FOOTER -------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--brand), #5b8dff); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.18), transparent 45%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 58px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 10px; max-width: 520px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: #9aa1b4; padding: 68px 0 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer__about { margin: 18px 0 20px; font-size: .92rem; color: #8b91a4; line-height: 1.7; }
.site-footer__social { display: flex; gap: 9px; }
.site-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); color: #cfd3df; transition: .22s; }
.site-footer__social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__apps { margin-top: 22px; }
.site-footer__apps-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8b91a4; margin-bottom: 10px; }
.site-footer__apps-row { display: flex; flex-wrap: wrap; gap: 9px; }
.app-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: rgba(255,255,255,.06); color: #cfd3df; font-size: .85rem; font-weight: 600; transition: .22s; }
.app-badge:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.app-badge .icon { width: 16px; height: 16px; }
.site-footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer__col ul { display: grid; gap: 11px; }
.site-footer__col a { color: #9aa1b4; font-size: .93rem; }
.site-footer__col a:hover { color: var(--brand); }
.site-footer__contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; color: #9aa1b4; }
.site-footer__contact .icon { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.site-footer__contact a { color: #9aa1b4; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; flex-wrap: wrap; }
.site-footer__bottom p { font-size: .88rem; color: #808799; }
.site-footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__legal a { color: #808799; font-size: .86rem; }
.site-footer__legal a:hover { color: #fff; }

/* 9. FLOATING BUTTONS ------------------------------------------------------ */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s var(--ease); }
.float-wa:hover { transform: scale(1.08); color: #fff; }
.float-wa .icon { width: 30px; height: 30px; }
.float-wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }

.to-top { position: fixed; right: 24px; bottom: 88px; z-index: 89; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top__icon { transform: rotate(180deg); width: 22px; height: 22px; }
.to-top:hover { background: var(--brand); }

/* 10. ANIMATIONS ------------------------------------------------------- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes growBar { from { height: 0; } }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

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

/* 11. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats, .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .solutions-grid, .value-grid, .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .main-nav, .site-header__actions { display: none; }
    .nav-toggle { display: block; }
    .hero__inner { grid-template-columns: 1fr; gap: 44px; }
    .hero__visual { max-width: 520px; margin: 0 auto; }
    .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
    .split__media { order: -1 !important; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .plan--featured { transform: none; }
    .plan--featured:hover { transform: translateY(-4px); }
    .testimonials-grid, .contact-grid { grid-template-columns: 1fr; }
    .topbar__contact .topbar__hours { display: none; }
}

@media (max-width: 620px) {
    :root { --header-h: 64px; }
    .section { padding: 60px 0; }
    .features-grid, .stats, .steps, .solutions-grid, .value-grid, .integrations-grid,
    .form-row, .site-footer__grid { grid-template-columns: 1fr; }
    .container { padding-inline: 18px; }
    .topbar__contact a:not(:first-child) { display: none; }
    .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
    .cta-band p { margin-inline: auto; }
    .cta-band__actions, .hero__actions { width: 100%; }
    .cta-band__actions .btn, .hero__actions .btn { flex: 1; }
    .site-footer__bottom { flex-direction: column; text-align: center; }
    .hero__float { display: none; }
    .mock { transform: none; }
    .compare-wrap { overflow-x: auto; }
    .compare { min-width: 560px; }
}

/* ==========================================================================
   12. INTERNATIONALISATION — language switcher, RTL, script fonts
   ========================================================================== */

/* --- Topbar right cluster --- */
.topbar__right { display: flex; align-items: center; gap: 14px; }

/* --- Language switcher (topbar) --- */
.lang-switch { position: relative; }
.lang-switch__btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06); color: #cdd2e0;
    border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
    padding: 4px 9px; font-family: var(--font-body); font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: .2s;
}
.lang-switch__btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.lang-switch__btn .icon { width: 15px; height: 15px; color: var(--brand); }
.lang-switch__code { letter-spacing: .05em; }
.lang-switch__caret { width: 13px !important; height: 13px !important; color: #cdd2e0 !important; transition: transform .25s var(--ease); }
.lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 340px; max-width: 80vw;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 120; max-height: 72vh; overflow-y: auto;
}
.lang-switch.is-open .lang-switch__menu,
.lang-switch:hover .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__opt {
    display: flex; align-items: baseline; gap: 9px;
    padding: 8px 10px; border-radius: 9px; color: var(--text); transition: .16s;
}
.lang-switch__opt:hover { background: var(--bg-soft); color: var(--ink); }
.lang-switch__opt.is-active { background: var(--brand-light); color: var(--brand); font-weight: 700; }
.lang-switch__opt-code { font-size: .68rem; font-weight: 700; color: var(--muted); min-width: 22px; }
.lang-switch__opt.is-active .lang-switch__opt-code { color: var(--brand); }
.lang-switch__opt-name { font-size: .9rem; font-family: var(--font-body); }

/* --- Language grid (mobile menu) --- */
.mobile-menu__lang { margin: 6px 0 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-menu__lang-label { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.mobile-menu__lang-label .icon { width: 18px; height: 18px; color: var(--brand); }
.mobile-menu__lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mobile-menu__lang-opt { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--text); text-align: center; }
.mobile-menu__lang-opt.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-light); font-weight: 700; }

/* --- Script-specific font stacks --- */
html[lang="ar"], html[lang="fa"] {
    --font:      'Segoe UI', Tahoma, 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
    --font-body: 'Segoe UI', Tahoma, 'Geeza Pro', 'Noto Naskh Arabic', 'Noto Sans Arabic', sans-serif;
}
html[lang="zh"] {
    --font:      'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}
html[lang="ja"] {
    --font:      'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
    --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif;
}
html[lang="ka"] {
    --font:      'BPG Nino Mtavruli', 'Noto Sans Georgian', 'Sylfaen', system-ui, sans-serif;
    --font-body: 'BPG Nino Mtavruli', 'Noto Sans Georgian', 'Sylfaen', system-ui, sans-serif;
}

/* --- Right-to-left (Arabic, Persian) --- */
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-switch__menu { right: auto; left: 0; }
[dir="rtl"] .float-wa { right: auto; left: 22px; }
[dir="rtl"] .to-top { right: auto; left: 24px; }
[dir="rtl"] .breadcrumb .icon { transform: scaleX(-1); }
[dir="rtl"] .feature-card__link .icon,
[dir="rtl"] .hero__actions .btn > .icon:last-child,
[dir="rtl"] .cta-band__actions .btn > .icon:last-child { transform: scaleX(-1); }
[dir="rtl"] .plan__cur { margin-right: 0; }
@media (max-width: 620px) {
    .lang-switch__menu { width: 300px; }
}
