/* ==========================================================================
   PG Stream — design system
   Clean corporate / tech. Brand blue #094ab2.
   ========================================================================== */

:root {
    --brand: #094ab2;
    --brand-dark: #063578;
    --brand-light: #2770b7;
    --accent: #95c811; /* PG Rapid green, used sparingly */
    --ink: #16202b;
    --ink-soft: #45535f;
    --muted: #6b7885;
    --line: #e4e8ee;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-slate: #14212e;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .08);
    --shadow-md: 0 4px 12px rgba(16, 32, 48, .08), 0 12px 32px rgba(16, 32, 48, .08);
    --shadow-lg: 0 12px 40px rgba(9, 74, 178, .16);
    --radius: 14px;
    --radius-sm: 9px;
    --maxw: 1180px;
    --header-h: 74px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.text-center { text-align: center; }
.text-center .section__head { margin-inline: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; font-weight: 600; cursor: pointer;
    padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); background: var(--bg-soft); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--brand-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-header__brand { display: flex; align-items: center; }
.site-header__brand img { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-weight: 600; padding: 9px 14px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { color: var(--brand); background: var(--bg-soft); }
.nav a.is-active { color: var(--brand); }

/* dropdown */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; font: inherit; color: var(--ink-soft); font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.nav__toggle:hover { color: var(--brand); background: var(--bg-soft); }
.nav__toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav__menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
    transform: translateY(6px); transition: all .16s ease;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 7px; color: var(--ink-soft); }
.nav__menu a:hover { background: var(--bg-soft); color: var(--brand); }
.nav__menu .lock { font-size: .8rem; opacity: .55; }

/* language switch */
.lang { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang a { padding: 6px 8px; font-size: .82rem; font-weight: 700; color: var(--muted); border-radius: 6px; letter-spacing: .03em; }
.lang a:hover { color: var(--brand); background: var(--bg-soft); }
.lang a.is-active { color: var(--brand); background: rgba(9, 74, 178, .08); }

/* mobile */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f3f7fd 0%, #eaf1fb 45%, #ffffff 100%); }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(900px 500px at 78% -10%, rgba(9, 74, 178, .14), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge { margin-top: 40px; }
.hero__badge img { height: 132px; width: auto; opacity: .95; }

.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-card {
    display: block; border-radius: var(--radius); overflow: hidden; position: relative;
    aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); background: #23303d;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-card__label { position: absolute; inset: auto 0 0 0; padding: 16px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(9, 24, 42, .86)); }
.hero-card__label strong { display: block; font-size: 1.02rem; }
.hero-card__label span { font-size: .82rem; opacity: .85; }

/* ==========================================================================
   Product overview cards (home)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.p-card {
    display: flex; flex-direction: column; gap: 8px; padding: 28px;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
    box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    color: inherit;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd9ec; color: inherit; }
.p-card__dot { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.p-card__dot img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.p-card h3 { margin: 0; }
.p-card p { color: var(--ink-soft); margin: 0; flex: 1; }
.p-card__more { margin-top: 14px; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.p-card__more::after { content: "→"; transition: transform .16s ease; }
.p-card:hover .p-card__more::after { transform: translateX(4px); }

/* ==========================================================================
   Product page
   ========================================================================== */
.p-hero { color: #fff; position: relative; overflow: hidden; }
.p-hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.p-hero__eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; opacity: .85; margin-bottom: 14px; }
.p-hero h1 { color: #fff; }
.p-hero__lead { font-size: 1.2rem; opacity: .92; max-width: 520px; margin: 0; }
.p-hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon { width: 60px; height: 60px; display: grid; place-items: center; background: var(--bg-soft); border-radius: 14px; margin-bottom: 18px; }
.feature__icon img { width: 34px; height: 34px; object-fit: contain; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); margin: 0; }

.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: var(--radius); padding: clamp(36px, 5vw, 60px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; max-width: 560px; margin-inline: auto; margin-bottom: 26px; }

/* ==========================================================================
   Company
   ========================================================================== */
.prose { max-width: 820px; }
.prose p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.35rem; }
.prose p:first-of-type { font-size: 1.22rem; color: var(--ink); }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: center; }
.logo-wall__item { display: grid; place-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 96px; }
.logo-wall__item img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .68; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.logo-wall__item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.3); }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; background: rgba(9, 74, 178, .09); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; }
.info-list .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.info-list .val { color: var(--ink); font-weight: 500; }
.info-list a.val:hover { color: var(--brand); }

