/* =========================================================
   Pico Software — On-Prem Local AI
   Modern landing page theme (standalone; does not touch
   the legacy pages' component.css / style5.css)
   ========================================================= */

:root {
    --ink: #0d1b2a;        /* headings */
    --body: #36454f;       /* body text */
    --muted: #6b7b8a;      /* secondary text */
    --line: #e7edf3;       /* hairlines */
    --bg: #ffffff;
    --bg-soft: #f4f8fc;
    --bg-soft-2: #eaf1f9;
    --brand: #1d5fa6;      /* "pico" blue */
    --brand-d: #154a82;
    --brand-l: #2f81c9;
    --accent: #14b3c6;     /* cyan highlight */
    --grey: #7d8a91;       /* "software" grey */
    --ok: #15a34a;
    --shadow-sm: 0 4px 14px rgba(13, 27, 42, .06);
    --shadow: 0 14px 36px rgba(13, 27, 42, .10);
    --shadow-lg: 0 28px 64px rgba(13, 27, 42, .16);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1140px;
    --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand-text {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 700;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--bg-soft-2);
    border: 1px solid #d9e6f4;
    padding: .35rem .8rem;
    border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(47, 129, 201, .45); outline-offset: 2px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-l), var(--brand));
    box-shadow: 0 8px 20px rgba(29, 95, 166, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 95, 166, .36); }
.btn-ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-l); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--body);
    font-weight: 500;
    font-size: .95rem;
    transition: color .15s ease;
}
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    border-radius: 2px; transition: .3s; 
}
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 5rem) 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 82% -8%, rgba(20, 179, 198, .14), transparent 60%),
        radial-gradient(820px 520px at 6% 4%, rgba(29, 95, 166, .14), transparent 55%),
        linear-gradient(180deg, #f6fafe 0%, #ffffff 70%);
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(29, 95, 166, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 95, 166, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(900px 500px at 70% 0%, #000, transparent 75%);
    mask-image: radial-gradient(900px 500px at 70% 0%, #000, transparent 75%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    margin: 1.1rem 0 1.1rem;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 36rem;
    margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust svg { color: var(--ok); flex: none; }

/* Hero visual card */
.hero-visual { position: relative; }
.device-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem;
    transform: rotate(.6deg);
}
.device-card .dc-top { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.dc-chip {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid; place-items: center; color: #fff;
}
.dc-title { font-weight: 700; color: var(--ink); font-family: 'Space Grotesk', sans-serif; }
.dc-sub { font-size: .82rem; color: var(--muted); }
.dc-bar { height: 10px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; margin: .2rem 0 1rem; }
.dc-bar i { display: block; height: 100%; width: 78%; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent)); }
.dc-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem .2rem; border-top: 1px dashed var(--line); font-size: .92rem;
}
.dc-row:first-of-type { border-top: 0; }
.dc-row b { color: var(--ink); font-weight: 600; }
.dc-tag { font-size: .72rem; font-weight: 600; color: var(--ok); background: #e8f7ee;
    padding: .15rem .5rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; }
.dc-float {
    position: absolute; bottom: -22px; left: -22px;
    background: #0d1b2a; color: #fff; border-radius: 14px; padding: .7rem 1rem;
    box-shadow: var(--shadow-lg); font-size: .85rem; display: flex; align-items: center; gap: .6rem;
}
.dc-float b { color: #fff; }
.dc-float .dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 0 4px rgba(46,230,166,.2); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: .9rem 0 .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e6f4; }
.feature .ico {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    color: var(--brand); background: var(--bg-soft-2); margin-bottom: 1rem;
}
.feature h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.feature p { font-size: .96rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.tier {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier.featured {
    border-color: var(--brand-l);
    box-shadow: var(--shadow-lg);
}
@media (min-width: 921px) { .tier.featured { transform: translateY(-10px) scale(1.02); } }
.tier-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-l), var(--brand)); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
}
.tier-name { font-size: 1.4rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ink); }
.tier-tagline { color: var(--brand); font-weight: 600; font-size: .9rem; margin-top: .15rem; }
.tier-spec { margin-top: .9rem; color: var(--muted); font-size: .92rem; display: flex; flex-direction: column; gap: .4rem; }
.tier-spec span { display: flex; align-items: center; gap: .5rem; }
.tier-spec svg { color: var(--grey); flex: none; }

/* price — visually centred in the middle of each slab */
.tier-price {
    margin: 1.6rem 0;
    padding: 1.3rem 0;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tier-price .approx { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25rem; }
.tier-price .amount { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ink); font-size: 2.05rem; line-height: 1.1; }
.tier-price .unit { display: block; font-size: .82rem; color: var(--muted); margin-top: .35rem; }

.tier .btn { margin-bottom: 1.4rem; }

/* models — pinned to the bottom of each slab */
.tier-models { margin-top: auto; }
.tier-models .ml-label {
    font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
    font-weight: 600; margin-bottom: .7rem;
}
.tier-models ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.tier-models li {
    display: flex; align-items: center; gap: .6rem;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
    padding: .55rem .7rem; font-size: .92rem;
}
.tier-models li svg { color: var(--accent); flex: none; }
.tier-models li b { color: var(--ink); font-weight: 600; }
.tier-models li .sz { margin-left: auto; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pricing-note { margin-top: 2rem; text-align: center; color: var(--muted); font-size: .85rem; max-width: 48rem; margin-left: auto; margin-right: auto; }

/* ---------- Why / sovereignty band ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.why-list li { display: flex; gap: .9rem; }
.why-list .n {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--bg-soft-2); color: var(--brand); font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.why-list h4 { color: var(--ink); font-size: 1.05rem; margin-bottom: .15rem; }
.why-list p { color: var(--muted); font-size: .95rem; }
.why-panel {
    background: linear-gradient(160deg, #0d1b2a, #16365c);
    color: #cfe0f0; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg);
}
.why-panel h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.why-panel .stat { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.why-panel .stat:first-of-type { border-top: 0; }
.why-panel .stat b { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; flex: none; min-width: 4.6rem; }
.why-panel .stat span { font-size: .92rem; }

/* ---------- CTA ---------- */
.cta-band { padding: 4.5rem 0; }
.cta-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--brand), #14406f);
    border-radius: 24px; padding: 3.2rem; text-align: center; color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 240px at 85% -20%, rgba(20,179,198,.45), transparent 60%);
    pointer-events: none;
}
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .8rem; position: relative; }
.cta-card p { color: #d8e6f5; font-size: 1.1rem; margin-bottom: 1.8rem; position: relative; }
.cta-card .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 24px rgba(0,0,0,.18); position: relative; }
.cta-card .btn-primary:hover { background: #f1f7ff; }

/* ---------- Footer ---------- */
.footer { background: #0b1622; color: #93a6b6; padding: 3rem 0 2rem; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand-text { color: #fff; font-size: 1.2rem; font-weight: 700; }
.footer p { font-size: .9rem; margin-top: .7rem; max-width: 22rem; }
.footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: #93a6b6; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer .legal {
    grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.6rem; padding-top: 1.4rem;
    display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .82rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { max-width: 420px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .why-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links, .nav-actions .btn { display: none; }
    .nav-toggle { display: block; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; gap: 1.1rem;
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
    }
    .feature-grid { grid-template-columns: 1fr; }
    .footer .container { grid-template-columns: 1fr; }
    .cta-card { padding: 2.2rem 1.4rem; }
    .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .tier:hover, .feature:hover { transform: none; }
}
