/* =====================================================================
   flowguard.run facelift — loaded after site.css and additions.css.
   Same palette, same type, same components; more light, more depth,
   less sameness between sections.
   ===================================================================== */

:root {
    --fg-amber: #f59e0b;
    --fg-violet: #8b5cf6;
    --fg-emerald: #10b981;
    --hairline: var(--w07);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Browser surfaces carry the brand too ---------- */
::selection { background: rgba(6, 182, 212, 0.35); color: #fff; }
html { scrollbar-color: #2a3547 var(--bg-deep); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a3547; border-radius: 999px; border: 2px solid var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 4px; }
a { text-underline-offset: 0.18em; }
h1, h2, h3 { text-wrap: balance; }
.hero-title, .section-title, .features-hero-title, .pricing-hero-title, .cta-title { letter-spacing: -0.025em; }

/* ---------- Atmosphere: a faint grid on the whole page, coloured air per section ---------- */
body { background-color: var(--bg-deep); }
main > section { position: relative; isolation: isolate; }
main > section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--section-air, none);
}
.hero { --section-air: radial-gradient(60% 50% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%), radial-gradient(40% 40% at 85% 30%, rgba(6, 182, 212, 0.12), transparent 70%), radial-gradient(35% 40% at 10% 40%, rgba(124, 58, 237, 0.10), transparent 70%); }
.features { --section-air: radial-gradient(50% 60% at 15% 20%, rgba(59, 130, 246, 0.10), transparent 70%); }
.deep-dive-alt { --section-air: linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated)), none; }
#monitoring.deep-dive-alt { --section-air: radial-gradient(45% 55% at 80% 30%, rgba(16, 185, 129, 0.10), transparent 70%), linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated)); }
#autopilot { --section-air: radial-gradient(45% 55% at 20% 40%, rgba(245, 158, 11, 0.09), transparent 70%); }
.how-it-works { --section-air: radial-gradient(60% 50% at 50% 100%, rgba(6, 182, 212, 0.08), transparent 70%), linear-gradient(180deg, var(--bg-elevated), var(--bg-elevated)); }
.why { --section-air: radial-gradient(40% 50% at 90% 20%, rgba(139, 92, 246, 0.10), transparent 70%); }
.testimonials { --section-air: radial-gradient(50% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%); }

/* A gradient hairline where two dark sections meet, so the page has seams, not a void */
.deep-dive, .how-it-works, .why, .testimonials, .features { border-top: 1px solid transparent; }
.deep-dive::after, .how-it-works::after, .why::after, .testimonials::after, .features::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--w10) 30%, rgba(6, 182, 212, 0.35) 50%, var(--w10) 70%, transparent);
    pointer-events: none;
}

