/*
 * MedusaCore Public Web — 2026 professional design layer.
 * Direction: ui-ux-pro-max Feature-Rich Showcase + Soft UI Evolution,
 * adapted from 21st.dev product-mockup, enterprise hero and feature-bento patterns.
 * Loaded after the structural and Apprista styles so URL, SEO and component
 * architecture remain stable while the visual system can evolve independently.
 */

:root {
    --color-primary: #0f172a;
    --color-on-primary: #ffffff;
    --color-secondary: #334155;
    --color-accent: #2f56f4;
    --color-success: #16a36a;
    --color-cta: #f76645;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-muted: #eef2f7;
    --color-border: #dbe4ef;
    --color-foreground: #020617;
    --ink: var(--color-primary);
    --ink-2: #101b38;
    --ink-3: var(--color-accent);
    --paper: var(--color-background);
    --paper-2: var(--color-muted);
    --white: var(--color-surface);
    --blue: var(--color-accent);
    --signal: var(--color-success);
    --signal-dark: #0b7850;
    --amber: var(--color-cta);
    --muted: #526179;
    --line: var(--color-border);
    --display: "Rubik", "Segoe UI", Arial, sans-serif;
    --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    --data: "Rubik", "Segoe UI", Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgb(15 23 42 / 5%);
    --shadow-md: 0 12px 34px rgb(15 23 42 / 9%);
    --shadow-lg: 0 28px 70px rgb(15 23 42 / 14%);
    --shadow: var(--shadow-md);
}

html {
    scroll-padding-top: 104px;
    background: var(--color-background);
}

body {
    color: var(--color-primary);
    background: var(--color-background);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
}

body::selection {
    color: var(--color-on-primary);
    background: var(--color-accent);
}

h1,
h2,
h3 {
    color: var(--color-primary);
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.035em;
}

h1 { font-size: clamp(3rem, 5.5vw, 5.25rem); line-height: 1.02; }
h2 { font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
p { color: var(--muted); }

a,
button,
summary { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--color-cta);
    outline-offset: 4px;
}

h1[tabindex="-1"]:focus { outline: none; }

.shell { width: min(1240px, calc(100% - 56px)); }

