/* =============================================================
   InTouchPOS - Modern Design System
   ============================================================= */

:root {
    /* Brand palette */
    --ink-900: #0b1020;
    --ink-800: #121a30;
    --ink-700: #1b2440;
    --slate-600: #3a4663;
    --slate-400: #6b7896;
    --slate-300: #9aa6c2;
    --mist-100: #eef1f8;
    --mist-50: #f7f9fd;
    --white: #ffffff;

    --accent: #ff6a3d;
    --accent-strong: #f04e22;
    --accent-soft: #ffe6dd;
    --gold: #ffb545;

    --teal: #16c2a3;
    --teal-strong: #0fa489;

    /* Semantic */
    --bg: var(--white);
    --bg-alt: var(--mist-50);
    --text: #1a2238;
    --text-muted: #5b6580;
    --heading: var(--ink-900);
    --border: #e4e8f2;

    --gradient-brand: linear-gradient(135deg, #ff6a3d 0%, #ff9446 100%);
    --gradient-ink: linear-gradient(155deg, #121a30 0%, #1f2c52 60%, #2b1f4a 100%);
    --gradient-teal: linear-gradient(135deg, #16c2a3 0%, #28d3c0 100%);

    --shadow-sm: 0 2px 8px rgba(16, 24, 49, 0.06);
    --shadow-md: 0 14px 38px rgba(16, 24, 49, 0.10);
    --shadow-lg: 0 30px 70px rgba(16, 24, 49, 0.16);
    --shadow-accent: 0 16px 34px rgba(240, 78, 34, 0.30);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 34px;

    --container: 1180px;
    --space: clamp(64px, 9vw, 128px);

    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--heading);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1rem; }

a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: var(--space);
}

.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-alt); }
.section--ink {
    background: var(--gradient-ink);
    color: #d9e0f2;
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 60ch;
}

.section--ink .lead { color: #b9c3de; }

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.text-accent { color: var(--accent-strong); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
    --btn-bg: var(--accent);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--gradient-brand);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-accent);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.7s var(--ease);
    z-index: -1;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(240, 78, 34, 0.42);
}

.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn--ghost {
    background: transparent;
    color: var(--heading);
    box-shadow: inset 0 0 0 2px var(--border);
}

.btn--ghost::after { display: none; }

.btn--ghost:hover {
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 2px var(--accent);
    background: var(--accent-soft);
}

.btn--light {
    background: #fff;
    color: var(--ink-900);
    box-shadow: var(--shadow-md);
}

.btn--light:hover { color: var(--accent-strong); }

