/* ── MonitorNova — design system ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT / DARK MODE — CSS custom properties
   html.dark  = default (dark theme)
   html.light = light theme
══════════════════════════════════════════════════════════════════════════ */
:root, html.dark {
    --mn-bg:           #04080f;
    --mn-bg2:          #070d18;
    --mn-nav:          rgba(4,8,15,0.92);
    --mn-surface:      rgba(255,255,255,0.04);
    --mn-border:       rgba(255,255,255,0.08);
    --mn-border2:      rgba(255,255,255,0.12);
    --mn-text1:        #f8fafc;
    --mn-text2:        rgba(148,163,184,0.90);
    --mn-text3:        rgba(100,116,139,0.80);
    --mn-card:         rgba(255,255,255,0.04);
    --mn-card-hover:   rgba(255,255,255,0.07);
    --mn-canvas-dim:   1;
    --mn-grid-alpha:   0.50;
    --mn-vignette:     #04080f;
    --mn-section:      rgba(7,13,26,0.55);
    --mn-footer:       #0a1020;
}

html.light {
    --mn-bg:           #f0f4f8;
    --mn-bg2:          #e2e8f0;
    --mn-nav:          rgba(255,255,255,0.95);
    --mn-surface:      rgba(255,255,255,0.85);
    --mn-border:       rgba(15,23,42,0.10);
    --mn-border2:      rgba(15,23,42,0.16);
    --mn-text1:        #0f172a;
    --mn-text2:        #475569;
    --mn-text3:        #64748b;
    --mn-card:         rgba(255,255,255,0.80);
    --mn-card-hover:   rgba(255,255,255,0.95);
    --mn-canvas-dim:   0.30;
    --mn-grid-alpha:   0.18;
    --mn-vignette:     #f0f4f8;
    --mn-section:      rgba(226,232,240,0.60);
    --mn-footer:       #e2e8f0;
}

/* Apply custom props to structural elements */
body { background: var(--mn-bg); color: var(--mn-text1); }

html.light #page-bg { background: var(--mn-bg); }
html.light #bg-canvas { opacity: var(--mn-canvas-dim); }
html.light .pg-aurora { opacity: 0.4; }
html.light .pg-vignette {
    background:
        linear-gradient(to right, var(--mn-vignette) 0%, transparent 6%, transparent 94%, var(--mn-vignette) 100%),
        linear-gradient(to bottom, var(--mn-vignette) 0%, transparent 4%, transparent 96%, var(--mn-vignette) 100%);
}

