/* ============================================================
   AdminBeat — static redesign (Blocksy/Stackable design tokens)
   Fonts: Mulish (body) / Poppins (headings)
   Palette: --c-1 #048dc9  --c-2 #036a99  --c-head #0B1520
            --c-text #1E293B  --c-bg #F8FAFC  --c-gray #F6F6F6
   ============================================================ */
:root {
    --c-1: #048dc9;
    --c-2: #036a99;
    --c-head: #0B1520;
    --c-text: #1E293B;
    --c-bg: #F8FAFC;
    --c-gray: #F6F6F6;
    --c-card: #F2F2F2;
    --c-dark: #1d2233;
    --c-blue: #224DB7;
    --c-pink: #f00069;
    --c-star: #fcb900;
    --btn-dark: #0A1821;
    --font-body: 'Mulish', 'Segoe UI', Tahoma, sans-serif;
    --font-head: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    --container: 1290px;
    --head-h: 100px;
    --head-h-shrunk: 60px;
    --topbar-h: 40px;
    --radius: 8px;
    --shadow-soft: 0 2px 10px rgba(15, 23, 42, .08);
    --shadow-lg: 0 30px 60px rgba(15, 23, 42, .14);
    --grad-brand: linear-gradient(135deg, var(--c-1), var(--c-blue));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--c-1); transition: color .25s ease; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--c-head); margin: 0 0 .4em; line-height: 1.15; }
p { margin: 0 0 1.2em; }
ul { padding: 0; margin: 0; list-style: none; }

.container { width: 100%; width: min(100% - 48px, var(--container)); margin-inline: auto; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 800; font-size: 16px;
    text-transform: uppercase; letter-spacing: .5px; line-height: 1;
    padding: 18px 34px; border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-1); color: #fff; box-shadow: 0 10px 24px rgba(4,141,201,.28); }