.btn--outline-light {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.btn--outline-light::after { display: none; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px #fff; }

.btn--sm { padding: 11px 22px; font-size: 0.9rem; }
.btn--lg { padding: 18px 38px; font-size: 1.08rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: var(--accent-strong);
}

.text-link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(5px); }

/* ----------------------------------------------------------------
   Header / Nav
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--ink-900);
}

.brand:hover { color: var(--ink-900); }

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.brand__mark svg { width: 22px; height: 22px; }
.brand__name b { color: var(--accent-strong); }
.brand__reg { font-size: 0.62em; vertical-align: super; color: var(--slate-400); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    position: relative;
    display: inline-block;
    padding: 9px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-800);
    border-radius: 9px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav__link:hover { color: var(--accent-strong); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--accent-strong); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink-900);
    font-size: 0.95rem;
}

.nav__phone .icon { width: 17px; height: 17px; color: var(--accent-strong); }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--ink-900);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--gradient-ink);
    color: #e6ebfa;
    overflow: hidden;
    padding-block: clamp(72px, 11vw, 150px);
}

.hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
    mix-blend-mode: luminosity;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 78% 10%, rgba(255, 106, 61, 0.30), transparent 60%),
                radial-gradient(700px 480px at 5% 90%, rgba(22, 194, 163, 0.22), transparent 55%);
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 { color: #fff; }
.hero h1 .text-accent { color: var(--gold); }
.hero__lead { color: #c4cdec; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 52ch; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    font-weight: 600;
    color: #dfe6fb;
    margin-bottom: 26px;
}

.hero__badge b {
    display: inline-grid;
    place-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat__num {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat__num .text-accent { color: var(--gold); }
.stat__label { font-size: 0.85rem; color: #aab4d8; }

.hero__visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transition: transform 0.6s var(--ease);
}

.hero__visual:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

.hero__float {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-900);
}

.hero__float .icon {
    width: 22px; height: 22px;
    padding: 9px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    box-sizing: content-box;
}

.hero__float small { display: block; color: var(--slate-400); font-size: 0.72rem; font-weight: 600; }
.hero__float strong { font-size: 0.95rem; }
.hero__float--one { bottom: 24px; left: -22px; animation: float 5s ease-in-out infinite; }
.hero__float--two { top: 24px; right: -18px; animation: float 6s ease-in-out infinite 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ----------------------------------------------------------------
   Marquee / trust bar
   ---------------------------------------------------------------- */
.trustbar {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: var(--ink-900);
    color: #8c97bd;
    padding-block: 22px;
}

.trustbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.trustbar__inner span { display: inline-flex; align-items: center; gap: 10px; }
.trustbar__inner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ----------------------------------------------------------------
   Feature grid / cards
   ---------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 26px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    margin-bottom: 20px;
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.card__icon svg { width: 26px; height: 26px; }

.card:hover .card__icon {
    background: var(--gradient-brand);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }

.card--teal .card__icon { background: rgba(22, 194, 163, 0.12); color: var(--teal-strong); }
.card--teal::before { background: var(--gradient-teal); }
.card--teal:hover .card__icon { background: var(--gradient-teal); color: #fff; }

/* ----------------------------------------------------------------
   Split media sections
   ---------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.split__badge .icon { width: 20px; height: 20px; color: var(--accent-strong); }

/* Check lists */
.checklist {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    gap: 13px;
}

.checklist--2 { grid-template-columns: repeat(2, 1fr); gap: 13px 30px; }

.checklist li {
    position: relative;
    padding-left: 34px;
    color: var(--text);
    line-height: 1.5;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f04e22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.section--ink .checklist li { color: #d4dcf2; }
.section--ink .checklist li::before { background-color: rgba(255, 181, 69, 0.18); }

/* ----------------------------------------------------------------
   Feature tabs (Front of House)
   ---------------------------------------------------------------- */
.tabs {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: start;
}

.tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 96px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.tab-btn .icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--slate-400);
    transition: color 0.25s var(--ease);
}

.tab-btn:hover { background: var(--mist-100); color: var(--ink-900); }

.tab-btn.active {
    background: #fff;
    color: var(--ink-900);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active .icon { color: var(--accent-strong); }

.tab-panels { position: relative; min-height: 380px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelIn 0.5s var(--ease); }

@keyframes panelIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 46px);
    box-shadow: var(--shadow-sm);
}

.panel-card__icon {
    display: inline-grid;
    place-items: center;
    width: 60px; height: 60px;
    border-radius: 18px;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-accent);
    margin-bottom: 22px;
}

.panel-card__icon svg { width: 28px; height: 28px; }
.panel-card .tagline { color: var(--accent-strong); font-weight: 700; margin-bottom: 4px; }

/* ----------------------------------------------------------------
   CTA band
   ---------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
    background: var(--gradient-ink);
    border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 76px);
    color: #fff;
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 320px at 80% 0%, rgba(255, 106, 61, 0.4), transparent 60%),
                radial-gradient(520px 300px at 12% 100%, rgba(22, 194, 163, 0.28), transparent 60%);
}

.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #c5cdea; max-width: 56ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ----------------------------------------------------------------
   Page hero (interior)
   ---------------------------------------------------------------- */
.page-hero {
    position: relative;
    background: var(--gradient-ink);
    color: #e6ebfa;
    padding-block: clamp(70px, 9vw, 120px);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 380px at 85% 15%, rgba(255, 106, 61, 0.28), transparent 60%),
                radial-gradient(560px 360px at 0% 100%, rgba(22, 194, 163, 0.2), transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c4cdec; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: #9aa6d0;
    margin-bottom: 16px;
    list-style: none;
    padding: 0;
}