.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius); filter: grayscale(.2); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand-light); background: #fff; box-shadow: 0 0 0 4px rgba(9, 74, 178, .1); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form__note strong { color: var(--ink-soft); }
.form__status { margin-top: 14px; font-weight: 600; display: none; }
.form__status.is-ok { display: block; color: #1a7f4b; }
.form__status.is-error { display: block; color: #c0392b; }

/* ==========================================================================
   Privacy / legal
   ========================================================================== */
.legal { max-width: 820px; }
.legal__term { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal__term:last-child { border-bottom: 0; }
.legal__term h3 { color: var(--brand-dark); }
.legal__term p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-slate); color: #b9c4d0; padding-block: 56px 28px; }
.site-footer a { color: #d5deea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand-img { height: 30px; margin-bottom: 16px; }
.site-footer .muted { color: #8695a4; font-size: .92rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #8695a4; }

/* ==========================================================================
   Cookie banner + go-to-top
   ========================================================================== */
.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; margin-inline: auto; max-width: 720px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-bar p { margin: 0; font-size: .9rem; color: var(--ink-soft); flex: 1; min-width: 220px; }
.cookie-bar .actions { display: flex; gap: 10px; align-items: center; }
.cookie-bar[hidden] { display: none; }

.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 46px; height: 46px; border-radius: 50%;
    background: var(--brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; font-size: 1.2rem;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); }

/* ==========================================================================
   Licensing
   ========================================================================== */
.lic-accordion { display: grid; gap: 14px; }
.lic-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.lic-panel__head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; cursor: pointer; font: inherit; text-align: left; padding: 20px 24px; color: var(--ink);
}
.lic-panel__head:hover { background: var(--bg-soft); }
.lic-panel__head strong { display: block; font-size: 1.06rem; }
.lic-panel__head small { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.lic-panel__chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; flex: none; }
.lic-panel.is-open .lic-panel__chev { transform: rotate(-135deg); }
.lic-panel__body { display: none; padding: 4px 24px 24px; border-top: 1px solid var(--line); }
.lic-panel.is-open .lic-panel__body { display: block; }
.lic-panel__body .field { margin-bottom: 14px; }
.lic-panel__body .field input {
    width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: var(--bg-soft);
}
.lic-panel__body .field input:focus { outline: 0; border-color: var(--brand-light); background: #fff; box-shadow: 0 0 0 4px rgba(9, 74, 178, .1); }
.lic-panel__body .field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.lic-panel__body .field input.is-invalid { border-color: #c0392b; background: #fdf3f2; }
.field-error { color: #c0392b; font-size: .78rem; margin-top: 4px; }
.lic-step-title, .lic-subhead { font-weight: 700; color: var(--brand-dark); margin: 6px 0 12px; }
.lic-subhead { font-size: .92rem; margin-top: 16px; }
.lic-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .95rem; }
.lic-dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.lic-dev input { width: 90px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.lic-actions { display: flex; gap: 12px; margin-top: 8px; }
.lic-result { margin-top: 16px; }
.lic-msg { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink-soft); font-size: .95rem; }
.lic-msg.is-ok { background: #eaf7ef; color: #1a7f4b; border: 1px solid #bfe6cd; }
.lic-msg.is-error { background: #fdeeec; color: #c0392b; border: 1px solid #f3ccc6; }
.lic-row { display: flex; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.lic-row:last-child { border-bottom: 0; }
.lic-row__k { color: var(--muted); min-width: 130px; font-weight: 600; }
.lic-row__v { color: var(--ink); word-break: break-all; }
.lic-appname { margin-bottom: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero__inner, .p-hero__inner, .contact-grid { grid-template-columns: 1fr; }
    .hero__cards { max-width: 460px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; margin: 0;
        box-shadow: var(--shadow-md); display: none;
    }
    .nav.is-open { display: flex; }
    .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 14px; }
    .lang { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 6px; }
    .form__row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