.btn-primary:hover { background: var(--c-2); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(4,141,201,.36); }
.btn-blue { background: var(--c-blue); color: #fff; }
.btn-blue:hover { background: #1b3c8f; color: #fff; }
.btn-dark { background: var(--btn-dark); color: #fff; }
.btn-dark:hover { background: var(--c-1); color: #fff; }
.btn-white { background: #fff; color: var(--c-blue); }
.btn-white:hover { background: var(--c-1); color: #fff; }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--c-head); border-color: var(--c-head); }
.btn-ghost-dark:hover { background: var(--c-head); color: #fff; }
.btn-lg { padding: 20px 40px; }
.header-actions .btn { padding: 11px 20px; font-size: 13px; }
.btn-sm { padding: 13px 24px; font-size: 14px; }

/* ============================================================
   TOP BAR — #224DB7 utility bar with contact + CTA
   ============================================================ */
.site-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: var(--topbar-h);
    width: 100%; max-width: 100%; overflow: hidden;
    background: #224DB7; color: #fff;
}
.site-topbar .topbar-inner {
    height: 100%; min-width: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-phone {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .3px;
    transition: opacity .25s ease;
}
.topbar-phone svg { flex: none; }
.topbar-phone:hover { color: #fff; opacity: .85; }
.site-topbar .btn { flex: none; padding: 7px 16px; font-size: 12px; border-radius: 6px; box-shadow: none; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; gap: 32px; flex: none; }
.topbar-link {
    font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
    color: #fff; padding: 6px 0; position: relative; white-space: nowrap;
}
.topbar-link::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--c-1); transition: right .25s ease;
}
.topbar-link:hover::after, .topbar-link.active::after { right: 0; }
.topbar-link:hover, .topbar-link.active { color: var(--c-1); }

/* ============================================================
   HEADER — transparent over hero, sticky + shrink on scroll
   ============================================================ */
.site-header {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1000;
    height: var(--head-h);
    width: 100%; max-width: 100%;
    display: flex; align-items: center;
    background: transparent;
    transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 100%; }
.site-header .container > * { min-width: 0; }
.site-logo { display: inline-flex; align-items: center; justify-self: start; }
.site-logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; transition: height .3s ease; }
.site-logo .logo-default { display: block; }
.site-logo .logo-sticky { display: none; }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 32px; justify-self: center; min-width: 0; }
.site-nav a { white-space: nowrap; }
.site-nav a {
    font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
    color: #fff; padding: 6px 0; position: relative;
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--c-1); transition: right .25s ease;
}
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a:hover, .site-nav a.active { color: var(--c-1); }
@media (max-width: 1400px) {
    .site-nav { gap: 20px; }
}

.header-actions { display: flex; align-items: center; gap: 22px; justify-self: end; min-width: 0; }
.header-actions > * { flex: none; }
.header-login {
    font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
    color: #fff; padding: 6px 0; position: relative;
    border-bottom: 2px solid transparent; transition: color .25s ease, border-color .25s ease;
}
.header-login:hover { color: var(--c-1); border-color: var(--c-1); }

.menu-toggle {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: background .3s ease; }

/* scrolled state */
.site-header.scrolled {
    height: var(--head-h-shrunk);
    background: #fff;
    box-shadow: 0 10px 20px rgba(44,62,80,.05);
}
.site-header.scrolled .site-logo img { height: 40px; }
.site-header.scrolled .site-logo .logo-default { display: none; }
.site-header.scrolled .site-logo .logo-sticky { display: block; }
.site-header.scrolled .site-nav a, .site-header.scrolled .header-login { color: var(--c-head); }
.site-header.scrolled .site-nav a:hover, .site-header.scrolled .site-nav a.active,
.site-header.scrolled .header-login:hover { color: var(--c-1); }
.site-header.scrolled .menu-toggle span { background: var(--c-head); }

/* ---------- Offcanvas mobile menu ---------- */
.offcanvas {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--c-dark); display: flex; flex-direction: column;
    padding: 30px 24px; transform: translateX(-100%); visibility: hidden;
    transition: transform .35s ease, visibility .35s ease; overflow-y: auto;
}
.offcanvas.open { transform: none; visibility: visible; }
.offcanvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.offcanvas-head img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.offcanvas-close { background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.offcanvas-nav { display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.offcanvas-nav a { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fff; }
.offcanvas-nav a:hover, .offcanvas-nav a.active { color: var(--c-1); }
.offcanvas-login {
    font-family: var(--font-head); font-weight: 700; font-size: 26px; color: #fff;
    border-bottom: 2px solid transparent; padding-bottom: 2px;
    align-self: flex-start; margin-bottom: 26px; transition: color .25s ease, border-color .25s ease;
}
.offcanvas-login:hover { color: var(--c-1); border-color: var(--c-1); }
.offcanvas .btn { align-self: flex-start; }

/* ============================================================
   HERO (homepage) — dark #1d2233, subtle line grid
   ============================================================ */
.hero {
    position: relative; background: var(--c-dark); color: #fff;
    padding: calc(var(--topbar-h) + var(--head-h) + 60px) 0 calc(0.39 * min(100vw - 48px, 1290px));
    overflow: hidden;
}
.hero-lines {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; height: 2px; width: 46px; background: var(--c-1); }
.hero-eyebrow span { font-size: 15px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase; color: var(--c-1); }
.hero-eyebrow span em { font-style: normal; color: var(--c-pink); }
.hero h1 {
    font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; line-height: 1.08;
    color: #fff; margin: 0 0 18px;
}
.hero-question { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 34px; }
.hero-question svg { color: var(--c-star); }
.hero-question span { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; color: #fff; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 40px; }
.hero-tag {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #fff;
    border: 2px solid rgba(255,255,255,.5); border-radius: 50px; padding: 12px 26px;
}
.hero-tag:hover { border-color: var(--c-1); color: var(--c-1); }
.hero-tag.tag-more { background: var(--c-pink); border-color: var(--c-pink); }
.hero-intro {
    max-width: 860px; margin: 0 auto; color: rgba(255,255,255,.78);
    font-size: clamp(17px, 2vw, 19px); line-height: 1.75;
}
.hero-actions { display: flex; justify-content: center; gap: 20px; margin: 40px 0 0; flex-wrap: wrap; }
.hero-wordmark { margin: 50px auto 50px; max-width: 512px; }

/* hero dashboard image — sibling of the hero, pulled up so ~70% of it overlaps the dark band and ~30% hangs into the light section */
.hero-media {
    position: relative; z-index: 5;
    width: 100%;
    width: min(100% - 48px, var(--container));
    margin: calc(-0.39 * min(100vw - 48px, 1290px)) auto 0;
}
.hero-media img { width: 100%; height: auto; }

/* ============================================================
   GENERIC SECTIONS
   ============================================================ */
.section { padding: 110px 0; }
.section.gray { background: var(--c-gray); }
.section.top-overlap { padding-top: 100px; }.sec-head { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.sec-head.sec-head-lg { max-width: 980px; }
.sec-tag {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--c-1);
}
.sec-head .sec-tag { margin-bottom: 16px; }
.sec-tag::before, .sec-tag::after { content: ""; height: 2px; width: 34px; background: var(--c-1); }
.sec-head h2 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 700; line-height: 1.12; }
.sec-head p { font-size: 18px; line-height: 1.7; margin: 0; }
.sec-head.center { text-align: center; }

/* ============================================================
   HOME — Services grid (8 cards)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-card {
    background: #fff; border-radius: 20px; padding: 46px 26px 38px; text-align: center;
    box-shadow: var(--shadow-soft); border-top: 5px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(15,23,42,.14); border-top-color: var(--c-1); }
.service-icon {
    width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 50%;
    background: linear-gradient(180deg, var(--c-1), var(--c-2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 28px rgba(4,141,201,.3);
}
.service-icon svg { width: 40px; height: 40px; color: #fff; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--c-text); }

/* ============================================================
   HOME — Gateway to online accounting
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split-media { position: relative; }
.split-media img { border-radius: 12px; }
.split-media .hard-shadow {
    box-shadow: 60px 60px 0 -20px var(--c-card);
}
.split-text h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; line-height: 1.15; }
.split-text p { font-size: 17px; line-height: 1.75; }
.split-text .btn { margin-top: 14px; }
.stats-row { display: flex; margin: 34px 0 30px; border-top: 1px solid var(--c-card); border-bottom: 1px solid var(--c-card); }
.stat { flex: 1; padding: 24px 20px; border-left: 1px solid var(--c-card); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(28px, 3vw, 42px); font-weight: 700; color: var(--c-head); line-height: 1; }
.stat span { font-size: 14px; font-weight: 700; color: var(--c-text); letter-spacing: .3px; }

/* ============================================================
   HOME — Web application based services (6 cards)
   ============================================================ */
.web-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.web-card {
    background: var(--c-card); border-radius: 12px; padding: 40px 32px;
    transition: background .3s ease, transform .3s ease;
}
.web-card:hover { background: var(--c-blue); transform: translateY(-6px); }
.web-icon {
    width: 66px; height: 66px; border-radius: 12px; background: #fff; color: var(--c-1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
    transition: background .3s ease, color .3s ease;
}
.web-icon svg { width: 32px; height: 32px; }
.web-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.web-card p { font-size: 15px; line-height: 1.65; margin-bottom: 18px; color: var(--c-text); }
.web-card .learn { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; color: var(--c-1); display: inline-flex; align-items: center; gap: 8px; }
.web-card:hover h3, .web-card:hover p, .web-card:hover .learn { color: #fff; }
.web-card:hover .web-icon { background: rgba(255,255,255,.16); color: #fff; }
.web-card .learn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.web-card:hover .learn svg { transform: translateX(4px); }

/* ============================================================
   HOME — From manual to digital
   ============================================================ */
.manual-media { position: relative; }
.manual-media img { border-radius: 12px; }
.manual-split { grid-template-columns: 1.35fr 1fr; gap: 40px; }
.manual-split .split-media { z-index: 1; }
.manual-split .split-media img { width: 100%; height: auto; }
.manual-card {
    background: rgba(255,255,255,.88); border-radius: 24px; box-shadow: 0 30px 70px rgba(15,23,42,.16);
    padding: 60px 54px; margin-bottom: -120px; margin-left: -130px;
    position: relative; z-index: 4;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.manual-card h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1.15; }
.manual-card p { font-size: 17px; line-height: 1.75; }
.manual-card .btn { margin-top: 16px; }

/* ============================================================
   HOME — Business automation processes
   ============================================================ */
.automation-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.automation-top h2 { font-size: clamp(34px, 4.8vw, 60px); font-weight: 700; max-width: 640px; line-height: 1.12; }
.automation-top p { font-size: 17px; line-height: 1.7; max-width: 460px; margin: 0; }
.automation-top .btn { flex: none; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 30px; }
.process-item { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; color: var(--c-head); }
.process-item svg { flex: none; color: var(--c-1); }

/* ============================================================
   CTA band — overlaps footer by 105px
   ============================================================ */
.cta-band {
    background: linear-gradient(120deg, var(--c-blue), var(--c-1));
    border-radius: 24px; padding: 64px 60px; margin-bottom: -105px; position: relative; z-index: 6;
    box-shadow: 0 30px 60px rgba(34,77,183,.28);
    display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin: 0; max-width: 560px; line-height: 1.15; }
.cta-btns { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--c-gray); padding-top: 210px; }
.footer-inner { padding-bottom: 56px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 26px; }
.footer-brand h3, .footer-col h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 380px; color: var(--c-text); }
.footer-col a { display: inline-block; font-size: 16px; color: var(--c-text); }
.footer-col a:hover { color: var(--c-1); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-top: 1px solid rgba(15,23,42,.12); padding-top: 30px;
}
.footer-bottom p { margin: 0; font-size: 15px; color: var(--c-text); }
.social-links { display: flex; gap: 14px; }
.social-links a {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--c-head);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-soft); transition: background .25s ease, color .25s ease, transform .25s ease;
}
.social-links a:hover { background: var(--c-1); color: #fff; transform: translateY(-3px); }
.social-links svg { width: 18px; height: 18px; }

/* ============================================================
   PAGE HERO (services / about) — dark, line grid
   ============================================================ */
.page-hero {
    position: relative; background: var(--c-dark); color: #fff; overflow: hidden;
    padding: calc(var(--topbar-h) + var(--head-h) + 70px) 0 120px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(42px, 6.5vw, 80px); font-weight: 700; line-height: 1.05; margin-bottom: 24px; }
.page-hero .lead { font-size: 19px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 34px; }
.page-hero .btn { margin-right: 14px; }
.hero-quote {
    display: flex; gap: 18px; align-items: flex-start; margin-top: 44px;
    background: rgba(255,255,255,.06); border-left: 4px solid var(--c-1);
    border-radius: 0 12px 12px 0; padding: 22px 26px; max-width: 560px;
}
.hero-quote blockquote { margin: 0; font-size: 16px; font-style: italic; line-height: 1.65; color: rgba(255,255,255,.85); }
.hero-quote footer { margin-top: 10px; font-style: normal; font-weight: 800; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   SERVICES page
   ============================================================ */
.services-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.reasons { background: var(--c-dark); }
.reasons .sec-head h2 { color: #fff; }
.reasons .sec-head p { color: rgba(255,255,255,.75); }
.reasons .sec-head .sec-tag { color: var(--c-1); }
.stats-band {
    display: flex; justify-content: center; gap: 0; margin: 0 auto 70px; max-width: 1000px;
    border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16);
}
.stats-band .stat { text-align: center; border-left: 1px solid rgba(255,255,255,.16); padding: 36px 20px; }
.stats-band .stat b { color: #fff; }
.stats-band .stat span { color: rgba(255,255,255,.7); }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.reason-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
    padding: 36px; display: flex; gap: 22px;
}
.reason-card .avatar {
    width: 64px; height: 64px; flex: none; border-radius: 50%;
    background: linear-gradient(180deg, var(--c-1), var(--c-2));
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-family: var(--font-head); font-size: 22px; font-weight: 700;
}
.reason-card blockquote { margin: 0 0 14px; font-size: 16px; font-style: italic; line-height: 1.65; color: rgba(255,255,255,.85); }
.reason-card .stars { color: var(--c-star); letter-spacing: 3px; margin-bottom: 12px; }
.reason-card figcaption { font-weight: 800; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.reason-card figcaption small { display: block; font-weight: 600; color: rgba(255,255,255,.55); font-size: 13px; margin-top: 4px; }

/* pricing */
.pricing-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.pricing-text h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
.pricing-text p { font-size: 17px; line-height: 1.75; }
.pricing-feats { margin-top: 34px; display: flex; flex-direction: column; gap: 26px; }
.pricing-feat { display: flex; gap: 18px; align-items: flex-start; }
.pricing-feat .feat-icon {
    width: 58px; height: 58px; flex: none; border-radius: 12px; background: var(--c-card); color: var(--c-1);
    display: flex; align-items: center; justify-content: center;
}
.pricing-feat .feat-icon svg { width: 28px; height: 28px; }
.pricing-feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pricing-feat p { font-size: 15px; line-height: 1.6; margin: 0; }
.pricing-card {
    background: linear-gradient(150deg, var(--c-blue), #1a3b8a); border-radius: 24px; padding: 54px 48px;
    color: #fff; box-shadow: 0 40px 80px rgba(34,77,183,.35); position: relative; overflow: hidden;
}
.pricing-card::before {
    content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.pricing-card .price-label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,.75); }
.pricing-card .price { font-family: var(--font-head); font-size: 74px; font-weight: 800; line-height: 1; margin: 10px 0 4px; }
.pricing-card .price small { font-size: 22px; font-weight: 600; }
.pricing-card .price-note { font-size: 15px; color: rgba(255,255,255,.75); margin-bottom: 30px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.pricing-card li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pricing-card li svg { flex: none; color: var(--c-star); }
.pricing-card .btn { width: 100%; }

/* work process */
.process-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.process-card {
    background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}
.process-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(15,23,42,.14); }
.process-media { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; }
.process-media::before { content: attr(data-step); position: absolute; top: 18px; left: 22px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: rgba(255,255,255,.9); }
.process-media svg { width: 72px; height: 72px; color: rgba(255,255,255,.95); }
.process-media.pm-blue { background: linear-gradient(150deg, var(--c-1), var(--c-2)); }
.process-media.pm-pink { background: linear-gradient(150deg, var(--c-pink), #7b1fa2); }
.process-media.pm-dark { background: linear-gradient(150deg, #0A1821, #224DB7); }
.process-body { padding: 30px; }
.process-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.process-body p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--c-text); }

/* ============================================================
   ABOUT page
   ============================================================ */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.value-card { background: #fff; border-radius: 16px; padding: 38px 32px; box-shadow: var(--shadow-soft); border-top: 5px solid var(--c-1); }
.value-card.vc-pink { border-top-color: var(--c-pink); }
.value-card.vc-star { border-top-color: var(--c-star); }
.value-card.vc-blue { border-top-color: var(--c-blue); }
.value-icon {
    width: 62px; height: 62px; border-radius: 14px; background: var(--c-card); color: var(--c-1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.value-icon svg { width: 30px; height: 30px; }
.value-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--c-text); }

/* ============================================================
   TRUST STRIP (logos)
   ============================================================ */
.trust-strip { padding: 46px 0; border-bottom: 1px solid rgba(15,23,42,.08); }
.trust-strip .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.trust-strip .trust-label { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--c-text); opacity: .55; flex: none; }
.trust-logos { display: flex; align-items: center; gap: 46px; flex-wrap: wrap; opacity: .6; }
.trust-logos span { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--c-head); letter-spacing: .5px; }

/* ============================================================
   PILLARS (Website / E-commerce / Web Apps)
   ============================================================ */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pillar-card {
    background: #fff; border-radius: 20px; padding: 44px 38px; box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15,23,42,.06); transition: transform .3s ease, box-shadow .3s ease;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pillar-icon {
    width: 68px; height: 68px; border-radius: 16px; background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
    box-shadow: 0 14px 28px rgba(4,141,201,.25);
}
.pillar-icon svg { width: 32px; height: 32px; }
.pillar-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pillar-card > p { font-size: 15.5px; line-height: 1.7; color: var(--c-text); margin-bottom: 22px; }
.pillar-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.pillar-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--c-text); line-height: 1.5; }
.pillar-list li svg { flex: none; width: 18px; height: 18px; color: var(--c-1); margin-top: 2px; }
.pillar-card .learn { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; color: var(--c-1); display: inline-flex; align-items: center; gap: 8px; }
.pillar-card .learn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.pillar-card:hover .learn svg { transform: translateX(4px); }

/* ============================================================
   TECH STACK STRIP
   ============================================================ */
.tech-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tech-pill {
    display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid rgba(15,23,42,.08);
    border-radius: 50px; padding: 12px 22px; font-weight: 700; font-size: 14.5px; color: var(--c-head);
    box-shadow: var(--shadow-soft); transition: transform .25s ease, border-color .25s ease;
}
.tech-pill:hover { transform: translateY(-4px); border-color: var(--c-1); color: var(--c-1); }
.tech-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-1); flex: none; }

/* ============================================================
   PORTFOLIO / CASE STUDIES
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.portfolio-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-media img { transform: scale(1.08); }
.portfolio-tag {
    position: absolute; top: 18px; left: 18px; background: rgba(255,255,255,.92); color: var(--c-1);
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    padding: 7px 14px; border-radius: 50px;
}
.portfolio-body {
    position: absolute; inset: auto 0 0 0; padding: 26px 24px;
    background: linear-gradient(0deg, rgba(10,15,25,.92) 10%, rgba(10,15,25,0) 100%);
    color: #fff;
}
.portfolio-body h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.portfolio-body p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 14px; overflow: hidden; }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: none; border: none; text-align: left; cursor: pointer;
    padding: 22px 26px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--c-head);
}
.faq-q .faq-plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-card); color: var(--c-1); display: flex; align-items: center; justify-content: center; transition: transform .3s ease, background .3s ease, color .3s ease; }
.faq-q .faq-plus svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .faq-plus { background: var(--c-1); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 24px; font-size: 15px; line-height: 1.7; color: var(--c-text); }
.faq-item.open .faq-a { max-height: 300px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-card { background: #fff; border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow-soft); display: flex; gap: 18px; align-items: flex-start; }
.contact-card .c-icon { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--c-card); color: var(--c-1); display: flex; align-items: center; justify-content: center; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--c-text); margin: 0; }
.contact-form { background: #fff; border-radius: 20px; padding: 46px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--c-head); }
.form-field input, .form-field select, .form-field textarea {
    font-family: var(--font-body); font-size: 15px; padding: 14px 16px; border-radius: 10px;
    border: 1.5px solid rgba(15,23,42,.14); background: var(--c-bg); color: var(--c-text); resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--c-1); background: #fff; }
.contact-form .btn { width: 100%; margin-top: 6px; border: none; }
.contact-map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 60px; height: 360px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms of Service)
   ============================================================ */
.legal-shell { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }

.legal-toc {
    position: sticky; top: calc(var(--topbar-h) + var(--head-h-shrunk) + 24px);
    background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 16px;
    padding: 30px 28px; box-shadow: var(--shadow-soft);
}
.legal-toc h4 {
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    color: var(--c-head); margin: 0 0 20px;
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.legal-toc li { position: relative; padding-left: 1.6em; }
.legal-toc li::before {
    content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px;
    border-radius: 50%; background: var(--c-1); opacity: .6;
}
.legal-toc a { font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.4; }
.legal-toc a:hover { color: var(--c-1); }

.legal-meta {
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--c-text); opacity: .6; margin: 0 0 24px;
}


.legal-content h2 {
    font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2;
    margin: 2.4em 0 .9em; padding-bottom: 12px; border-bottom: 1px solid rgba(15,23,42,.1);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num { color: var(--c-1); margin-right: 6px; }
.legal-content h3 { font-size: 19px; font-weight: 700; margin: 1.8em 0 .7em; }
.legal-content p { margin: 0 0 1.1em; font-size: 16px; line-height: 1.75; }
.legal-content ul { margin: 0 0 1.4em; padding: 0; list-style: none; }
.legal-content ul li {
    position: relative; padding-left: 1.5em; margin-bottom: .55em;
    font-size: 16px; line-height: 1.65;
}
.legal-content ul li::before {
    content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px;
    border-radius: 50%; background: var(--c-1);
}
.legal-content ul li:last-child { margin-bottom: 0; }
.legal-content a { color: var(--c-1); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--c-2); }
.legal-content strong { color: var(--c-head); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .site-header .container { grid-template-columns: auto 1fr auto; gap: 16px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .web-grid, .services-grid-3, .process-cards { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse, .pricing-wrap { grid-template-columns: 1fr; gap: 60px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .site-nav { display: none; }
    .header-actions .btn, .header-actions .header-login { display: none; }
    .menu-toggle { display: block; }
    .manual-card { padding: 44px 36px; margin-left: 0; }
    .pillars-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 44px; }
    .legal-shell { grid-template-columns: 1fr; gap: 40px; }
    .legal-toc { position: static; }
}@media (max-width: 767px) {
    .container { width: min(100% - 32px, var(--container)); }
    .site-topbar .btn { padding: 6px 12px; font-size: 11px; }
    .topbar-phone { font-size: 12px; gap: 6px; }
    .topbar-link { display: none; }
    .site-logo img { height: 32px; }
    .site-header.scrolled .site-logo img { height: 32px; }
    .section { padding: 80px 0; }
    .section.top-overlap { padding-top: 150px; }
    .services-grid, .web-grid, .services-grid-3, .process-cards, .reasons-grid, .value-grid,
    .process-grid, .footer-main, .stats-band, .stats-row { grid-template-columns: 1fr; }
    .stats-band .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.16); }
    .stats-row .stat { border-left: none; border-top: 1px solid var(--c-card); padding: 18px 0; }
    .cta-band { padding: 46px 32px; }
    .pricing-card { padding: 42px 32px; }
    .hero-media { width: min(100% - 32px, var(--container)); }
    .hero-actions .btn { padding: 15px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .automation-top { align-items: flex-start; flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 30px 26px; }
    .trust-strip .container { justify-content: center; text-align: center; }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-blue);
    color: #fff;
    box-shadow: 0 12px 24px rgba(34, 77, 183, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--c-1); }
@media (max-width: 767px) {
    .scroll-top { right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 10px; }
}

/* ============================================================
   NAV — Templates dropdown (desktop)
   ============================================================ */
.nav-dropdown { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 7px; }
.nav-drop-chevron { transition: transform .25s ease; }
.nav-dropdown:hover .nav-drop-chevron, .nav-dropdown:focus-within .nav-drop-chevron { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, 10px);
    min-width: 292px; background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 14px;
    box-shadow: 0 24px 50px rgba(15,23,42,.18); padding: 10px;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.nav-dropdown:hover .nav-drop-menu, .nav-dropdown:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop-menu::before {
    content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: #fff;
    border-left: 1px solid rgba(15,23,42,.06); border-top: 1px solid rgba(15,23,42,.06);
}
.site-nav .nav-drop-menu a {
    display: flex; align-items: center; width: 100%;
    text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700;
    color: var(--c-head) !important; padding: 11px 14px; border-radius: 9px;
    white-space: normal; line-height: 1.35;
}
.site-nav .nav-drop-menu a::after { display: none; }
.site-nav .nav-drop-menu a:hover, .site-nav .nav-drop-menu a.active { background: var(--c-card); color: var(--c-1) !important; }
.site-nav .nav-drop-menu.nav-drop-menu-soft { min-width: 340px; }

/* ============================================================
   OFFCANVAS — Templates group
   ============================================================ */
.offcanvas-group-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.45); margin-top: 10px; margin-bottom: -6px;
}
.offcanvas-nav .offcanvas-sub { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.85); margin-left: 8px; }
.offcanvas-nav .offcanvas-sub:hover, .offcanvas-nav .offcanvas-sub.active { color: var(--c-1); }