.breadcrumb a { color: #c4cdec; }
.breadcrumb a:hover { color: #fff; }

/* ----------------------------------------------------------------
   Stats band
   ---------------------------------------------------------------- */
.statband {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.statband__item {
    padding: 30px 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.statband__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.statband__num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--accent-strong); }
.statband__label { color: var(--text-muted); font-weight: 600; }

/* ----------------------------------------------------------------
   Partners
   ---------------------------------------------------------------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 34px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.partner__mark {
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--mist-100);
    color: var(--ink-800);
    font-weight: 800;
}

.partner__mark svg { width: 28px; height: 28px; color: var(--accent-strong); }
.partner strong { color: var(--ink-900); }
.partner span { font-size: 0.85rem; color: var(--text-muted); }

/* ----------------------------------------------------------------
   Blog
   ---------------------------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }

.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--slate-400); margin-bottom: 12px; font-weight: 600; }

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.post-card h3 { font-size: 1.25rem; }
.post-card p { color: var(--text-muted); flex: 1; }

.article {
    max-width: 760px;
    margin-inline: auto;
}

.article p { font-size: 1.08rem; color: var(--text); }
.article h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.article__hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 7;
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------
   Forms
   ---------------------------------------------------------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-800);
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--mist-50);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.field-validation-error,
.validation-summary-errors {
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.input-validation-error { border-color: var(--accent-strong) !important; }

.alert {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert .icon { width: 20px; height: 20px; flex-shrink: 0; }
.alert--success { background: rgba(22, 194, 163, 0.12); color: var(--teal-strong); }
.alert--error { background: var(--accent-soft); color: var(--accent-strong); }

.rating-group { display: flex; gap: 8px; }
.rating-group input { position: absolute; opacity: 0; pointer-events: none; }
.rating-group label {
    cursor: pointer;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--mist-50);
    transition: all 0.2s var(--ease);
}
.rating-group input:checked + label,
.rating-group label:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Contact info cards */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    flex-shrink: 0;
}
.info-item__icon svg { width: 22px; height: 22px; }
.info-item small { color: var(--slate-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.info-item a, .info-item p { font-weight: 700; color: var(--ink-900); margin: 2px 0 0; font-size: 1.05rem; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
    background: var(--ink-900);
    color: #97a2c6;
    padding-block: 64px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand .brand__reg { color: var(--slate-400); }
.footer-about { max-width: 34ch; font-size: 0.95rem; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #97a2c6; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }

.footer-contact { display: grid; gap: 12px; font-size: 0.93rem; }
.footer-contact a { color: #fff; font-weight: 700; }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,0.07);
    color: #c3ccec;
    transition: all 0.25s var(--ease);
}
.social-row a:hover { background: var(--gradient-brand); color: #fff; transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-size: 0.86rem;
    color: var(--slate-400);
}

.footer-bottom a { color: var(--slate-300); }

/* ----------------------------------------------------------------
   Scroll reveal
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { transform: none; }
    .split { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .tabs { grid-template-columns: 1fr; }
    .tabs__nav {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
    }
    .tab-btn { white-space: nowrap; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .statband { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav__menu, .nav__phone { display: none; }
    .nav__toggle { display: flex; }
    .site-header.is-open .nav__menu {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        animation: panelIn 0.3s var(--ease);
    }
    .site-header.is-open .nav__link { padding: 13px 14px; }
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .checklist--2 { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero__float { display: none; }
    .hero__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

.pdf-frame {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 1px solid #e2e6ef;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f6fa;
}
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.pdf-fallback { margin-top: 16px; text-align: center; }

/* Screenshot marquee */
.marquee-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-block: clamp(28px, 4vw, 56px);
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    width: max-content;
    will-change: transform;
    animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

.marquee[data-pause-on-hover="true"]:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    flex: 0 0 auto;
    height: clamp(150px, 22vw, 300px);
    margin: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.marquee__item img {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
    user-select: none;
}

@keyframes marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
    .marquee__track { gap: 14px; }
    .marquee__item { height: clamp(120px, 40vw, 190px); border-radius: var(--radius-sm); }
    .marquee {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    }
}

/* The marquee is an intentional, continuous auto-scroll, so keep it running even
   when the global prefers-reduced-motion rule disables other animations. */
@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        animation: marquee-scroll var(--marquee-duration, 40s) linear infinite !important;
    }
}