/* Eyebrows become quiet chips with a dot: the same motif everywhere, no shouting caps */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}
.section-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 10px rgba(6, 182, 212, 0.8); }
#monitoring .section-label { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); color: #6ee7b7; }
#monitoring .section-label::before { background: var(--fg-emerald); box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
#autopilot .section-label, .page-autopilot .features-hero .section-label { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); color: #fcd34d; }
#autopilot .section-label::before, .page-autopilot .features-hero .section-label::before { background: var(--fg-amber); box-shadow: 0 0 10px rgba(245, 158, 11, 0.8); }
.ai-section .section-label, #self-healing .section-label { border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.08); color: #c4b5fd; }
.ai-section .section-label::before, #self-healing .section-label::before { background: var(--fg-violet); box-shadow: 0 0 10px rgba(139, 92, 246, 0.8); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-aurora { position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: 0.55; }
.hero-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aurora 18s var(--ease-out) infinite alternate; }
.hero-aurora span:nth-child(1) { width: 52vw; height: 52vw; left: -8vw; top: 0; background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.55), transparent 60%); }
.hero-aurora span:nth-child(2) { width: 44vw; height: 44vw; right: -6vw; top: 8vw; background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.45), transparent 60%); animation-delay: -6s; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; top: 20vw; background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 60%); animation-delay: -12s; }
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }
.hero-badge { position: relative; }
.hero-badge .status-dot { position: relative; }
.hero-badge .status-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(16, 185, 129, 0.6); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* The dashboard sits in a shallow perspective and carries the evidence cards around it */
.dashboard-container { padding-top: 72px; }
.dashboard-panel { transform: perspective(1400px) rotateX(3deg); transform-origin: 50% 0; transition: transform 1.2s var(--ease-out); }
.hero-visual:hover .dashboard-panel { transform: perspective(1400px) rotateX(0deg); }
.floating-stat { opacity: 0; z-index: 3; }
.floating-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.floating-stat-icon-green { background: rgba(16, 185, 129, 0.14); color: #34d399; }
.floating-stat-icon-amber { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.floating-stat-icon-blue { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.floating-stat-content { display: flex; flex-direction: column; gap: 2px; }
.floating-stat-value { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.2; font-variant-numeric: tabular-nums; }
.floating-stat-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.floating-stat-uptime { top: 24px; left: -36px; }
.floating-stat-tests { top: 140px; right: -44px; }
.floating-stat-speed { bottom: 120px; left: -28px; }
@media (max-width: 1100px) { .floating-stat { display: none; } }

/* The flows in the dashboard tick green one after another, once */
.dashboard-tests .test-item { animation: rowIn 0.7s var(--ease-out) both; }
.dashboard-tests .test-item:nth-child(1) { animation-delay: 1.1s; }
.dashboard-tests .test-item:nth-child(2) { animation-delay: 1.5s; }
.dashboard-tests .test-item:nth-child(3) { animation-delay: 1.9s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Platforms: marks, not words ---------- */
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(17, 24, 39, 0.6); color: var(--text-secondary); font-size: var(--font-size-sm); font-weight: 500; transition: transform 0.35s var(--ease-out), border-color 0.35s, color 0.35s, background 0.35s; }
.brand-mark img { width: 20px; height: 20px; opacity: 0.75; filter: drop-shadow(0 0 0 transparent); transition: opacity 0.35s, filter 0.35s; }
.brand-mark:hover { transform: translateY(-2px); border-color: rgba(6, 182, 212, 0.4); color: var(--text-primary); background: rgba(17, 24, 39, 0.9); }
.brand-mark:hover img { opacity: 1; filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.55)); }
.brand-mark-any { border-style: dashed; border-color: rgba(6, 182, 212, 0.45); color: var(--text-primary); }

/* ---------- Features as a bento: one big piece of evidence, three smaller ones ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-tile { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(31, 41, 55, 0.55), rgba(17, 24, 39, 0.9)); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; box-shadow: 0 30px 60px -40px var(--k7); transition: transform 0.5s var(--ease-out), border-color 0.4s; }
.bento-tile:hover { transform: translateY(-3px); border-color: var(--w14); }
.bento-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 100% 0%, var(--tile-glow, rgba(59, 130, 246, 0.18)), transparent 70%); pointer-events: none; }
.bento-flows { grid-column: span 4; --tile-glow: rgba(59, 130, 246, 0.22); }
.bento-monitoring { grid-column: span 2; --tile-glow: rgba(16, 185, 129, 0.20); }
.bento-autopilot { grid-column: span 2; --tile-glow: rgba(245, 158, 11, 0.20); }
.bento-suggest { grid-column: span 4; --tile-glow: rgba(139, 92, 246, 0.20); }
@media (max-width: 1000px) { .bento-flows, .bento-monitoring, .bento-autopilot, .bento-suggest { grid-column: span 6; } }
.bento-head { position: relative; display: flex; flex-direction: column; gap: 8px; }
.bento-head h3 { font-size: var(--font-size-xl); margin: 0; }
.bento-head p { margin: 0; color: var(--text-secondary); line-height: 1.55; max-width: 52ch; }
.bento-art { position: relative; margin-top: auto; }
.bento-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #93c5fd; font-size: var(--font-size-sm); font-weight: 500; text-decoration: none; }
.bento-link:hover { color: #fff; }

/* mini artefacts */
.mini-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-flow div { padding: 12px; border-radius: 12px; background: rgba(10, 15, 28, 0.8); border: 1px solid var(--hairline); font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px; }
.mini-flow div strong { color: var(--text-primary); font-weight: 500; font-size: 12px; }
.mini-flow i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 185, 129, 0.15); color: #34d399; }
.mini-flow div:last-child i { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
@media (max-width: 600px) { .mini-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.mini-bars span { flex: 1; border-radius: 3px; background: var(--fg-emerald); opacity: 0.85; height: 100%; }
.mini-bars span.slow { height: 70%; opacity: 0.6; }
.mini-bars span.down { background: var(--danger); height: 100%; }
.mini-kpi { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }
.mini-kpi strong { font-size: 22px; color: var(--text-primary); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.mini-log li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(10, 15, 28, 0.8); border: 1px solid var(--hairline); color: var(--text-secondary); }
.mini-log li b { color: var(--text-primary); font-weight: 500; }
.mini-log li i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); flex-shrink: 0; }
.mini-log li.warn i { background: var(--fg-amber); box-shadow: 0 0 8px rgba(245, 158, 11, 0.7); }
.mini-log li span:last-child { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(10, 15, 28, 0.8); border: 1px solid var(--hairline); font-size: 12px; color: var(--text-secondary); }
.mini-chips span b { color: var(--text-primary); font-weight: 500; }
.mini-chips span em { font-style: normal; color: #c4b5fd; }

/* ---------- Deep dives: one accent each, visual gets a coloured plinth ---------- */
.deep-dive-visual { position: relative; }
.deep-dive-visual::before { content: ""; position: absolute; inset: 12% -6% -10%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 60%, var(--plinth, rgba(59, 130, 246, 0.22)), transparent 70%); filter: blur(30px); z-index: -1; }
#monitoring .deep-dive-visual { --plinth: rgba(16, 185, 129, 0.22); }
#autopilot .deep-dive-visual { --plinth: rgba(245, 158, 11, 0.18); }
#self-healing .deep-dive-visual, .ai-section .deep-dive-visual { --plinth: rgba(139, 92, 246, 0.22); }
.feature-list-item { padding: 10px 0; }
.feature-list-item + .feature-list-item { border-top: 1px solid var(--hairline); }

