/* =========================================================
   1VisionApps — design tokens
   ========================================================= */
:root {
    --brand: #0d6efd;
    --brand-600: #0a58ca;
    --brand-700: #083f99;
    --accent: #12b5a5;
    --grad: linear-gradient(120deg, #0d6efd 0%, #4f46e5 55%, #12b5a5 100%);

    --bg: #ffffff;
    --bg-alt: #f4f7fc;
    --surface: #ffffff;
    --text: #0f1b2d;
    --text-2: #4a5872;
    --muted: #6b7890;
    --line: #e2e8f2;
    --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .07);
    --shadow-lg: 0 24px 60px rgba(13, 50, 120, .18);

    --dark-band: #071a3a;
    --dark-band-2: #0b2a5c;

    --radius: 14px;
    --radius-lg: 22px;
    --header-h: 72px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a1220;
        --bg-alt: #0e1829;
        --surface: #121e33;
        --text: #e8eef8;
        --text-2: #aab6cb;
        --muted: #8492a9;
        --line: #1f2d45;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
        --dark-band: #06101f;
        --dark-band-2: #0b2147;
        --brand: #3d8bfd;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0a1220;
    --bg-alt: #0e1829;
    --surface: #121e33;
    --text: #e8eef8;
    --text-2: #aab6cb;
    --muted: #8492a9;
    --line: #1f2d45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --dark-band: #06101f;
    --dark-band-2: #0b2147;
    --brand: #3d8bfd;
    color-scheme: dark;
}

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

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--brand);
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .9rem;
}

.eyebrow.light {
    color: #7fd8ff;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-2);
}

.muted {
    color: var(--muted);
}

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: 600 .95rem/1 var(--font);
    padding: .8rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: .55rem 1rem;
    font-size: .9rem;
}

.btn-lg {
    padding: 1rem 1.6rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, .28);
}

.btn-primary:hover {
    background: var(--brand-600);
    box-shadow: 0 10px 26px rgba(13, 110, 253, .38);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-light {
    background: #fff;
    color: #0b2a5c;
}

.btn-light:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px rgba(15, 27, 45, .06);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font: 700 1.2rem/1 var(--font-display);
    letter-spacing: -.02em;
}