/* Navigation */
html.light header {
    background: var(--mn-nav) !important;
    border-bottom-color: rgba(15,23,42,0.10) !important;
}
html.light header nav a, html.light header nav button { color: #334155; }
html.light header nav a:hover, html.light header nav button:hover { color: #0f172a; background: rgba(15,23,42,0.06); }
html.light header .text-white { color: #0f172a !important; }
html.light header .text-indigo-400 { color: #4f46e5 !important; }
html.light #tools-panel > div {
    background: rgba(255,255,255,0.98) !important;
    border-color: rgba(15,23,42,0.12) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15) !important;
}

/* Mobile menu */
html.light header .bg-\[#04080f\] { background: #fff !important; }
html.light header .border-slate-800 { border-color: rgba(15,23,42,0.10) !important; }
html.light header .text-slate-300 { color: #334155 !important; }

/* Glass cards */
html.light .glass-card {
    background: var(--mn-card);
    border-color: var(--mn-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}
html.light .glass-section {
    background: var(--mn-section);
    backdrop-filter: blur(8px);
}

/* Typography */
html.light .text-white           { color: var(--mn-text1) !important; }
html.light .text-slate-100       { color: #1e293b !important; }
html.light .text-slate-300       { color: #334155 !important; }
html.light .text-slate-400       { color: #475569 !important; }
html.light .text-slate-500       { color: #64748b !important; }

/* Backgrounds */
html.light .bg-slate-900\/40,
html.light .bg-slate-900\/50     { background: rgba(226,232,240,0.55) !important; }
html.light .bg-slate-800\/60,
html.light .bg-slate-800         { background: rgba(255,255,255,0.75) !important; }
html.light .bg-slate-700         { background: rgba(203,213,225,0.60) !important; }
html.light .bg-\[#04080f\]       { background: var(--mn-bg) !important; }
html.light .bg-\[#070d18\]       { background: var(--mn-bg2) !important; }

/* Borders */
html.light .border-slate-700,
html.light .border-slate-800     { border-color: rgba(15,23,42,0.12) !important; }
html.light .border-white\/8,
html.light .border-white\/\[0\.06\] { border-color: rgba(15,23,42,0.08) !important; }

/* Hero text */
html.light .hero-h1 { text-shadow: 0 2px 24px rgba(79,70,229,0.12), 0 1px 4px rgba(0,0,0,0.15); }
html.light .hero-desc { color: #475569; text-shadow: none; }

/* Service cards */
html.light .svc-card {
    background: rgba(255,255,255,0.70) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
html.light .svc-card-left { background: rgba(255,255,255,0.50) !important; }

/* Floating cards */
html.light .float-card {
    background: rgba(255,255,255,0.88) !important;
    box-shadow:
        0 2px 0 rgba(var(--fr),var(--fg),var(--fb),0.25) inset,
        0 16px 40px rgba(0,0,0,0.12),
        0 6px 14px rgba(var(--fr),var(--fg),var(--fb),0.12),
        0 0 0 1px rgba(var(--fr),var(--fg),var(--fb),0.18) !important;
}
html.light .fc-name   { color: #0f172a !important; }
html.light .fc-desc   { color: #475569 !important; }
html.light .fc-features li {
    background: rgba(15,23,42,0.04) !important;
    border-color: rgba(15,23,42,0.08) !important;
    color: #334155 !important;
}

/* Tech cards */
html.light .tech-card {
    background: rgba(255,255,255,0.75) !important;
}
html.light .tc-desc  { color: #475569 !important; }
html.light .tc-tags li { color: #475569 !important; }

/* Footer */
html.light footer {
    background: var(--mn-footer) !important;
    border-top-color: rgba(15,23,42,0.10) !important;
}
html.light footer p,
html.light footer span { color: #475569; }
html.light footer a    { color: #475569; }
html.light footer a:hover { color: #0f172a; }

/* Pricing cards */
html.light .pricing-popular {
    box-shadow: 0 0 0 2px #4f46e5, 0 12px 32px rgba(79,70,229,0.16) !important;
}

/* Buttons */
html.light .btn-ghost {
    border-color: rgba(15,23,42,0.20) !important;
    color: #334155 !important;
    background: rgba(255,255,255,0.70) !important;
}
html.light .btn-ghost:hover {
    border-color: rgba(79,70,229,0.45) !important;
    color: #0f172a !important;
}

/* Forms */
html.light input,
html.light textarea,
html.light select {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(15,23,42,0.15) !important;
    color: #0f172a !important;
}
html.light input::placeholder,
html.light textarea::placeholder { color: #94a3b8 !important; }

/* FAQ */
html.light .faq-chevron { color: #64748b !important; }

/* Zabbix helper tool */
html.light .zh-controls {
    background: rgba(248,250,252,0.95) !important;
    border-bottom-color: rgba(15,23,42,0.10) !important;
}
html.light .zh-group {
    background: rgba(255,255,255,0.80) !important;
    border-color: rgba(15,23,42,0.10) !important;
}
html.light .zh-num {
    background: rgba(255,255,255,0.90) !important;
    border-color: rgba(15,23,42,0.15) !important;
    color: #0f172a !important;
}
html.light .zh-metrics {
    background: rgba(241,245,249,0.80) !important;
    border-bottom-color: rgba(15,23,42,0.08) !important;
}
html.light .zh-output-header {
    background: rgba(241,245,249,0.70) !important;
    border-bottom-color: rgba(15,23,42,0.08) !important;
}
html.light .zh-code-wrap { background: #f8fafc !important; }
html.light #zh-config { color: #334155 !important; }
html.light .cc  { color: #94a3b8 !important; }
html.light .ck  { color: #475569 !important; }
html.light .ce  { color: #94a3b8 !important; }
html.light .cv  { color: #0f172a !important; }

/* Scrollbar (light mode) */
html.light ::-webkit-scrollbar       { background: #e2e8f0; }
html.light ::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }

/* ── Page-wide fixed 3D background ────────────────────────────────────────── */

#page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #04080f;   /* deep charcoal-navy */
    pointer-events: none;
}

/* Canvas fills the entire background */
#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ── Aurora colour blobs ─────────────────────────────────────────────────── */
.pg-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    animation: auroraFloat 12s ease-in-out infinite alternate;
}
.pg-aurora-blue {
    top: -10%; left: -10%;
    width: 60%; padding-bottom: 60%;
    background: radial-gradient(circle, rgba(79,70,229,0.38) 0%, transparent 65%);  /* indigo */
    animation-duration: 14s;
}
.pg-aurora-violet {
    top: 20%; right: -15%;
    width: 55%; padding-bottom: 55%;
    background: radial-gradient(circle, rgba(124,58,237,0.26) 0%, transparent 65%);  /* violet */
    animation-duration: 18s;
    animation-delay: -6s;
}
.pg-aurora-emerald {
    bottom: 5%; left: 20%;
    width: 50%; padding-bottom: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.20) 0%, transparent 65%);   /* cyan */
    animation-duration: 16s;
    animation-delay: -3s;
}
@keyframes auroraFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(4%, 6%) scale(1.12); }
}

/* CSS grid removed — full-page perspective grid is now drawn on canvas */
.pg-grid-stage, .pg-grid, .pg-grid-far, .pg-grid-near, .pg-grid-center-glow { display: none; }

/* Vignette: smooth left/right edges */
.pg-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(to right,  #04080f 0%, transparent 6%, transparent 94%, #04080f 100%),
        linear-gradient(to bottom, #04080f 0%, transparent 4%, transparent 96%, #04080f 100%);
}

/* ── Content layer (above fixed bg) ─────────────────────────────────────── */
.pg-content {
    position: relative;
    z-index: 10;
}

/* ── Glassmorphism utilities ─────────────────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-section {
    background: rgba(7,13,26,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ══════════════════════════════════════════════════════════════════════════
   FLOATING SERVICE CARDS (hero — Zabbix & Grafana)
══════════════════════════════════════════════════════════════════════════ */

.float-cards-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 640px) { .float-cards-wrap { grid-template-columns: 1fr; } }

/* Card base — always floating */
.float-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 22px;
    border-radius: 20px;
    border: 1px solid rgba(var(--fr),var(--fg),var(--fb), 0.22);
    background: rgba(6, 10, 22, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;

    /* Floating off the page — permanent elevation */
    transform: perspective(900px) translateY(-10px) rotateX(1deg);
    box-shadow:
        0 2px 0 rgba(var(--fr),var(--fg),var(--fb), 0.30) inset,  /* top inner highlight */
        0 28px 56px rgba(0, 0, 0, 0.55),
        0 12px 24px rgba(var(--fr),var(--fg),var(--fb), 0.18),
        0 0 0 1px rgba(var(--fr),var(--fg),var(--fb), 0.18);

    /* JS lerp handles mousemove; CSS handles hover float & colour transitions */
    transition: border-color 0.30s ease, box-shadow 0.30s ease, background 0.30s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.float-card:hover {
    border-color: rgba(var(--fr),var(--fg),var(--fb), 0.55);
    background: rgba(10, 14, 28, 0.80);
    box-shadow:
        0 2px 0 rgba(var(--fr),var(--fg),var(--fb), 0.45) inset,
        0 40px 72px rgba(0, 0, 0, 0.65),
        0 20px 40px rgba(var(--fr),var(--fg),var(--fb), 0.28),
        0 0 0 1px rgba(var(--fr),var(--fg),var(--fb), 0.40);
}

/* Coloured top accent bar */
.fc-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(var(--fr),var(--fg),var(--fb), 0.0) 0%,
        rgba(var(--fr),var(--fg),var(--fb), 0.9) 50%,
        rgba(var(--fr),var(--fg),var(--fb), 0.0) 100%
    );
    border-radius: 20px 20px 0 0;
}

/* Background glow blob */
.float-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--fr),var(--fg),var(--fb), 0.10) 0%,
        transparent 70%);
    pointer-events: none;
}

/* Header row */
.fc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/* Icon ring */
.fc-icon-ring {
    width: 48px; height: 48px;
    border-radius: 13px;
    border: 1px solid rgba(var(--fr),var(--fg),var(--fb), 0.35);
    background: rgba(var(--fr),var(--fg),var(--fb), 0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgb(var(--fr),var(--fg),var(--fb));
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(var(--fr),var(--fg),var(--fb), 0.18);
}

/* Title */
.fc-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #f8fafc;
    line-height: 1;
    margin-bottom: 3px;
}
.fc-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgb(var(--fr),var(--fg),var(--fb));
    opacity: 0.80;
}

/* Description */
.fc-desc {
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(148,163,184,0.82);
    margin-bottom: 18px;
}

/* Features list */
.fc-features {
    list-style: none;
    padding: 0; margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    flex: 1;
}
@media (max-width: 400px) { .fc-features { grid-template-columns: 1fr; } }

.fc-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: rgba(203,213,225,0.80);
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.055);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.float-card:hover .fc-features li {
    background: rgba(var(--fr),var(--fg),var(--fb), 0.06);
    border-color: rgba(var(--fr),var(--fg),var(--fb), 0.15);
    color: rgba(226,232,240,0.92);
}

/* Pulsing live dot beside each feature */
.fc-dot-live {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgb(var(--fr),var(--fg),var(--fb));
    flex-shrink: 0;
    opacity: 0.65;
    box-shadow: 0 0 5px rgba(var(--fr),var(--fg),var(--fb), 0.55);
    animation: fcDotPulse 2.8s ease-in-out infinite;
}
@keyframes fcDotPulse {
    0%,100% { opacity: 0.65; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.4); }
}

/* Footer row: stat + CTA */
.fc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.fc-stat { display: flex; flex-direction: column; }
.fc-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgb(var(--fr),var(--fg),var(--fb));
    line-height: 1;
}
.fc-stat-lbl {
    font-size: 0.65rem;
    color: rgba(100,116,139,0.85);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgb(var(--fr),var(--fg),var(--fb));
    padding: 8px 16px;
    border-radius: 9px;
    border: 1px solid rgba(var(--fr),var(--fg),var(--fb), 0.35);
    background: rgba(var(--fr),var(--fg),var(--fb), 0.10);
    transition: background 0.2s, border-color 0.2s, gap 0.2s;
}
.float-card:hover .fc-cta {
    background: rgba(var(--fr),var(--fg),var(--fb), 0.22);
    border-color: rgba(var(--fr),var(--fg),var(--fb), 0.65);
    gap: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TECH STACK EXPANDABLE CARDS
══════════════════════════════════════════════════════════════════════════ */

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 860px)  { .tech-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px)  { .tech-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px)  { .tech-cards-grid { grid-template-columns: 1fr; } }

/* ── Card wrapper ── */
.tech-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(var(--cr),var(--cg),var(--cb), 0.22);
    background: rgba(var(--cr),var(--cg),var(--cb), 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    /* box transition for colour changes; transform handled by JS lerp */
    transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    z-index: 2;
}
/* Active = hovered by user OR auto-selected */
.tech-card.tc-open,
.tech-card:hover {
    border-color: rgba(var(--cr),var(--cg),var(--cb), 0.60);
    background:   rgba(var(--cr),var(--cg),var(--cb), 0.13);
    box-shadow:
        0 0 0 1px  rgba(var(--cr),var(--cg),var(--cb), 0.32),
        0 14px 40px rgba(var(--cr),var(--cg),var(--cb), 0.20),
        inset 0 1px 0 rgba(255,255,255,0.07);
}

/* ── Header row ── */
.tc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 12px;
    user-select: none;
}

/* Pulsing live dot */
.tc-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgb(var(--cr),var(--cg),var(--cb));
    box-shadow: 0 0 7px rgba(var(--cr),var(--cg),var(--cb), 0.75);
    animation: tcDotPulse 2.2s ease-in-out infinite;
}
@keyframes tcDotPulse {
    0%,100% { transform: scale(1);   opacity: 1;   }
    50%      { transform: scale(1.4); opacity: 0.55; }
}

/* SVG icon */
.tc-icon { color: rgb(var(--cr),var(--cg),var(--cb)); opacity: 0.88; flex-shrink: 0; }

/* Name */
.tc-name {
    flex: 1;
    font-size: 0.83rem;
    font-weight: 700;
    color: rgb(var(--cr),var(--cg),var(--cb));
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Chevron — rotates when open */
.tc-arrow {
    flex-shrink: 0;
    color: rgba(var(--cr),var(--cg),var(--cb), 0.50);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), color 0.25s;
}
.tech-card.tc-open .tc-arrow,
.tech-card:hover .tc-arrow {
    transform: rotate(180deg);
    color: rgb(var(--cr),var(--cg),var(--cb));
}

/* ── Expandable body — max-height accordion ── */
.tc-body {
    max-height: 0;
    overflow: hidden;
    /* cubic-bezier gives a snappy open, gentle close */
    transition: max-height 0.40s cubic-bezier(0.4,0,0.2,1),
                opacity     0.30s ease,
                padding     0.35s ease;
    opacity: 0;
    padding: 0 14px;
    border-top: 1px solid transparent;
}
.tech-card.tc-open .tc-body,
.tech-card:hover   .tc-body {
    max-height: 260px;   /* larger than any card content */
    opacity: 1;
    padding: 0 14px 14px;
    border-top-color: rgba(var(--cr),var(--cg),var(--cb), 0.18);
}

/* Feature tags — staggered entrance */
.tech-card.tc-open .tc-tags li,
.tech-card:hover   .tc-tags li {
    animation: tcTagIn 0.32s ease both;
}
.tech-card.tc-open .tc-tags li:nth-child(1),
.tech-card:hover   .tc-tags li:nth-child(1) { animation-delay: 0.06s; }
.tech-card.tc-open .tc-tags li:nth-child(2),
.tech-card:hover   .tc-tags li:nth-child(2) { animation-delay: 0.12s; }
.tech-card.tc-open .tc-tags li:nth-child(3),
.tech-card:hover   .tc-tags li:nth-child(3) { animation-delay: 0.18s; }
.tech-card.tc-open .tc-tags li:nth-child(4),
.tech-card:hover   .tc-tags li:nth-child(4) { animation-delay: 0.24s; }
.tech-card.tc-open .tc-tags li:nth-child(5),
.tech-card:hover   .tc-tags li:nth-child(5) { animation-delay: 0.30s; }
@keyframes tcTagIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* Description */
.tc-desc {
    font-size: 0.75rem;
    line-height: 1.58;
    color: rgba(203,213,225,0.82);
    margin: 10px 0 10px;
}

/* Feature list */
.tc-tags {
    list-style: none;
    padding: 0; margin: 0 0 12px;
    display: flex; flex-direction: column; gap: 5px;
}
.tc-tags li {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.71rem;
    color: rgba(148,163,184,0.88);
    font-family: "Courier New", monospace;
}
.tc-check {
    color: rgb(var(--cr),var(--cg),var(--cb));
    font-weight: 700; font-size: 0.68rem; flex-shrink: 0;
}

/* Explore link */
.tc-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 700;
    color: rgb(var(--cr),var(--cg),var(--cb));
    text-decoration: none;
    opacity: 0.78;
    transition: opacity 0.2s, gap 0.2s;
}
.tc-link:hover { opacity: 1; gap: 9px; }

/* ── Auto-cycle progress bar ── */
.tc-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(var(--cr),var(--cg),var(--cb), 0.14);
    overflow: hidden;
    border-radius: 0 0 14px 14px;
}
.tc-progress-fill {
    height: 100%;
    width: 0%;
    background: rgb(var(--cr),var(--cg),var(--cb));
    box-shadow: 0 0 6px rgba(var(--cr),var(--cg),var(--cb), 0.80);
    transition: width linear; /* duration set by JS */
}
/* Show progress bar only on auto-selected card */
.tech-card:not(:hover) .tc-progress { opacity: 1; }
.tech-card:hover .tc-progress { opacity: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE FEATURE CARDS (Zabbix & Grafana)
══════════════════════════════════════════════════════════════════════════ */

.svc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.22);
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.svc-card:hover {
    border-color: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.50);
    box-shadow: 0 0 0 1px rgba(var(--ac-r),var(--ac-g),var(--ac-b),0.18),
                0 24px 60px rgba(var(--ac-r),var(--ac-g),var(--ac-b),0.12);
}
@media (max-width: 768px) {
    .svc-card { grid-template-columns: 1fr; }
}

/* Left: branding + description + CTA */
.svc-card-left {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.15);
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.05);
    position: relative;
    overflow: hidden;
}
.svc-card-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ac-r),var(--ac-g),var(--ac-b),0.14) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 768px) {
    .svc-card-left { border-right: none; border-bottom: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b),0.15); }
}

