/* Nexus360 site styles. Shared by every page via include/header.php. */

:root {
    --navy: #212c44;
    --navy-800: #2b3754;
    --navy-900: #131a2b;
    --green: #19ba8b;
    --teal: #07b1a9;
    --green-dark: #0d7d5c;
    --tint: #eef9f5;
    --bg-alt: #f6f8fb;
    --text: #4a5468;
    --text-on-dark: #b8c2d6;
    --border: #e4e8ef;
    --radius: 16px;
    --grad: linear-gradient(135deg, var(--green), var(--teal));
    --grad-deep: linear-gradient(135deg, #13a57b, #068f89);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .05);
    --shadow-md: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .12);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-dark);
}

.badge {
    display: inline-block;
    background: var(--grad);
    color: var(--navy-900);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 2px 10px;
}

/* Dark sections: navy with soft glows and a faint dot grid */
.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--text-on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--green); }
.dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(640px 420px at 85% 0%, rgba(25, 186, 139, .22), transparent 70%),
        radial-gradient(520px 420px at 0% 100%, rgba(7, 177, 169, .16), transparent 70%);
}
.dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .75em 1.45em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-lg { font-size: 1.05rem; padding: .9em 1.75em; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-accent { background: var(--grad); color: var(--navy-900); box-shadow: 0 8px 24px rgba(25, 186, 139, .35); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn .fa-arrow-right { transition: transform 160ms ease; }

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--navy-800); }
    .btn-accent:hover { box-shadow: 0 10px 32px rgba(25, 186, 139, .55); }
    .btn-outline:hover { background: var(--navy); color: #fff; }
    .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
    .btn:hover .fa-arrow-right { transform: translateX(4px); }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 200ms ease, border-color 200ms ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(16, 24, 40, .06); }
.nav { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand img { height: 58px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: var(--navy); font-weight: 600; text-decoration: none; }
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover::after { transform: scaleX(1); }
}

@media (max-width: 800px) {
    .nav { gap: 14px; height: 64px; }
    .brand img { height: 44px; }
    .nav-links a:not(:first-child) { display: none; }
    .nav .btn { padding: .5em 1em; }
}

/* Sections */
.section { padding: 104px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head p:last-child { font-size: 1.12rem; margin: 0; }
.dark .section-head p:last-child { color: var(--text-on-dark); }

/* Icons, grids and cards */
.icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--grad-deep);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(19, 165, 123, .3);
    margin-bottom: 18px;
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 250ms var(--ease-out), box-shadow 250ms ease, border-color 250ms ease;
}
.card p:last-child { margin: 0; }
.card-accent { position: relative; overflow: hidden; padding: 24px 24px 24px 28px; }
.card-accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }

@media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(25, 186, 139, .45); }
}

.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--green-dark);
    display: grid;
    place-items: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .65rem;
}

/* Scroll reveal: content is only hidden when JS is running (html.js), and animates in once */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal 700ms var(--ease-out) var(--d, 0ms) backwards; }
@keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal]:not(.is-visible) { opacity: 1; }
    .js [data-reveal].is-visible { animation: none; }
}

/* Hero: drifting glows, rotating headline and a product mock built in HTML (no images) */
.hero { padding: 80px 0 104px; text-align: center; }
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.08; margin-bottom: 22px; }
.hero .lead { max-width: 40em; margin: 0 auto; color: var(--text-on-dark); font-size: 1.25rem; }
.hero .cta-row, .hero .stats { justify-content: center; }

.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 900px; height: 900px; border-radius: 50%; animation: drift 20s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { top: -450px; left: -250px; background: radial-gradient(circle, rgba(25, 186, 139, .35), transparent 60%); }
.aurora span:nth-child(2) { top: -350px; right: -300px; background: radial-gradient(circle, rgba(7, 177, 169, .3), transparent 60%); animation-duration: 24s; animation-delay: -6s; }
.aurora span:nth-child(3) { top: 420px; left: 28%; background: radial-gradient(circle, rgba(64, 110, 255, .18), transparent 60%); animation-duration: 28s; animation-delay: -12s; }
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(120px, 80px) scale(1.15); }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #dfe6f2;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.pill .badge { padding: 3px 10px; }
.pill i { font-size: .75rem; transition: transform 160ms ease; }
@media (hover: hover) and (pointer: fine) {
    .pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
    .pill:hover i { transform: translateX(3px); }
}