.eyebrow {
    margin-bottom: 18px;
    color: var(--color-cta);
    font-family: var(--display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.lead { font-size: clamp(1.08rem, 1.55vw, 1.3rem); line-height: 1.65; }

.button {
    min-height: 52px;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 12px;
    box-shadow: none;
    font-family: var(--display);
    font-size: .9rem;
    font-weight: 600;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgb(15 23 42 / 15%); }
.button-small { min-height: 44px; padding: 10px 17px; border-radius: 10px; }
.button-primary { color: #fff; background: var(--color-accent); }
.button-primary:hover { background: #2447d8; }
.button-signal { color: #fff; background: var(--color-cta); }
.button-signal:hover { background: #df5638; }
.button-outline { color: var(--color-accent); border-color: #aabaf5; background: #fff; }
.button-outline:hover { color: #fff; border-color: var(--color-accent); background: var(--color-accent); }
.button-ghost-light { color: #fff; border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 5%); }
.button-ghost-light:hover { color: var(--color-primary); background: #fff; }

.text-link {
    gap: 9px;
    color: var(--color-accent);
    font-family: var(--display);
    font-size: .94rem;
    font-weight: 600;
}

/* Global navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 88px;
    color: var(--color-primary);
    background: rgb(255 255 255 / 94%);
    border: 0;
    border-bottom: 1px solid rgb(219 228 239 / 88%);
    box-shadow: 0 8px 32px rgb(15 23 42 / 6%);
    backdrop-filter: blur(18px);
}

.site-header::before { display: none; }
.header-inner { position: relative; gap: 24px; }
.brand,
.brand-on-dark { color: var(--color-primary); }

.brand-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    padding: 3px;
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 14px;
    box-shadow: 0 9px 24px rgb(15 23 42 / 14%);
}

.brand-copy strong { font-size: 1rem; font-weight: 700; letter-spacing: .105em; }
.brand-copy small { margin-top: 7px; color: #65738a; font-size: .55rem; font-weight: 600; letter-spacing: .12em; }
.desktop-nav { justify-content: center; gap: 2px; }

.desktop-nav > a,
.nav-cluster > summary {
    min-height: 44px;
    padding-inline: 10px;
    color: #27344a;
    border-radius: 9px;
    font-family: var(--display);
    font-size: .84rem;
    font-weight: 500;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-cluster[open] > summary {
    color: var(--color-accent);
    background: #eef2ff;
}

.nav-cluster > summary::after { color: var(--color-success); }

.nav-panel {
    top: 73px;
    padding: 12px;
    color: var(--color-primary);
    background: rgb(255 255 255 / 98%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.nav-panel a { min-height: 48px; padding: 8px 12px; border-bottom-color: #e8edf4; border-radius: 8px; }
.nav-panel a:hover { color: var(--color-accent); background: #f3f6ff; }
.nav-panel a small { color: #687790; font-size: .68rem; }
.header-actions { gap: 13px; }

.header-phone {
    display: flex;
    flex-direction: column;
    color: var(--color-primary);
    font-family: var(--body);
    line-height: 1.2;
}

.header-phone span { color: #738096; font-size: .64rem; font-weight: 600; }
.header-phone strong { margin-top: 4px; font-family: var(--display); font-size: .76rem; font-weight: 600; }
.mobile-menu > summary span { background: var(--color-primary); }
.mobile-menu nav { top: 87px; color: var(--color-primary); background: #fff; }
.mobile-menu nav strong { color: var(--color-accent); }
.mobile-download-link { margin-top: 16px; color: #fff !important; background: var(--color-cta); border: 0 !important; border-radius: 10px; text-align: center; }

/* Enterprise product hero */
.home-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 16%, rgb(47 86 244 / 70%), transparent 34%),
        radial-gradient(circle at 72% 88%, rgb(22 163 106 / 25%), transparent 34%),
        linear-gradient(125deg, #0b1328 0%, #111e42 55%, #0d2540 100%);
    border-radius: 0 0 68px 68px;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    opacity: .55;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.home-hero::after {
    position: absolute;
    top: -190px;
    right: -150px;
    width: 620px;
    height: 620px;
    pointer-events: none;
    background: radial-gradient(circle, rgb(80 227 174 / 16%), transparent 66%);
    content: "";
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    min-height: 690px;
    grid-template-columns: .88fr 1.12fr;
    gap: 68px;
    padding-block: 82px 118px;
}

.hero-copy { animation: medusa-rise 360ms ease-out both; }
.hero-copy h1 { max-width: 690px; color: #fff; }
.hero-copy h1 em { color: #76efbd; font-style: normal; }
.hero-copy .lead { max-width: 660px; margin-top: 28px; color: #cfdaee; font-weight: 500; }
.eyebrow-signal { display: inline-flex; align-items: center; gap: 10px; color: #a7f3d0; }
.eyebrow-signal i { width: 8px; height: 8px; background: #50e3ae; border-radius: 50%; box-shadow: 0 0 0 6px rgb(80 227 174 / 14%); }
.hero-actions { margin-top: 34px; }
.hero-trust { gap: 12px; margin-top: 34px; color: #c9d5e9; font-family: var(--body); font-size: .76rem; }

.hero-trust span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 9px;
}

.hero-trust b { margin-right: 4px; color: #fff; }

.hero-product-visual {
    position: relative;
    z-index: 3;
    overflow: visible;
    padding: 8px;
    background: rgb(255 255 255 / 98%);
    border: 1px solid rgb(255 255 255 / 50%);
    border-radius: 19px;
    box-shadow: 0 42px 95px rgb(0 0 0 / 38%);
    transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
    animation: medusa-rise 420ms 60ms ease-out both;
    backdrop-filter: none;
}

.hero-product-visual::before {
    position: absolute;
    z-index: -1;
    inset: -22px;
    background: linear-gradient(125deg, rgb(47 86 244 / 45%), rgb(22 163 106 / 24%));
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 30px;
    content: "";
    opacity: .7;
    filter: blur(1px);
}

.hero-product-visual::after { display: none; }
.hero-product-visual > img { border-radius: 0 0 12px 12px; }
.product-window-bar { height: 40px; color: #d7e1f2; background: #0b1328; border-radius: 12px 12px 0 0; }
.product-window-bar strong { font-size: .62rem; letter-spacing: .14em; }
.hero-screen-label {
    position: absolute;
    z-index: 5;
    top: -20px;
    left: 24px;
    padding: 8px 12px;
    color: #fff;
    background: var(--color-success);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgb(4 110 73 / 30%);
    font-family: var(--display);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.product-proof {
    right: 22px;
    bottom: -42px;
    max-width: 310px;
    padding: 16px 18px;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-cta);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: .72rem;
}

.product-proof::before { display: none; }
.product-proof b { font-size: .85rem; }
.hero-float-card {
    position: absolute;
    z-index: 6;
    display: flex;
    min-width: 185px;
    flex-direction: column;
    padding: 13px 15px 13px 38px;
    color: var(--color-primary);
    background: rgb(255 255 255 / 96%);
    border: 1px solid #dce5f0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    font-size: .7rem;
    line-height: 1.35;
}

.hero-float-card i { position: absolute; top: 17px; left: 16px; width: 10px; height: 10px; background: var(--color-success); border-radius: 50%; box-shadow: 0 0 0 5px rgb(22 163 106 / 13%); }
.hero-float-card b { font-family: var(--display); font-size: .78rem; }
.hero-float-card small { margin-top: 3px; color: #6b778b; }
.hero-float-card-left { bottom: -30px; left: -42px; }
.hero-float-card-right { top: 74px; right: -38px; }
.hero-float-card-right i { background: var(--color-accent); box-shadow: 0 0 0 5px rgb(47 86 244 / 13%); }

.hero-proof-rail {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: -45px;
    margin-bottom: -62px;
    padding: 0;
    overflow: hidden;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.hero-proof-rail > div {
    position: relative;
    display: flex;
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    padding: 22px 22px 20px 52px;
    border-right: 1px solid var(--color-border);
}

.hero-proof-rail > div:last-child { border-right: 0; }
.hero-proof-rail span { position: absolute; top: 27px; left: 20px; color: var(--color-success); font-family: var(--display); font-size: .66rem; font-weight: 700; }
.hero-proof-rail strong { font-family: var(--display); font-size: .88rem; }
.hero-proof-rail small { margin-top: 6px; color: #69768a; font-size: .72rem; }

/* Real product proof */
.real-screen-section { padding-block: 158px 112px; background: #fff; }
.real-screen-section::before { display: none; }
.section-heading { margin-bottom: 48px; }
.split-heading { gap: 80px; }
.split-heading p { max-width: 580px; font-size: 1.04rem; }
.real-screen-grid { gap: 28px; }

.screen-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.screen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.screen-card::after { display: none; }
.screen-card-heading { padding: 20px 22px; color: var(--color-primary); background: #f8fafc; border-bottom: 1px solid var(--color-border); }
.screen-card-heading span { color: var(--color-success); font-size: .63rem; letter-spacing: .14em; }
.screen-card-heading strong { color: var(--color-primary); }
.screen-card-restaurant .screen-card-heading { color: var(--color-primary); background: #f3efff; }
.screen-card-restaurant .screen-card-heading span { color: var(--color-accent); }
.screen-card img { transition: transform 320ms ease-out; }
.screen-card:hover img { transform: scale(1.01); }
.screen-card figcaption { padding: 18px 22px 22px; color: #5b687c; background: #fff; }

.product-photo-strip { gap: 12px; margin-top: 26px; }
.product-photo-strip figure { overflow: hidden; border: 1px solid var(--color-border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.product-photo-strip figcaption { color: var(--color-primary); background: #fff; }
.screen-gallery-link { margin-top: 30px; padding: 25px 28px; background: #f5f7fb; border: 1px solid var(--color-border); border-radius: 16px; }

/* 21st-inspired feature bento */
.home-intro { padding-block: 112px; background: var(--color-background); }
.intro-grid { margin-bottom: 46px; }
.product-showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.product-card {
    position: relative;
    min-height: 290px;
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    color: var(--color-primary);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}

.product-card::before { position: absolute; right: -70px; bottom: -90px; width: 190px; height: 190px; background: radial-gradient(circle, rgb(47 86 244 / 12%), transparent 68%); content: ""; }
.product-card:hover { transform: translateY(-4px); border-color: #b9c8f8; box-shadow: var(--shadow-md); }
.product-card-1 { min-height: 350px; grid-column: span 7; color: #fff; background: linear-gradient(135deg, #101a36, #183876 68%, #2157d9); border-color: #2a4e9a; }
.product-card-2 { min-height: 350px; grid-column: span 5; background: linear-gradient(145deg, #eaf3ff, #fff 70%); }
.product-card-1::before { width: 350px; height: 350px; background: radial-gradient(circle, rgb(80 227 174 / 20%), transparent 68%); }
.product-card h3 { position: relative; z-index: 1; margin-top: auto; }
.product-card-1 h3,
.product-card-1 p,
.product-card-1 .card-link { color: #fff; }
.product-card p { position: relative; z-index: 1; margin-top: 15px; color: #617087; font-size: .92rem; }
.product-card-1 p { max-width: 650px; color: #cfdaed; }
.product-card-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.product-card-number { display: grid; width: 38px; height: 38px; place-content: center; color: var(--color-accent); background: #eef2ff; border-radius: 10px; font-family: var(--display); font-size: .72rem; font-weight: 700; }
.product-card-1 .product-card-number { color: #a7f3d0; background: rgb(255 255 255 / 10%); }
.product-type { color: #6e7c91; font-size: .62rem; letter-spacing: .12em; }
.product-card-1 .product-type { color: #a7f3d0; }
.card-link { position: relative; inset: auto; z-index: 1; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 22px; color: var(--color-accent); font-family: var(--display); font-size: .78rem; font-weight: 600; }
.product-card:hover p { color: #617087; }
.product-card-1:hover p { color: #cfdaed; }
.card-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease-out; }
.product-card:hover .card-link svg { transform: translate(2px, -2px); }

/* Sector routing */
.sector-universe {
    position: relative;
    overflow: hidden;
    padding-block: 116px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgb(47 86 244 / 35%), transparent 30%),
        radial-gradient(circle at 88% 85%, rgb(22 163 106 / 20%), transparent 32%),
        #0f172a;
}

.sector-universe::before { display: none; }
.sector-universe-grid { gap: 74px; }
.sector-universe-copy { top: 116px; }
.sector-universe-copy h2 { color: #fff; }
.sector-universe-copy p { color: #cbd5e1; }
.sector-link-grid { gap: 12px; }

.sector-link-grid a {
    min-height: 112px;
    color: #fff;
    background: rgb(255 255 255 / 6%);
    border: 1px solid rgb(255 255 255 / 11%);
    border-radius: 15px;
    transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
}

.sector-link-grid a:hover { transform: translateY(-3px); background: rgb(47 86 244 / 22%); border-color: rgb(118 148 255 / 42%); }
.sector-link-grid a small { color: #aebcd0; }
.sector-link-grid a b { color: #76efbd; }

/* Connected system and feature index */
.signal-section,
.workflow-section {
    background:
        radial-gradient(circle at 82% 18%, rgb(47 86 244 / 28%), transparent 30%),
        linear-gradient(130deg, #10182d, #111f3f);
}

.signal-section::after { display: none; }
.signal-copy h2,
.workflow-copy h2 { color: #fff; }
.signal-copy p,
.workflow-copy p { color: #c9d4e5; }
.system-map { min-height: 570px; }
.system-core { width: 205px; height: 205px; background: linear-gradient(135deg, #2f56f4, #18367c); border-color: rgb(255 255 255 / 28%); box-shadow: 0 30px 80px rgb(0 0 0 / 35%), 0 0 0 24px rgb(47 86 244 / 8%); }
.system-node { color: #fff; background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 14%); border-radius: 12px; backdrop-filter: blur(10px); }
.feature-index { background: #eef3f8; }
.feature-index::before { display: none; }
.feature-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }

.feature-list a {
    min-height: 102px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.feature-list a:hover { transform: translateY(-3px); border-color: #b7c5f7; box-shadow: var(--shadow-md); }
.feature-list a small { color: #6a788c; }
.feature-list a b { color: var(--color-success); }

.resource-preview { background: #fff; }
.article-grid { gap: 18px; }
.article-grid article { padding: 28px; background: #f8fafc; border: 1px solid var(--color-border); border-radius: 16px; box-shadow: none; }
.article-grid article:hover { border-color: #b8c7f8; box-shadow: var(--shadow-md); }

/* Shared product landing pages */
.breadcrumbs { padding-block: 20px; color: #69768a; font-size: .76rem; }
.landing-hero {
    position: relative;
    overflow: hidden;
    padding-block: 74px 92px;
    background:
        radial-gradient(circle at 84% 12%, rgb(47 86 244 / 13%), transparent 28%),
        linear-gradient(180deg, #fff, #f5f8fc);
    border-bottom: 1px solid var(--color-border);
}

.landing-hero::before,
.landing-hero::after { display: none; }
.landing-hero-grid { grid-template-columns: 1.08fr .72fr; gap: 70px; }
.landing-copy h1 { color: var(--color-primary); }
.landing-copy .lead { color: #56657b; }
.landing-copy .text-link { color: var(--color-accent); }
.landing-copy .text-link span { color: var(--color-cta); }
.landing-hero .button-ghost-light { color: var(--color-primary); border-color: #b8c4d6; background: #fff; }
.landing-hero .button-ghost-light:hover { color: #fff; border-color: var(--color-accent); background: var(--color-accent); }
.landing-summary { color: #fff; background: linear-gradient(145deg, #111a33, #162957); border: 1px solid #294277; border-radius: 20px; box-shadow: var(--shadow-lg); }
.landing-summary::before { background: var(--color-success); }
.landing-summary p { color: #d8e2f0; }
.summary-label { color: #87f1c7; }
.summary-item { color: #e7edf6; border-color: rgb(255 255 255 / 12%); }
.summary-item span { color: #76efbd; }
.micro-proof { color: #66758b; }
.micro-proof span { color: var(--color-success); }
.capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capability-grid article { min-height: 235px; padding: 28px; background: #fff; border: 1px solid var(--color-border); border-radius: 17px; box-shadow: var(--shadow-sm); }
.capability-grid article:hover { transform: translateY(-3px); border-color: #b6c5f8; box-shadow: var(--shadow-md); }
.cap-index { color: var(--color-success); }
.application-proof { padding-block: 110px; background: #eef3f8; }
.application-proof-grid { gap: 68px; }
.application-window { border: 1px solid var(--color-border); border-radius: 18px; box-shadow: var(--shadow-lg); transform: none; }
.application-window-bar { background: #10182d; }
.application-window figcaption { background: #fff; }
.workflow-list li { background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); border-radius: 15px; }
.workflow-list li span { color: #76efbd; }
.workflow-list li strong { color: #fff; }
.workflow-list li p { color: #bfcbdd; }
.faq-section { background: #fff; }
.accordion-list details { background: #f8fafc; border: 1px solid var(--color-border); border-radius: 13px; }
.accordion-list details[open] { background: #fff; border-color: #aebef7; box-shadow: var(--shadow-md); }

/* Editorial, contact and download surfaces */
.editorial-hero,
.contact-hero {
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgb(47 86 244 / 45%), transparent 32%),
        linear-gradient(130deg, #0f172a, #172b58);
    border-radius: 0 0 48px 48px;
}

.editorial-hero h1,
.contact-hero h1 { color: #fff; }
.editorial-hero .lead,
.contact-hero .lead { color: #d4deed; }
.editorial-hero::before,
.contact-hero::before { display: none; }
.surface-section { background: #eef3f8; }
.download-grid article { border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow-md); }
.download-card-primary { background: linear-gradient(145deg, #10182f, #192a5b); }
.download-counter { border-radius: 12px; }
.requirements-grid,
.install-grid { gap: 60px; }
.inpos-hero { background: linear-gradient(135deg, #10182f, #173269); }
.inpos-hero h1 { color: #fff; }
.inpos-hero .lead { color: #d8e2f0; }
.inpos-hero .micro-proof { color: #aebbd0; }

/* Conversion band */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: 94px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 20%, rgb(80 227 174 / 18%), transparent 28%),
        radial-gradient(circle at 12% 85%, rgb(47 86 244 / 34%), transparent 30%),
        #10182f;
    border: 0;
}

.cta-band::after { right: -120px; bottom: -240px; width: 560px; height: 560px; background: radial-gradient(circle, rgb(47 86 244 / 22%), transparent 68%); }
.cta-grid { position: relative; z-index: 2; gap: 70px; }
.cta-grid h2 { color: #fff; }
.cta-grid p { color: #cbd5e1; }

/* Footer and persistent contact */
.site-footer { color: #d4dceb; background: #09101f; border-top: 1px solid #22304c; }
.site-footer .brand,
.site-footer .brand-on-dark { color: #fff; }
.site-footer .brand-copy small { color: #8f9db3; }
.site-footer p { color: #9ca9bd; }
.site-footer h2 { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #aeb9cb; }
.site-footer a:hover { color: #fff; }
.footer-grid { gap: 52px; }
.footer-release { position: relative; display: grid; grid-template-columns: 12px auto; margin-top: 25px; padding: 14px 16px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 9%); border-radius: 12px; }
.footer-release > span { grid-row: 1 / 3; align-self: center; width: 9px; height: 9px; background: #50e3ae; border-radius: 50%; box-shadow: 0 0 0 5px rgb(80 227 174 / 12%); }
.footer-release strong { color: #fff; font-family: var(--display); font-size: .76rem; }
.footer-release small { color: #8fa0b8; font-size: .68rem; }
.footer-base { border-top-color: rgb(255 255 255 / 9%); }

.floating-whatsapp {
    z-index: 80;
    right: 24px;
    bottom: 24px;
    filter: drop-shadow(0 14px 22px rgb(5 92 57 / 28%));
}

.floating-whatsapp-icon { width: 60px; height: 60px; background: #16a36a; border: 4px solid #fff; box-shadow: 0 0 0 1px rgb(15 23 42 / 10%); }
.floating-whatsapp-label { color: var(--color-primary); background: #fff; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow-md); }

@keyframes medusa-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    .shell { width: min(1120px, calc(100% - 40px)); }
    .header-phone { display: none; }
    .desktop-nav > a,
    .nav-cluster > summary { padding-inline: 8px; font-size: .78rem; }
    .home-hero-grid { gap: 46px; }
    .hero-float-card-right { right: -12px; }
    .hero-float-card-left { left: -12px; }
    .hero-proof-rail > div { padding-inline: 45px 13px; }
    .hero-proof-rail span { left: 15px; }
}

@media (max-width: 1050px) {
    .site-header { height: 78px; }
    .desktop-nav,
    .header-actions { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu nav { top: 77px; max-height: calc(100vh - 78px); }
    .home-hero { border-radius: 0 0 46px 46px; }
    .home-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 74px; padding-block: 72px 105px; }
    .hero-copy h1 { max-width: 820px; }
    .hero-copy .lead { max-width: 760px; }
    .hero-product-visual { width: min(850px, 92%); margin-inline: auto; transform: none; }
    .hero-proof-rail { grid-template-columns: repeat(3, 1fr); margin-top: -38px; margin-bottom: -50px; }
    .hero-proof-rail > div { border-bottom: 1px solid var(--color-border); }
    .hero-proof-rail > div:nth-child(3) { border-right: 0; }
    .hero-proof-rail > div:nth-child(n+4) { border-bottom: 0; }
    .hero-proof-rail > div:nth-child(4) { grid-column: 1 / 2; }
    .real-screen-section { padding-top: 130px; }
    .product-card { grid-column: span 6; }
    .product-card-1,
    .product-card-2 { grid-column: span 6; }
    .sector-universe-grid,
    .landing-hero-grid { grid-template-columns: 1fr; }
    .sector-universe-copy { position: relative; top: auto; }
    .capability-grid,
    .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .shell { width: min(100% - 30px, 720px); }
    body { font-size: 16px; }
    h1,
    .hero-copy h1,
    .landing-copy h1,
    .editorial-grid h1,
    .contact-copy h1,
    .inpos-hero h1,
    .guide-header h1,
    .legal header h1,
    .not-found h1 { font-size: clamp(2.55rem, 10vw, 3.85rem); }
    h2 { font-size: clamp(2rem, 9vw, 3rem); }
    .site-header { height: 72px; }
    .header-inner { gap: 14px; }
    .brand-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
    .brand-copy strong { font-size: .88rem; }
    .brand-copy small { font-size: .46rem; }
    .mobile-menu nav { top: 71px; max-height: calc(100vh - 72px); }
    .home-hero { border-radius: 0 0 32px 32px; }
    .home-hero-grid { gap: 62px; padding-block: 58px 92px; }
    .hero-copy .lead { margin-top: 22px; }
    .hero-actions { align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-trust { display: grid; grid-template-columns: 1fr; }
    .hero-trust span { width: 100%; }
    .hero-product-visual { width: 100%; padding: 5px; border-radius: 14px; }
    .hero-product-visual::before { inset: -10px; border-radius: 20px; }
    .hero-screen-label { top: -17px; left: 12px; }
    .product-proof { right: 8px; bottom: -50px; max-width: calc(100% - 16px); }
    .hero-float-card { display: none; }
    .hero-proof-rail { grid-template-columns: 1fr; margin-top: 0; margin-bottom: -46px; overflow: visible; border-radius: 16px; }
    .hero-proof-rail > div { min-height: 90px; padding-block: 17px; border-right: 0; border-bottom: 1px solid var(--color-border) !important; }
    .hero-proof-rail > div:last-child { border-bottom: 0 !important; }
    .hero-proof-rail > div:nth-child(4) { grid-column: auto; }
    .hero-proof-rail span { top: 23px; }
    .real-screen-section { padding-block: 105px 84px; }
    .split-heading { gap: 22px; }
    .screen-card { border-radius: 16px; }
    .product-photo-strip { grid-template-columns: repeat(3, 1fr); }
    .screen-gallery-link { align-items: stretch; }
    .screen-gallery-link .button { width: 100%; }
    .home-intro,
    .sector-universe,
    .signal-section,
    .workflow-section,
    .content-section,
    .application-proof { padding-block: 82px; }
    .product-showcase { grid-template-columns: 1fr; }
    .product-card,
    .product-card-1,
    .product-card-2 { min-height: 270px; grid-column: auto; }
    .sector-link-grid { grid-template-columns: 1fr; }
    .sector-link-grid a { min-height: 94px; }
    .capability-grid,
    .feature-list { grid-template-columns: 1fr; }
    .cta-grid { gap: 36px; }
    .cta-actions { align-items: stretch; }
    .cta-actions .button { width: 100%; }
    .footer-grid { gap: 42px; }
    .floating-whatsapp-label { display: none; }
}

@media (max-width: 480px) {
    .shell { width: min(100% - 24px, 440px); }
    .eyebrow { letter-spacing: .1em; }
    .brand-copy small { display: none; }
    .home-hero-grid { padding-top: 46px; }
    .hero-screen-label { font-size: .5rem; }
    .product-proof { font-size: .65rem; }
    .product-photo-strip { grid-template-columns: repeat(2, 1fr); }
    .product-card { padding: 24px; }
    .landing-hero { padding-block: 54px 70px; }
    .landing-summary { padding: 26px; }
    .download-grid article { border-radius: 15px; }
    .floating-whatsapp { right: 14px; bottom: 14px; }
    .floating-whatsapp-icon { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-product-visual,
    .product-card:hover,
    .screen-card:hover,
    .sector-link-grid a:hover,
    .feature-list a:hover,
    .button:hover { transform: none; }
}

@media print {
    .site-header { position: static; }
    .hero-float-card,
    .floating-whatsapp { display: none !important; }
}