/* ============================================================
   WEBSITE TEMPLATES GALLERY
   ============================================================ */
.tpl-hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tpl-stat-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
    padding: 11px 20px; border-radius: 50px; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
}
.tpl-stat-chip svg { flex: none; color: var(--c-1); }

.tpl-nav {
    position: sticky; top: calc(var(--topbar-h) + var(--head-h-shrunk)); z-index: 60;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15,23,42,.08); box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.tpl-nav-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 0; }
.tpl-nav-btn {
    font-family: var(--font-body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .4px;
    color: var(--c-head); background: var(--c-bg); border: 1px solid rgba(15,23,42,.1); border-radius: 50px;
    padding: 9px 20px; cursor: pointer; transition: all .25s ease;
}
.tpl-nav-btn:hover { border-color: var(--c-1); color: var(--c-1); transform: translateY(-1px); }
.tpl-nav-btn.active { background: var(--c-1); border-color: var(--c-1); color: #fff; }

.tpl-section { padding-top: 100px; }
.tpl-notice {
    max-width: 640px; margin: 0 auto 40px; text-align: center;
    background: #FFF7E0; border: 1px solid #F2D97E; border-left: 4px solid #E8B711;
    border-radius: 0 14px 14px 0; padding: 16px 22px;
    font-size: 15px; line-height: 1.6; color: #6B5A00;
}
.tpl-cat { margin: 0 0 90px; scroll-margin-top: calc(var(--topbar-h) + var(--head-h-shrunk) + 80px); }
.tpl-cat-head { text-align: center; max-width: 780px; margin: 0 auto 54px; }
.tpl-cat-head .sec-tag { margin-bottom: 14px; }
.tpl-cat-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; margin-bottom: 12px; }
.tpl-cat-head p { font-size: 17px; line-height: 1.7; color: var(--c-text); margin: 0 0 18px; }
.tpl-cat-count {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--c-1);
    background: rgba(4,141,201,.08); padding: 8px 18px; border-radius: 50px;
}

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.tpl-card {
    background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15,23,42,.07); display: flex; flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tpl-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(15,23,42,.16); border-color: var(--c-1); }