/* Rotating phrase: 3 phrases plus a copy of the first, so the loop restarts seamlessly */
.rotator { display: block; height: 1.15em; overflow: hidden; }
.rotator-track { display: block; animation: rotate-words 9s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
.rotator-track span { display: block; height: 1.15em; line-height: 1.15em; white-space: nowrap; }
@keyframes rotate-words {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-1.15em); }
    66%, 94% { transform: translateY(-2.3em); }
    100% { transform: translateY(-3.45em); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.stats li { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; line-height: 1.4; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; white-space: nowrap; margin-bottom: 4px; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }

.app-mock { position: relative; max-width: 1120px; margin: 64px auto 0; }
.app-window {
    overflow: hidden;
    text-align: left;
    border-radius: 16px;
    background: #0f1524;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 90px rgba(25, 186, 139, .18);
    color: #cdd6e6;
    font-size: .82rem;
    margin-right: 250px;
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, .02); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.app-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.app-bar em { margin-left: 12px; font-style: normal; color: #8d99b0; font-size: .78rem; }
.app-body { display: grid; grid-template-columns: 190px 1fr; }
.app-side { padding: 18px 12px; border-right: 1px solid rgba(255, 255, 255, .07); }
.side-label { margin: 4px 10px 6px; color: #5d6b85; font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.app-side ul + .side-label { margin-top: 14px; }
.app-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #8d99b0; font-weight: 600; }
.app-side li i { width: 16px; text-align: center; }
.app-side li.active { background: rgba(25, 186, 139, .14); color: #fff; }
.app-side li.active i { color: var(--green); }
.app-main { display: grid; gap: 14px; align-content: start; padding: 20px; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head strong { color: #fff; font-size: 1rem; }
.app-chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .75rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi, .panel { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.kpi small, .panel small { display: block; color: #8d99b0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kpi strong { display: block; margin: 6px 0 2px; color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: .75rem; color: var(--green); }
.kpi em.warn { color: #f5b451; }
.meter { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter span { display: block; width: 76%; height: 100%; border-radius: inherit; background: var(--grad); }
.app-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 14px; }
.chart-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--green), rgba(7, 177, 169, .3));
    transform-origin: bottom;
    transition: transform 900ms var(--ease-out);
    transition-delay: calc(var(--i) * 70ms + 500ms);
}
.chart-bars i.over { background: linear-gradient(180deg, #f07167, rgba(240, 113, 103, .3)); }
.js .app-mock:not(.is-visible) .chart-bars i { transform: scaleY(0); }
.funnel { display: grid; gap: 8px; margin-top: 14px; }
.funnel li { position: relative; display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; }
.funnel li::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(25, 186, 139, .5), rgba(7, 177, 169, .15));
    transform-origin: left;
    transform: scaleX(var(--w));
    transition: transform 900ms var(--ease-out) 600ms;
}
.funnel span, .funnel b { position: relative; }
.funnel b { color: #fff; }
.js .app-mock:not(.is-visible) .funnel li::before { transform: scaleX(0); }
.st { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.st.amber { background: #f5b451; }
.st.red { background: #f07167; }
.st.green { background: var(--green); }

.ai-dock {
    position: absolute;
    right: 0;
    top: 70px;
    width: 300px;
    padding: 14px 14px 16px;
    border-radius: 16px;
    background: rgba(19, 26, 43, .94);
    border: 1px solid rgba(25, 186, 139, .45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(25, 186, 139, .25);
    text-align: left;
    color: #e6ecf5;
    font-size: .82rem;
}
.ai-dock-head { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.ai-dock-head i { color: var(--green); }
.ai-dock .bubble { max-width: 92%; margin: 10px 0 0; padding: 9px 12px; font-size: .82rem; }
.ai-dock .bubble.user { margin-left: auto; }
.ai-dock .bubble.bot { max-width: 100%; }
.ai-dock .bubble.bot li { display: flex; align-items: center; gap: 8px; padding: 3px 0 0; }
.ai-dock .bars { gap: 6px; margin: 8px 0 2px; }
.ai-dock .bar { grid-template-columns: 52px 1fr 40px; font-size: .76rem; }
.ai-dock .bar b { text-align: right; color: #fff; font-weight: 700; }

/* The script cycles .ai-chat through: asking (question + typing dots) -> answering -> leaving */
.ai-chat { min-height: 210px; transition: opacity 300ms ease; }
.ai-chat.leaving { opacity: 0; }
.typing { display: none; gap: 4px; width: fit-content; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8d99b0; animation: typing 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.ai-chat.asking .typing { display: flex; animation: pop-in 250ms var(--ease-out) 500ms backwards; }
.ai-chat.asking .bot { display: none; }
.ai-chat.asking .user, .ai-chat.answering .bot { animation: pop-in 400ms var(--ease-out) backwards; }
.ai-chat.answering .bar i { animation: grow-x 700ms var(--ease-out) 200ms backwards; }
@keyframes grow-x {
    from { transform: scaleX(0); }
}
@keyframes typing {
    0%, 100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes pop-in {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    color: var(--navy);
    box-shadow: var(--shadow-md);
    text-align: left;
    font-size: .88rem;
    line-height: 1.35;
    animation: float 6s ease-in-out infinite;
}
.float-card .icon-tile { width: 36px; height: 36px; margin: 0; border-radius: 10px; font-size: .95rem; }
.float-card strong { display: block; }
.float-card small { color: var(--text); font-size: .78rem; }
.f-a { left: -56px; top: 34%; }
.f-c { left: 72px; bottom: -30px; animation-delay: -3s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .aurora span, .rotator-track, .float-card, .typing span { animation: none; }
    .chart-bars i, .funnel li::before { transition: none; }
}

@media (max-width: 1200px) {
    .f-a { left: -12px; }
    .app-window { margin-right: 0; }
    .ai-dock { position: relative; right: auto; top: auto; width: auto; max-width: 420px; margin: 24px auto 0; }
}

@media (max-width: 900px) {
    .app-body { grid-template-columns: 1fr; }
    .app-side { display: none; }
}

/* Client logo marquee (two copies of the list, scrolled by exactly half) */
.logos { padding: 56px 0 64px; border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; color: var(--text); margin-bottom: 28px; }
.logos-title strong { color: var(--navy); }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track li {
    flex: 0 0 auto;
    width: 180px;
    height: 96px;
    margin-right: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.marquee-track img { max-height: 70px; width: auto; object-fit: contain; }
@media (hover: hover) and (pointer: fine) {
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .marquee-track li { margin: 0; }
    .marquee-track li[aria-hidden] { display: none; }
}

/* One system: ERP and CRM workflows joined by a hub */
.system-grid { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.flow-card { position: relative; overflow: hidden; height: 100%; border-radius: 24px; padding: 36px; }
.flow-card { background: var(--navy-900); color: var(--text-on-dark); box-shadow: 0 30px 60px rgba(19, 26, 43, .25); isolation: isolate; }
.flow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px 300px at 100% 0%, rgba(25, 186, 139, .25), transparent 70%);
}
.flow-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.flow-head .icon-tile { margin: 0; }
.flow-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.flow-head h3 { margin: 0; font-size: 1.45rem; }
.flow-card h3 { color: #fff; }

.flow { counter-reset: step; }
.flow li { position: relative; padding: 0 0 22px 54px; counter-increment: step; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .9rem;
    font-weight: 800;
    background: rgba(25, 186, 139, .15);
    border: 1px solid rgba(25, 186, 139, .45);
    color: var(--green);
}
.flow li::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: 2px;
    width: 2px;
    background: linear-gradient(rgba(25, 186, 139, .55), rgba(25, 186, 139, .1));
}
.flow li:last-child::after { display: none; }
.flow strong { display: block; color: #fff; font-size: 1.05rem; }
.flow span { display: block; font-size: .95rem; line-height: 1.5; }

.system-hub { position: relative; display: grid; place-items: center; }
.system-hub::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(25, 186, 139, .55); }
.hub {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
}
.hub i { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 4px; }
.hub::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(25, 186, 139, .5);
    animation: pulse-ring 2.4s var(--ease-out) infinite;
}
@keyframes pulse-ring {
    from { transform: scale(1); opacity: .8; }
    to { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hub::after { animation: none; opacity: 0; }
}

.shared { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 36px 0 40px; }
.shared-label { font-weight: 700; color: var(--navy); margin-right: 4px; }
.shared .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
    font-size: .92rem;
    font-weight: 600;
}
.shared .chip i { color: var(--green-dark); }

@media (max-width: 900px) {
    .system-grid { grid-template-columns: 1fr; }
    .system-hub { height: 120px; }
    .system-hub::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(25, 186, 139, .55); }
}

/* AI section */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-grid .lead { color: var(--text-on-dark); }
.chips li {
    display: inline-block;
    margin: 0 8px 10px 0;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e6ecf5;
    font-size: .95rem;
    font-weight: 600;
}

.chat {
    padding-bottom: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    overflow: hidden;
}
.chat-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat-top > span:not(.chat-title) { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.chat-title { margin-left: 10px; color: #fff; font-size: .9rem; font-weight: 700; }
.chat-title i { color: var(--green); margin-right: 6px; }
.bubble { max-width: 86%; margin: 18px 22px 0; padding: 12px 16px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.bubble p { margin: 0; }
.bubble.user { margin-left: auto; background: var(--grad); color: var(--navy-900); font-weight: 600; border-bottom-right-radius: 4px; width: fit-content; }
.bubble.bot { background: rgba(255, 255, 255, .07); color: #e6ecf5; border-bottom-left-radius: 4px; }
.bars { display: grid; gap: 10px; margin: 14px 0; }
.bar { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; font-size: .82rem; }
.bar i {
    display: block;
    height: 10px;
    border-radius: 99px;
    background: var(--grad);
    transform-origin: left;
    transform: scaleX(var(--w));
    transition: transform 1000ms var(--ease-out) 400ms;
}
.js .chat:not(.is-visible) .bar i { transform: scaleX(0); }
.chat .muted { color: #8d99b0; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) {
    .bar i { transition: none; }
}

.smart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.glass {
    height: 100%;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform 250ms var(--ease-out), border-color 250ms ease, background-color 250ms ease;
}
.glass .icon-tile { width: 44px; height: 44px; font-size: 1.1rem; }
.glass p { margin: 0; }
@media (hover: hover) and (pointer: fine) {
    .glass:hover { transform: translateY(-4px); border-color: rgba(25, 186, 139, .5); background: rgba(255, 255, 255, .06); }
}

@media (max-width: 900px) {
    .ai-grid, .smart-grid { grid-template-columns: 1fr; }
    .ai-grid { gap: 48px; }
}

/* Screen tabs */
.tabs-wrap { text-align: center; margin-bottom: 36px; }
.tabs {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.tabs button {
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .tabs button[aria-selected="false"]:hover { color: var(--navy); background: var(--bg-alt); }
}

.tab-panel { display: grid; grid-template-columns: 2.6fr 1fr; gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: panel-in 300ms var(--ease-out); }
@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
    .tab-panel:not([hidden]) { animation: none; }
}

.browser { display: block; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(16, 24, 40, .16); }
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: #f1f4f8; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe4; }

@media (max-width: 900px) {
    .tab-panel { grid-template-columns: 1fr; }
}

/* Demo videos: a thumbnail button that swaps in the YouTube player on click */
.video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity 250ms ease; }
.video .play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: var(--navy-900);
    font-size: 1.5rem;
    box-shadow: 0 0 0 10px rgba(25, 186, 139, .25), 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .video:hover .play { transform: scale(1.08); }
    .video:hover img { opacity: 1; }
}
.video-label { text-align: center; margin: 14px 0 0; font-weight: 700; color: var(--navy); }
.video-desc { text-align: center; margin: 2px 0 0; font-size: .92rem; }
video.video { cursor: auto; }

/* Security: a dark feature card beside four smaller cards */
.security-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.security-main {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    grid-row: span 2;
    padding: 36px;
    border-radius: 24px;
    background: var(--navy-900);
    color: var(--text-on-dark);
    box-shadow: 0 30px 60px rgba(19, 26, 43, .25);
}
.security-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px 320px at 0% 0%, rgba(25, 186, 139, .25), transparent 70%);
}
.security-main h3 { color: #fff; font-size: 1.5rem; }
.security-main .checks { margin-top: 20px; }
.security-main .checks li { color: #e6ecf5; }
.security-main .checks li::before { background: rgba(25, 186, 139, .18); color: var(--green); }
.security-bg { position: absolute; right: -30px; bottom: -40px; z-index: -1; font-size: 15rem; color: rgba(255, 255, 255, .04); }

@media (max-width: 900px) {
    .security-grid { grid-template-columns: 1fr 1fr; }
    .security-main { grid-column: 1 / -1; grid-row: auto; }
}

/* Call to action band (in footer include) */
.cta-band { padding: 96px 0; text-align: center; }
.cta-band p { font-size: 1.15rem; }
.cta-band .cta-row { justify-content: center; margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--bg-alt); padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 32px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; }
.site-footer h3 { font-size: 1rem; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--navy); }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
    transition: transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .whatsapp-float:hover { transform: scale(1.06); }
}

/* Inner pages (features, privacy) */
.page-hero { padding: 88px 0 72px; text-align: center; }
.page-hero .lead { color: var(--text-on-dark); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.jump a {
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #e6ecf5;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.jump i { color: var(--green); margin-right: 6px; }
@media (hover: hover) and (pointer: fine) {
    .jump a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
}
.section-head .icon-tile { margin: 0 auto 18px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Phones: tighter spacing, keep the page short */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .hero { padding: 48px 0 64px; }
    .page-hero { padding: 56px 0 48px; }
    .cta-row { margin: 26px 0 32px; }
    .cta-row .btn { flex: 1 1 100%; justify-content: center; }
    .stats li { padding: 0 14px; font-size: .82rem; }
    .stats strong { font-size: 1.45rem; }
    .float-card { display: none; }
    .app-mock { margin-top: 40px; }
    .app-window { font-size: .72rem; }
    .app-main { padding: 12px; gap: 10px; }
    .kpis { gap: 8px; }
    .kpi { padding: 10px; }
    .kpi strong { font-size: 1.15rem; }
    .app-row { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .chart-bars { height: 80px; gap: 6px; }
    .rotator { font-size: .82em; }
    .pill { font-size: .78rem; }
    .app-row .panel:first-child { display: none; }
    .flow-card { padding: 26px; }
    .card { padding: 20px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .security-grid { grid-template-columns: 1fr; }
    .security-main { padding: 26px; }
    .grid-4 .icon-tile { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 14px; }
    .grid-4 h3 { font-size: 1rem; }
    .grid-4 p { font-size: .9rem; line-height: 1.45; }
    .marquee-track li { width: 140px; height: 80px; margin-right: 12px; }
    .marquee-track img { max-height: 56px; }
    .tabs { border-radius: 16px; }
    .tabs button { font-size: .85rem; padding: 8px 12px; }
    .cta-band { padding: 72px 0; }
}

.section-head h2 .badge { vertical-align: middle; }
