:root {
    --pz-primary: #0d5fbf;
    --pz-primary-dark: #084a99;
    --pz-accent: #00b4d8;
    --pz-ink: #0f172a;
    --pz-ink-soft: #334155;
    --pz-muted: #64748b;
    --pz-bg: #ffffff;
    --pz-bg-soft: #f5f8fc;
    --pz-border: #e5edf6;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pz-ink);
    background: var(--pz-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--pz-ink);
}

h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.35rem; }

p { color: var(--pz-ink-soft); line-height: 1.65; }
.lead { font-size: 1.15rem; color: var(--pz-ink-soft); }

a { color: var(--pz-primary); text-decoration: none; }
a:hover { color: var(--pz-primary-dark); text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--pz-border);
}

.navbar { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.site-footer .brand-mark { width: 28px; height: 28px; }

.brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--pz-ink);
    letter-spacing: -0.02em;
}

.brand-accent { color: var(--pz-primary); }

.navbar .nav-link {
    color: var(--pz-ink-soft);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.navbar .nav-link:hover { color: var(--pz-primary); background: var(--pz-bg-soft); }
.navbar .nav-link.active { color: var(--pz-primary); }

.btn { font-weight: 600; border-radius: 8px; padding: 0.55rem 1.25rem; }
.btn-primary {
    background: var(--pz-primary);
    border-color: var(--pz-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--pz-primary-dark);
    border-color: var(--pz-primary-dark);
}
.btn-cta { box-shadow: 0 6px 18px rgba(13, 95, 191, 0.28); }
.btn-outline-primary { color: var(--pz-primary); border-color: var(--pz-primary); }
.btn-outline-primary:hover { background: var(--pz-primary); border-color: var(--pz-primary); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(0, 180, 216, 0.22), transparent 60%),
        radial-gradient(800px 420px at 10% 0%, rgba(13, 95, 191, 0.28), transparent 55%),
        linear-gradient(180deg, #0f1a2e 0%, #0b1525 100%);
    padding: 5.5rem 0 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6edf6;
}

.hero h1 { color: #ffffff; }
.hero .lead { color: rgba(230, 237, 246, 0.85); }
.hero .eyebrow { color: #5cd0ee; }

.hero .hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e6edf6;
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}
.hero .hero-card h5 { color: #ffffff; }
.hero .hero-card p { color: rgba(230, 237, 246, 0.85); }
.hero .hero-card .value-list li { color: rgba(230, 237, 246, 0.88); }
.hero .hero-card .value-list li::before {
    background: linear-gradient(135deg, var(--pz-primary), var(--pz-accent));
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.18);
}

.hero .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-outline-primary:hover,
.hero .btn-outline-primary:focus {
    background: #ffffff;
    color: var(--pz-primary);
    border-color: #ffffff;
}

.tech-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.page-header .tech-network { opacity: 0.9; }

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 180, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 35%, transparent 80%);
    animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 56px 56px, 56px 56px; }
}

.hero-content { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .hero-grid { animation: none; }
    .hero-network { display: none; }
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pz-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.2rem; max-width: 640px; }

.hero-card {
    background: white;
    border: 1px solid var(--pz-border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 24px 60px -25px rgba(15, 23, 42, 0.20);
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--pz-bg-soft); }
.section-title { margin-bottom: 0.75rem; }
.section-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pz-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

/* ---------- Service cards ---------- */
.service-card {
    background: #fff;
    border: 1px solid var(--pz-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.18);
    border-color: #cfe0f4;
}

.service-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 95, 191, 0.12), rgba(0, 180, 216, 0.12));
    color: var(--pz-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Value props ---------- */
.value-list { list-style: none; padding-left: 0; }
.value-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.85rem;
    color: var(--pz-ink-soft);
}
.value-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    width: 22px; height: 22px;
    background: var(--pz-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat .num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--pz-primary);
    letter-spacing: -0.02em;
}
.stat .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pz-muted);
}

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--pz-primary) 0%, #1a73e8 60%, var(--pz-accent) 130%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band .btn-light { color: var(--pz-primary); font-weight: 700; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--pz-border);
    padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--pz-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 95, 191, 0.12);
}
label { font-weight: 500; color: var(--pz-ink); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0f1a2e;
    color: #cdd5e0;
}
.site-footer p, .site-footer .text-muted { color: #94a3b8 !important; }
.site-footer .brand-text, .site-footer h6 { color: #fff; }
.site-footer .footer-heading {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    font-weight: 700;
}
.site-footer .footer-links li { margin-bottom: 0.45rem; }
.site-footer a { color: #cdd5e0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer hr { border-color: rgba(255, 255, 255, 0.08); }

/* ---------- Page header ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(0, 180, 216, 0.20), transparent 60%),
        radial-gradient(700px 320px at 5% 0%, rgba(13, 95, 191, 0.24), transparent 55%),
        linear-gradient(180deg, #0f1a2e 0%, #0b1525 100%);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6edf6;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 180, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 180, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, #000 40%, transparent 85%);
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 0.75rem; color: #ffffff; }
.page-header .lead { max-width: 720px; color: rgba(230, 237, 246, 0.85); }
.page-header .section-eyebrow { color: #5cd0ee; }

/* ---------- Alerts ---------- */
.alert-success-soft {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

/* ---------- Misc ---------- */
.contact-info-card {
    background: var(--pz-bg-soft);
    border: 1px solid var(--pz-border);
    border-radius: 14px;
    padding: 1.75rem;
}
.contact-info-card h5 { margin-bottom: 1rem; }
.contact-info-card a { color: var(--pz-ink); }
.contact-info-card a:hover { color: var(--pz-primary); }