.brand b {
    color: var(--brand);
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a:not(.btn) {
    color: var(--text-2);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .8rem;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

.nav a:not(.btn):hover,
.nav a.active {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
}

.nav-cta {
    margin-left: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.icon-moon {
    display: none !important;
}

:root[data-theme="dark"] .icon-sun {
    display: none !important;
}

:root[data-theme="dark"] .icon-moon {
    display: block !important;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun {
        display: none !important;
    }

    :root:not([data-theme="light"]) .icon-moon {
        display: block !important;
    }
}

.menu-btn {
    display: none;
    gap: 4px;
    align-content: center;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: -250px;
    top: 18%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero .lead {
    max-width: 560px;
    margin-bottom: 2rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust {
    list-style: none;
    padding: 0;
    margin: 2.2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: var(--muted);
    font-size: .9rem;
}

.trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust li::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b5a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

.trust b {
    color: var(--text);
}

/* Hero mock (Advisor chat) */
.hero-visual {
    position: relative;
    padding: 24px 12px;
}

.mock {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}

.mock-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6159;
}

.mock-bar i:nth-child(2) {
    background: #ffbd2e;
}

.mock-bar i:nth-child(3) {
    background: #28c941;
}

.mock-bar span {
    margin-left: 10px;
    font-size: .75rem;
    color: var(--muted);
}

.up {
    color: #16a34a;
}

.down {
    color: #12b5a5;
}

.chart {
    height: 110px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 0 0;
    overflow: hidden;
}

.chart svg {
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.fc-1 {
    left: -18px;
    bottom: 18px;
}

.fc-2 {
    right: -6px;
    top: 0;
    animation-delay: -3s;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.ok {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.dot.info {
    background: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    padding: 104px 0;
}

.section.alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head p:last-child {
    color: var(--text-2);
    font-size: 1.08rem;
}

/* Services */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    position: relative;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.card p {
    color: var(--text-2);
    margin: 0;
    font-size: .97rem;
}

.card-ico {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 11%, transparent);
}

.card-ico svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Product band */
.product {
    color: #e9f1ff;
    background:
        radial-gradient(800px 400px at 90% 10%, rgba(18, 181, 165, .22), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(79, 70, 229, .35), transparent 60%),
        linear-gradient(160deg, var(--dark-band) 0%, var(--dark-band-2) 100%);
}

.product .lead {
    color: #b9c9e6;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-pills {
    display: grid;
    gap: 10px;
    margin: 1.8rem 0 2.2rem;
}

.feature-pills span {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #b9c9e6;
    font-size: .95rem;
}

.feature-pills b {
    color: #fff;
}

.benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.benefits li {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .2s ease, transform .2s ease;
}

.benefits li:hover {
    background: rgba(255, 255, 255, .09);
    transform: translateX(4px);
}

.benefits .num {
    font: 800 1.5rem/1 var(--font-display);
    background: linear-gradient(135deg, #7fd8ff, #12b5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 40px;
}

.benefits h3 {
    color: #fff;
    margin-bottom: .35em;
}

.benefits p {
    margin: 0;
    color: #b9c9e6;
    font-size: .95rem;
}

/* Why us */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.stat strong,
.stat>span {
    font: 800 2.6rem/1 var(--font-display);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat>span {
    font-size: 1.3rem;
}

.stat p {
    margin: .8rem 0 0;
    color: var(--text-2);
    font-size: .93rem;
}

.diffs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.diff {
    padding-left: 20px;
    border-left: 3px solid var(--brand);
}

.diff p {
    color: var(--text-2);
    margin: 0;
}

/* Process */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: .35;
}

.steps li {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

.steps li>span {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    font: 700 1.2rem/1 var(--font-display);
    color: #fff;
    background: var(--grad);
    box-shadow: 0 0 0 8px var(--bg-alt);
}

.steps p {
    color: var(--text-2);
    font-size: .95rem;
    margin: 0;
}

/* Stack */
.stack {
    display: grid;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.stack-group {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stack-group h3 {
    margin: 0;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

.tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags li {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1020px;
}

.avatar {
    aspect-ratio: 1;
    border-radius: 32px;
    background: var(--grad);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%);
}

.avatar span {
    font: 800 5.5rem/1 var(--font-display);
    color: #fff;
    letter-spacing: -.04em;
}

.role {
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 1.3rem;
}

.about-grid p:not(.role):not(.eyebrow) {
    color: var(--text-2);
    font-size: 1.05rem;
}

/* Contact */
.contact {
    color: #e9f1ff;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(18, 181, 165, .2), transparent 60%),
        linear-gradient(160deg, var(--dark-band-2) 0%, var(--dark-band) 100%);
}

.contact .lead {
    color: #b9c9e6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 12px;
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-list a:hover {
    color: #7fd8ff;
}

.contact-list svg {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-form {
    background: var(--surface);
    color: var(--text);
    padding: 34px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 16px;
}

.contact-form h3 {
    font-size: 1.35rem;
    margin: 0 0 4px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    font: 400 1rem/1.4 var(--font);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.contact-form .invalid {
    border-color: #e5484d;
}

.form-note {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
}

.form-note.error {
    color: #e5484d;
}

/* Footer */
.site-footer {
    padding: 64px 0 28px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid .muted {
    max-width: 320px;
    margin-top: 14px;
    font-size: .95rem;
}

.footer-grid h4 {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-grid nav,
.footer-grid>div:last-child {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-grid nav a,
.footer-grid>div:last-child a {
    color: var(--text-2);
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.footer-grid a:hover {
    color: var(--brand);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 48px) 1px no-repeat;
    color: var(--muted);
}

/* WhatsApp floating button */
.wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
    transition: transform .2s ease;
}

.wa-fab:hover {
    transform: scale(1.08);
}

.wa-fab svg {
    width: 30px;
    height: 30px;
}

/* =========================================================
   VisionApps Advisor (AI)
   ========================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
}

.dot.bad {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .18);
}

/* AI mark: small gradient sparkle */
.adv-spark {
    flex: none;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 7.2 7.4 2.8-7.4 2.8L12 21.5l-2.6-7.2L2 11.5l7.4-2.8z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.6 7.2 7.4 2.8-7.4 2.8L12 21.5l-2.6-7.2L2 11.5l7.4-2.8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hero chat mock */
.mock-chat {
    display: grid;
    gap: 12px;
    padding: 18px;
    min-height: 300px;
    font-size: .82rem;
}

.mc-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.45;
}

.mc-user {
    justify-self: end;
    background: var(--brand);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.mc-ai {
    max-width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
    display: grid;
    gap: 10px;
}

.mc-ai p {
    margin: 0;
    color: var(--text-2);
}

.mc-ai-head,
.adv-ai-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 .72rem/1 var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
}

.mc-ai-head .adv-spark,
.adv-ai-head .adv-spark {
    width: 14px;
    height: 14px;
}

.mc-ai .chart {
    height: 90px;
    background: var(--surface);
}

.mc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mc-actions span {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
    background: var(--surface);
}

.mc-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.mc-input b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    background: var(--grad);
}

/* Section */
.advisor {
    background:
        radial-gradient(600px 300px at 12% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
        radial-gradient(600px 300px at 90% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
        var(--bg-alt);
}

.adv-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--grad);
    letter-spacing: .08em;
}

.adv-caps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.adv-cap {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.adv-cap .card-ico {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
}

.adv-cap .card-ico svg {
    width: 22px;
    height: 22px;
}

.adv-cap h3 {
    margin-bottom: .3em;
}

.adv-cap p {
    margin: 0;
    font-size: .92rem;
    color: var(--text-2);
}

/* Demo widget */
.adv-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.adv-chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.adv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.adv-bar .adv-spark {
    width: 26px;
    height: 26px;
}

.adv-bar strong {
    display: block;
    font: 600 .98rem/1.3 var(--font-display);
}

.adv-bar small {
    color: var(--muted);
    font-size: .78rem;
}

.adv-reset {
    margin-left: auto;
    padding: 6px 12px;
    font: 600 .8rem/1 var(--font);
    color: var(--text-2);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.adv-reset:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.adv-log {
    height: 440px;
    overflow-y: auto;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overscroll-behavior: contain;
}

.adv-msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .94rem;
    line-height: 1.55;
    animation: adv-in .3s ease both;
}

.adv-msg p {
    margin: 0;
}

.adv-user {
    align-self: flex-end;
    color: #fff;
    background: var(--brand);
    border-bottom-right-radius: 4px;
}

.adv-ai {
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.adv-ai b {
    color: var(--text);
}

.adv-thinking {
    width: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: .88rem;
}

.adv-dots {
    display: inline-block;
    width: 34px;
    height: 8px;
    background:
        radial-gradient(circle 4px, var(--brand) 98%, transparent) 0 50%/11px 8px no-repeat,
        radial-gradient(circle 4px, var(--brand) 98%, transparent) 50% 50%/11px 8px no-repeat,
        radial-gradient(circle 4px, var(--brand) 98%, transparent) 100% 50%/11px 8px no-repeat;
    animation: adv-pulse 1s ease-in-out infinite;
}

.adv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 0;
    border-top: 1px solid var(--line);
}

.adv-chip,
.adv-action {
    padding: 7px 13px;
    font: 500 .84rem/1.2 var(--font);
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.adv-chip:hover:not(:disabled),
.adv-action:hover:not(:disabled) {
    background: color-mix(in srgb, var(--brand) 16%, var(--surface));
    transform: translateY(-1px);
}

.adv-chip:disabled {
    opacity: .5;
    cursor: default;
}

.adv-form {
    display: flex;
    gap: 10px;
    padding: 12px 18px 18px;
}

.adv-form input {
    flex: 1;
    min-width: 0;
    padding: .8rem 1.1rem;
    font: 400 .95rem var(--font);
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.adv-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.adv-form .btn {
    width: 46px;
    height: 46px;
    padding: 0;
    flex: none;
}

.adv-form .btn:disabled {
    opacity: .5;
    cursor: default;
    transform: none;
}

.adv-form svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Answer visuals */
.adv-pop {
    animation: adv-in .4s ease both;
}

.adv-hbars {
    display: grid;
    gap: 8px;
}

.adv-hbar {
    display: grid;
    grid-template-columns: 52px 1fr auto 58px;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
}

.adv-hbar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.adv-hbar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--grad);
}

.adv-hbar-val {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.adv-delta {
    font-size: .78rem;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.adv-delta.up,
.adv-kpi em.up {
    color: #16a34a;
}

.adv-delta.neg,
.adv-kpi em.neg {
    color: #e5484d;
}

.adv-chart {
    padding: 10px 10px 8px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.adv-chart svg {
    width: 100%;
    height: 130px;
}

.adv-area {
    fill: color-mix(in srgb, var(--brand) 14%, transparent);
}

.adv-band {
    fill: color-mix(in srgb, var(--accent) 20%, transparent);
}

.adv-line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2.5;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.adv-line-f {
    stroke: var(--accent);
    stroke-dasharray: 6 5;
}

.adv-now {
    stroke: var(--muted);
    stroke-width: 1;
    stroke-dasharray: 2 4;
    vector-effect: non-scaling-stroke;
}

.adv-axis {
    display: flex;
    margin-top: 4px;
    font-size: .7rem;
    color: var(--muted);
}

.adv-axis span {
    flex: 1;
    text-align: center;
}

.adv-axis .f {
    color: var(--accent);
    font-weight: 600;
}

.adv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font-size: .74rem;
    color: var(--text-2);
}

.adv-legend span::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 3px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
}

.adv-legend .lg-actual::before {
    background: var(--brand);
}

.adv-legend .lg-forecast::before {
    background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px);
}

.adv-legend .lg-band::before {
    height: 10px;
    background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.adv-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.adv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.adv-table th,
.adv-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.adv-table tr:last-child td {
    border-bottom: 0;
}

.adv-table th {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.adv-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.adv-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
}

.adv-tag.bad {
    color: #e5484d;
    background: rgba(229, 72, 77, .12);
}

.adv-tag.warn {
    color: #d97706;
    background: rgba(245, 158, 11, .14);
}

.adv-tag.ok {
    color: var(--text-2);
    background: var(--line);
}

.adv-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.adv-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.adv-list li div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    font-size: .88rem;
}

.adv-save {
    margin-left: auto;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
}

.adv-list p {
    margin: 4px 0 0;
    font-size: .82rem;
    color: var(--text-2);
}

.adv-doc {
    padding: 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    font-size: .84rem;
}

.adv-doc-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adv-doc-head strong,
.adv-doc-head small {
    display: block;
}

.adv-doc-head small {
    color: var(--muted);
}

.adv-doc-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 42px;
    border-radius: 6px;
    font-size: .64rem;
    font-weight: 700;
    color: #fff;
    background: #e5484d;
}

.adv-kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    margin: 0;
}

.adv-kv dt {
    color: var(--muted);
}

.adv-kv dd {
    margin: 0;
    font-weight: 500;
}

.adv-doc-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 10px;
    border-radius: 8px;
}

.adv-doc-line.ok {
    background: rgba(34, 197, 94, .1);
}

.adv-doc-line.bad {
    background: rgba(229, 72, 77, .1);
    color: #e5484d;
    font-weight: 600;
}

.adv-actions small {
    display: block;
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.adv-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adv-action {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.adv-action:hover:not(:disabled) {
    background: var(--brand-600);
}

.adv-action.done {
    color: #16a34a;
    background: rgba(34, 197, 94, .12);
    border-color: transparent;
    cursor: default;
}

.adv-msg .adv-done {
    margin-top: 8px;
    font-size: .8rem;
    color: var(--muted);
}

/* Insights panel */
.adv-insights {
    padding: 20px;
    border-left: 1px solid var(--line);
    background: var(--bg-alt);
}

.adv-insights h3 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.adv-insights h4 {
    margin: 22px 0 10px;
    font: 600 .72rem/1 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.adv-kpis {
    display: grid;
    gap: 10px;
}

.adv-kpi {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.adv-kpi small {
    grid-column: 1 / -1;
    font-size: .74rem;
    color: var(--muted);
}

.adv-kpi strong {
    font: 700 1.2rem/1.2 var(--font-display);
}

.adv-kpi em {
    font-style: normal;
    font-size: .76rem;
    font-weight: 600;
    color: var(--muted);
}

.adv-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.adv-alert {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font: 500 .84rem/1.35 var(--font);
    text-align: left;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.adv-alert .dot {
    flex: none;
}

.adv-alert:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.adv-alert:disabled {
    cursor: default;
}

.adv-alert.on {
    color: var(--text);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.adv-note {
    margin: 18px 0 0;
    font-size: .76rem;
    color: var(--muted);
}

.adv-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    margin-top: 36px;
    text-align: center;
}

@keyframes adv-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes adv-pulse {

    0%,
    100% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .adv-caps {
        grid-template-columns: repeat(2, 1fr);
    }

    .adv-demo {
        grid-template-columns: 1fr;
    }

    .adv-insights {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        align-content: start;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .adv-insights h3,
    .adv-insights .adv-note {
        grid-column: 1 / -1;
    }

    .adv-alerts {
        grid-column: 2;
        grid-row: 2;
    }

    .adv-insights h4 {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    .steps::before {
        display: none;
    }
}

@media (max-width: 920px) {
    .menu-btn {
        display: grid;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(15, 27, 45, .12);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .nav.open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav a:not(.btn) {
        padding: .85rem 1rem;
        font-size: 1rem;
    }

    .nav-cta {
        margin: 10px 0 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-grid,
    .product-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        padding: 48px 0 72px;
    }

    .mock {
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .avatar {
        width: 200px;
    }

    .diffs {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 72px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .cards,
    .stats,
    .steps,
    .field-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-row .btn {
        width: 100%;
    }

    .stack-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .float-card {
        display: none;
    }

    .adv-caps {
        grid-template-columns: 1fr;
    }

    .adv-log {
        height: 380px;
        padding: 16px 12px;
    }

    .adv-msg {
        max-width: 94%;
        padding: 11px 13px;
    }

    .adv-bar,
    .adv-chips,
    .adv-form {
        padding-left: 12px;
        padding-right: 12px;
    }

    .adv-insights {
        grid-template-columns: 1fr;
        padding: 16px 12px;
    }

    .adv-insights .adv-alerts {
        grid-column: 1;
        grid-row: auto;
        margin-top: 10px;
    }

    .adv-hbar {
        grid-template-columns: 44px 1fr auto auto;
        gap: 8px;
    }

    .adv-cta .btn {
        width: 100%;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .benefits li {
        padding: 20px;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