.svc-card-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.14);
    border: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.28);
    display: flex; align-items: center; justify-content: center;
    color: rgb(var(--ac-r),var(--ac-g),var(--ac-b));
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.svc-card-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.svc-card-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(var(--ac-r),var(--ac-g),var(--ac-b));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.svc-card-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(148,163,184,0.90);
    flex: 1;
    margin-bottom: 1.5rem;
}
.svc-card-stat {
    display: flex;
    flex-direction: column;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.08);
    border: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.18);
    margin-bottom: 1.5rem;
}
.svc-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgb(var(--ac-r),var(--ac-g),var(--ac-b));
    line-height: 1;
    margin-bottom: 0.2rem;
}
.svc-stat-label {
    font-size: 0.72rem;
    color: rgba(148,163,184,0.75);
    line-height: 1.4;
}
.svc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgb(var(--ac-r),var(--ac-g),var(--ac-b));
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.35);
    border-radius: 10px;
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.08);
    transition: background 0.2s, border-color 0.2s, gap 0.2s;
    align-self: flex-start;
}
.svc-card-cta:hover {
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.18);
    border-color: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.65);
    gap: 12px;
}

/* Right: capabilities grid */
.svc-card-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.svc-card-caps-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(100,116,139,0.80);
    margin-bottom: 1.25rem;
}
.svc-caps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    flex: 1;
    align-content: start;
}
@media (max-width: 480px) { .svc-caps-grid { grid-template-columns: 1fr; } }