.tpl-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-card); cursor: pointer; }
.tpl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tpl-card:hover .tpl-media img { transform: scale(1.08); }
.tpl-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff;
    padding: 7px 14px; border-radius: 50px; box-shadow: 0 6px 16px rgba(15,23,42,.2);
}
.tpl-badge-standard { background: var(--c-1); }
.tpl-badge-pro { background: #f59e0b; }
.tpl-badge-premium { background: #16a34a; }
.tpl-quick-preview {
    position: absolute; inset: auto 0 0 0; width: 100%; padding: 18px 0 14px; border: none; cursor: pointer;
    background: linear-gradient(0deg, rgba(10,15,25,.85) 20%, rgba(10,15,25,0)); color: #fff;
    font-family: var(--font-body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.tpl-quick-preview svg { width: 15px; height: 15px; }
.tpl-media:hover .tpl-quick-preview, .tpl-media:focus-within .tpl-quick-preview { opacity: 1; transform: none; }

.tpl-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.tpl-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tpl-title-row h3 { font-size: 18px; font-weight: 700; margin: 0; }
.tpl-serial {
    font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .5px;
    color: var(--c-1); background: rgba(4,141,201,.08); padding: 5px 12px; border-radius: 50px; white-space: nowrap;
}
.tpl-desc { font-size: 14.5px; line-height: 1.65; color: var(--c-text); margin-bottom: 22px; flex: 1; }
.tpl-actions { display: flex; gap: 12px; }
.tpl-actions .btn { flex: 1; padding: 13px 16px; font-size: 13px; }

/* Preview modal */
.tpl-modal {
    position: fixed; inset: 0; z-index: 3000; background: rgba(8,10,20,.82);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.tpl-modal.open { display: flex; }
.tpl-modal-box {
    width: min(1280px, 96vw); height: 92vh; background: #fff; border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column; box-shadow: 0 30px 90px rgba(0,0,0,.55);
    animation: tplModalPop .3s cubic-bezier(.16,1,.3,1);
}
@keyframes tplModalPop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.tpl-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: var(--c-dark); color: #fff; }
.tpl-modal-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.tpl-modal-actions { display: flex; align-items: center; gap: 14px; }
.tpl-modal-newtab {
    color: var(--c-1); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
    display: inline-flex; align-items: center; gap: 6px;
}
.tpl-modal-newtab:hover { color: #fff; }
.tpl-modal-close {
    background: var(--c-pink); color: #fff; border: none; width: 34px; height: 34px; border-radius: 8px;
    font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.tpl-modal-close:hover { background: #c10052; }
.tpl-modal-frame { flex: 1; width: 100%; border: none; background: #fff; }

/* Get-it modal */
.tpl-get-box {
    width: min(470px, 94vw); background: #fff; border-radius: 22px; padding: 44px 40px 38px;
    position: relative; text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.5);
    animation: tplModalPop .3s cubic-bezier(.16,1,.3,1);
}
.tpl-get-close {
    position: absolute; top: 14px; right: 14px; background: var(--c-card); border: none;
    width: 34px; height: 34px; border-radius: 9px; font-size: 18px; line-height: 1; cursor: pointer;
    color: var(--c-head); display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.tpl-get-close:hover { background: var(--c-pink); color: #fff; }
.tpl-get-icon {
    width: 66px; height: 66px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
    box-shadow: 0 14px 28px rgba(4,141,201,.3);
}
.tpl-get-icon svg { width: 30px; height: 30px; }
.tpl-get-box h3 { font-size: 25px; font-weight: 700; margin-bottom: 10px; }
.tpl-get-box p { font-size: 15px; line-height: 1.7; color: var(--c-text); margin-bottom: 22px; }
.tpl-get-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(4,141,201,.08); color: var(--c-1); font-weight: 800; font-size: 13px;
    padding: 8px 18px; border-radius: 50px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: .5px;
}
.tpl-get-actions { display: flex; flex-direction: column; gap: 10px; }
.tpl-get-actions .btn { width: 100%; }

@media (max-width: 1100px) {
    .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tpl-hero-stats { justify-content: center; }
    .tpl-section { padding-top: 70px; }
    .tpl-grid { grid-template-columns: 1fr; gap: 24px; }
    .tpl-cat { margin-bottom: 64px; }
    .tpl-actions { flex-direction: column; }
    .tpl-modal { padding: 12px; }
    .tpl-modal-box { width: 100vw; height: 88vh; border-radius: 0; }
}
