@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --saas-bg: #070b14;
    --saas-surface: rgba(15, 23, 42, 0.72);
    --saas-surface-strong: rgba(15, 23, 42, 0.9);
    --saas-border: rgba(148, 163, 184, 0.22);
    --saas-text: #e2e8f0;
    --saas-muted: #94a3b8;
    --brand-amber: #f59e0b;
    --brand-amber-soft: rgba(245, 158, 11, 0.16);
}

html,
body {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background: radial-gradient(circle at 14% 12%, rgba(245, 158, 11, 0.13), transparent 42%),
        radial-gradient(circle at 88% 14%, rgba(245, 158, 11, 0.1), transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.09), transparent 52%),
        linear-gradient(180deg, rgba(7, 11, 20, 0.96) 0%, rgba(4, 8, 16, 0.98) 100%),
        var(--saas-bg) !important;
    color: var(--saas-text) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.65;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08), transparent 48%);
    pointer-events: none;
    z-index: -1;
}

#navbar {
    top: 0.9rem !important;
    left: 1rem !important;
    right: 1rem !important;
    border: 1px solid var(--saas-border) !important;
    border-radius: 16px !important;
    background: rgba(7, 11, 20, 0.86) !important;
    backdrop-filter: blur(12px);
    box-shadow: none !important;
}

.topbar-logo {
    position: relative;
    transition: transform 220ms ease, filter 220ms ease;
}

.topbar-logo img {
    transition: transform 220ms ease, filter 220ms ease;
}

.topbar-logo::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: -4px;
    bottom: -4px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 14px;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.22);
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.topbar-logo:hover {
    transform: translateY(-2px) scale(1.03);
}

.topbar-logo:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 16px rgba(245, 158, 11, 0.2));
}

.topbar-logo:hover::after {
    opacity: 0.88;
    transform: scale(1);
    animation: logo-energy-pulse 1.6s ease-in-out infinite;
}

@keyframes logo-energy-pulse {
    0%, 100% {
        opacity: 0.22;
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.18);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.06);
    }
}

main {
    padding-top: 1.5rem;
}

.hero-bg-glow {
    opacity: 1 !important;
    background: radial-gradient(circle at 50% 18%, rgba(245, 158, 11, 0.2) 0%, transparent 58%),
        radial-gradient(circle at 45% 22%, rgba(56, 189, 248, 0.07) 0%, transparent 62%) !important;
    animation: none !important;
}

#home {
    isolation: isolate;
}

.lightning-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.lightning-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 16%, rgba(251, 191, 36, 0.18) 0%, transparent 55%);
    opacity: 0;
    animation: lightning-flash 9s infinite linear;
}

.lightning-bolt {
    position: absolute;
    width: 3px;
    height: 170px;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0), rgba(255, 237, 160, 0.95) 30%, rgba(251, 191, 36, 0.7) 72%, rgba(251, 191, 36, 0));
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.65));
    opacity: 0;
    transform-origin: top center;
    clip-path: polygon(50% 0%, 80% 22%, 58% 22%, 100% 55%, 62% 55%, 78% 100%, 34% 63%, 48% 63%, 20% 28%, 42% 28%);
    animation: lightning-strike 9s infinite steps(1, end);
}

.lightning-bolt.bolt-a {
    left: 16%;
    top: 10%;
    animation-delay: 1.2s;
}

.lightning-bolt.bolt-b {
    right: 17%;
    top: 14%;
    height: 140px;
    animation-delay: 4.8s;
}

.lightning-bolt.bolt-c {
    left: 50%;
    top: 7%;
    height: 125px;
    transform: translateX(-50%) scale(0.92);
    animation-delay: 7.1s;
}

@keyframes lightning-strike {
    0%, 85%, 100% { opacity: 0; }
    86% { opacity: 0.92; }
    87% { opacity: 0.12; }
    88% { opacity: 0.76; }
    89% { opacity: 0; }
}

@keyframes lightning-flash {
    0%, 85%, 100% { opacity: 0; }
    86% { opacity: 0.6; }
    87% { opacity: 0.15; }
    88% { opacity: 0.42; }
    89% { opacity: 0; }
}
.services-bg {
    background: transparent !important;
    animation: none !important;
}

.pulse-effect::before {
    display: none !important;
}

.bg-zinc-900,
.bg-zinc-900\/80,
.bg-zinc-900\/95,
.bg-zinc-950\/70 {
    background: var(--saas-surface) !important;
}

.bg-zinc-950,
.bg-black,
.bg-\[\#0a0a0a\] {
    background: transparent !important;
}

.border-zinc-800,
.border-zinc-700,
.border-zinc-900 {
    border-color: var(--saas-border) !important;
}

.text-zinc-600,
.text-zinc-500,
.text-zinc-400 {
    color: var(--saas-muted) !important;
}

.text-zinc-300,
.text-zinc-200,
.text-white {
    color: var(--saas-text) !important;
}

.service-card,
.freelancer-card,
.article-box,
.modal-content,
#overall-status,
#services-grid > *,
#incidents-list > *,
#maintenance-list > *,
#uptime-metrics > *,
#response-time-chart-container,
#status-history > * {
    background: var(--saas-surface) !important;
    border: 1px solid var(--saas-border) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.service-card:hover,
.freelancer-card:hover,
.article-box:hover {
    transform: translateY(-4px) !important;
    border-color: var(--brand-amber) !important;
    background: var(--saas-surface-strong) !important;
}

a,
button {
    cursor: pointer;
}

a.bg-amber-500,
button.bg-amber-500,
.bg-amber-500 {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

a.bg-amber-500:hover,
button.bg-amber-500:hover,
.bg-amber-500:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

footer {
    background: transparent !important;
}

footer .grid {
    background: var(--saas-surface);
    border: 1px solid var(--saas-border);
    border-radius: 18px;
    padding: 1.5rem;
}

.loading-screen {
    background: var(--saas-bg) !important;
}

.loading-spinner {
    border: 3px solid rgba(148, 163, 184, 0.24) !important;
    border-top-color: var(--brand-amber) !important;
}

.hero-typed-heading {
    min-height: 2.8em;
}

.hero-typed-slot {
    display: block;
    min-height: 1.25em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
}

.typewriter-caret {
    position: relative;
    padding-right: 0.2em;
}

.typewriter-caret::after {
    content: "|";
    margin-left: 0.06em;
    color: #fbbf24;
    animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #navbar {
        left: 0.6rem !important;
        right: 0.6rem !important;
        top: 0.6rem !important;
    }

    main {
        padding-top: 1rem;
    }

    .hero-typed-heading {
        min-height: 3.2em;
    }

    .hero-typed-slot {
        min-height: 1.3em;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