.svc-cap-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0.7rem 0.875rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.78rem;
    color: rgba(203,213,225,0.88);
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    color: rgba(var(--ac-r),var(--ac-g),var(--ac-b),0.75);
}
.svc-cap-item:hover {
    background: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.07);
    border-color: rgba(var(--ac-r),var(--ac-g),var(--ac-b), 0.20);
    color: rgb(var(--ac-r),var(--ac-g),var(--ac-b));
}
.svc-cap-item svg {
    flex-shrink: 0;
    opacity: 0.70;
}

/* ── Scroll cue bounce (can't do translateX+translateY together in Tailwind) ── */
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Gradient text utility (inner-page heroes) ──────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Card hover lift + glow ─────────────────────────────────────────────── */
.card-glow {
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.card-glow:hover {
    box-shadow: 0 0 0 1px rgba(79,70,229,0.35), 0 12px 40px rgba(79,70,229,0.14);
    transform: translateY(-5px);
    border-color: rgba(79,70,229,0.25) !important;
}

/* ── Scroll-reveal ──────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s;    }
.reveal-stagger.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.1s;  }
.reveal-stagger.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.2s;  }
.reveal-stagger.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.3s;  }

/* ── Animated stat counters ─────────────────────────────────────────────── */
.counter { font-variant-numeric: tabular-nums; }

/* ── FAQ chevron ────────────────────────────────────────────────────────── */
.faq-chevron { transition: transform 0.3s ease; }
.faq-chevron.open { transform: rotate(180deg); }

/* ── Form focus ──────────────────────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79,70,229,0.45);
}

/* ── Pricing popular ring ────────────────────────────────────────────────── */
.pricing-popular {
    box-shadow: 0 0 0 2px #4f46e5, 0 16px 48px rgba(79,70,229,0.22);
}

/* ── Section spacing ─────────────────────────────────────────────────────── */
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .section { padding-top: 7rem; padding-bottom: 7rem; } }

/* ── Legacy inner-page hero grid (about, services, pricing, contact) ─────── */
.hero-grid {
    background-image:
        linear-gradient(rgba(79,70,229,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,70,229,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Accessibility: reduce motion ──────────────────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
    .pg-grid-far, .pg-grid-near, .pg-aurora { animation: none; }
    .reveal, .reveal-stagger > * { transition: none; opacity:1; transform:none; }
    .card-glow { transition: none; }
}