/* ---------- Steps: a line runs through them ---------- */
.steps-container { position: relative; }
@media (min-width: 1024px) {
    .steps-container::before { content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 1px; background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), rgba(59, 130, 246, 0.5), transparent); }
}
.steps-container .step { position: relative; z-index: 1; background: linear-gradient(180deg, var(--panel-raised), var(--panel)); border-color: var(--hairline); }
.steps-container .step-number { width: auto; height: auto; background: transparent; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: rgba(147, 197, 253, 0.42); line-height: 1; margin-bottom: 8px; }
.steps-container .step-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.15)); border: 1px solid rgba(96, 165, 250, 0.25); color: #93c5fd; display: grid; place-items: center; }

/* ---------- Why: a statement and four reasons, no boxes ---------- */
.why { padding: var(--space-5xl) 0; }
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4xl); align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-2xl); } }
.why-statement h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; margin: 0 0 var(--space-lg); }
.why-statement p { color: var(--text-secondary); font-size: var(--font-size-lg); line-height: 1.6; max-width: 40ch; margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--hairline); }
.why-list li:last-child { border-bottom: 1px solid var(--hairline); }
.why-list i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.10); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.18); }
.why-list li:nth-child(2) i { background: rgba(16, 185, 129, 0.10); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.18); }
.why-list li:nth-child(3) i { background: rgba(139, 92, 246, 0.10); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.18); }
.why-list li:nth-child(4) i { background: rgba(245, 158, 11, 0.10); color: #fcd34d; border-color: rgba(251, 191, 36, 0.18); }
.why-list h3 { font-size: var(--font-size-xl); margin: 0 0 6px; }
.why-list p { margin: 0; color: var(--text-secondary); line-height: 1.6; max-width: 60ch; }

/* ---------- Benefit and feature cards elsewhere: tinted, not uniform ---------- */
.benefits-grid .benefit-card { background: linear-gradient(180deg, rgba(31, 41, 55, 0.45), rgba(17, 24, 39, 0.9)); border-color: var(--hairline); }
.benefits-grid .benefit-card:hover { transform: translateY(-3px); border-color: var(--w14); box-shadow: 0 24px 50px -30px var(--k8); }
.benefits-grid .benefit-card:nth-child(3n+1) .benefit-icon { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.benefits-grid .benefit-card:nth-child(3n+2) .benefit-icon { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.benefits-grid .benefit-card:nth-child(3n+3) .benefit-icon { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.benefit-icon { border-radius: 14px; }

/* ---------- Testimonials and CTA ---------- */
.testimonial-card { background: linear-gradient(180deg, rgba(31, 41, 55, 0.45), rgba(17, 24, 39, 0.92)); border-color: var(--hairline); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--w08); }
.cta-section .cta-title { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
.cta-fineprint { margin-top: var(--space-lg); font-size: var(--font-size-sm); color: var(--text-muted); }

/* Reduced motion: the atmosphere stays, the movement goes */
@media (prefers-reduced-motion: reduce) {
    .hero-aurora span, .hero-badge .status-dot::after { animation: none; }
    .dashboard-tests .test-item { animation: none; }
    .dashboard-panel { transform: none; }
}

/* Nothing decorative may widen the page; long code wraps or scrolls inside its box */
main > section { overflow-x: clip; }
.deep-dive-grid > * { min-width: 0; }
.code-mockup-body { overflow-x: auto; }

/* Hero: a shorter first screen, especially on a phone */
.hero { min-height: 0; padding-top: 132px; padding-bottom: var(--space-3xl); }
.hero-title { font-size: clamp(2.35rem, 7vw, 4.75rem); margin-bottom: var(--space-lg); }
.hero-subtitle { max-width: 34ch; margin-left: auto; margin-right: auto; }
.hero-visual { margin-top: var(--space-2xl); }
@media (max-width: 640px) {
    .hero { padding-top: 104px; }
    .hero-title { font-size: clamp(2.1rem, 11vw, 3rem); }
    .hero-subtitle { font-size: var(--font-size-base); max-width: 30ch; }
}
/* The deep dives sat far apart; bring the page together */
.deep-dive, .how-it-works, .why, .testimonials { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }
.testimonial-quote p { font-size: var(--font-size-sm); line-height: 1.65; }
