/*===============================================
=             1. Reset and Base Styles          =
===============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-slate: #0f172a;
    --accent-blue: #2563eb;
    --hover-blue: #1d4ed8;
    --urgent-red: #ef4444;
    --urgent-hover: #dc2626;
    --border-gray: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

section {
    padding: 0;
}

/* ===============================================
=         VULTR-STYLE CURSOR SUNBURST GLOW       =
=============================================== */
.cursor-glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Allows clicks to pass straight through */
    z-index: 1; /* Sits behind content elements */
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%),
        rgba(59, 130, 246, 0.18), /* Primary Blue Glow */
        rgba(37, 99, 235, 0.08) 40%,
        transparent 80%
    );
    transition: opacity 0.3s ease;
}

/* Ensure header, hero, and emergency bar sit cleanly above the glow layer */
.saas-header,
.hero-section,
.top-emergency-bar {
    position: relative;
    z-index: 2;
}

.saas-card, .cta-button-hero {
    position: relative;
    z-index: 3;
}

/*===============================================
=             2. Sticky Emergency & Header      =
===============================================*/
/* Top Emergency Bar */
.top-emergency-bar {
    position: relative;
    z-index: 1000;
    background-color: #020617;
    border-bottom: 1px solid #1e293b;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.top-emergency-bar.collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.emergency-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emergency-badge {
    color: #f59e0b;
    font-weight: 600;
}

.emergency-actions {
    display: flex;
    gap: 1rem;
}

.quick-call-btn {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
}

.quick-call-btn:hover {
    text-decoration: underline;
}

.quick-ticket-btn {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.quick-ticket-btn:hover {
    color: #0284c7;
}

/* Collapsed Floating Corner Button */
.emergency-float-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 10001;
    background-color: #f59e0b;
    color: #020617;
    padding: 0.6rem 1.1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.emergency-float-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emergency-float-btn:hover {
    background-color: #d97706;
    transform: scale(1.05);
}

/* SAAS Header Navigation */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--primary-slate); 
    border-bottom: 1px solid #334155;
}

.saas-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    height: 85px; 
}

.saas-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

/* Logo White Sunburst Glow Effect */
.logo-sunburst-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.logo-sunburst-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0) 75%
    );
    z-index: 1;
    pointer-events: none;
    filter: blur(4px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-sunburst-wrapper img {
    position: relative;
    z-index: 2;
    max-height: 55px;
    width: auto;
    display: block;
}

.saas-logo-container:hover .logo-sunburst-wrapper::before {
    transform: translate(-50%, -50%) scale(1.1);
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 80%
    );
}

.saas-company-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

.desktop-brand-line1 {
    display: block;
    font-size: 1.15rem;
    color: #ffffff;
}

.desktop-brand-line2 {
    display: block;
    font-size: 0.85rem;
    color: #ffffff; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.mobile-brand, .mobile-menu-toggle, .hamburger-icon {
    display: none; 
}

.hamburger-icon {
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 50px;
}

.saas-links {
    display: flex;
    align-items: center;
    gap: 28px; 
    list-style: none;
}

.saas-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.saas-links a:hover {
    color: #60a5fa;
}

.saas-dropdown {
    position: relative;
    padding: 28px 0; 
}

.saas-mega-menu {
    position: absolute;
    top: 100%;
    left: 0; 
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 650px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.saas-dropdown:hover .saas-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.mega-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-top: 2px;
}

.mega-text h4 {
    color: #f8fafc;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.mega-text p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.85rem;
}

.saas-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.portal-login {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.portal-login:hover {
    color: #ffffff;
}

/* Header Responsive (Scroll Safe) */
@media (max-width: 1100px) {
    .desktop-brand-line1, .desktop-brand-line2 { display: none; }
    .mobile-brand, .hamburger-icon { display: block; }
    
    .nav-menu-wrapper {
        position: fixed;
        top: 85px; 
        left: 0;
        width: 100%;
        height: calc(100vh - 85px); 
        background: var(--primary-slate);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 3px solid var(--accent-blue);
        overflow-y: auto; 
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out;
        margin-left: 0;
        justify-content: flex-start; 
    }
    .mobile-menu-toggle:checked ~ .nav-menu-wrapper {
        transform: translateX(0);
    }
    .saas-links, .saas-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .saas-links { gap: 20px; }
    .saas-actions {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #334155;
        gap: 16px;
        padding-bottom: 40px; 
    }
    .saas-dropdown { padding: 10px 0; width: 100%; }
    .saas-mega-menu {
        position: static;
        width: 100%;
        grid-template-columns: 1fr; 
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px 0 0 15px;
        display: none; 
    }
    .saas-dropdown:hover .saas-mega-menu {
        display: grid;
    }
}

/*===============================================
=             3. Hero Section                   =
===============================================*/
.hero-section {
    background-color: transparent; 
    color: var(--text-dark); 
    padding: 60px 20px 80px;
    text-align: center;
}

.hero-content {
    max-width: 1400px; 
    width: 95%; 
    margin: 0 auto;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text-wrapper {
    max-width: 1000px; 
    margin: 0 auto;
}

.hero-headline {
    font-size: 3.5rem; 
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    color: var(--primary-slate); 
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted); 
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cta-button-hero {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button-hero.primary {
    background-color: var(--accent-blue); 
    color: #ffffff;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.cta-button-hero.primary:hover {
    background-color: var(--hover-blue);
    border-color: var(--hover-blue);
    transform: translateY(-2px);
}

.cta-button-hero.secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-slate);
    border: 2px solid var(--primary-slate);
    backdrop-filter: blur(4px);
}

.cta-button-hero.secondary:hover {
    background-color: var(--primary-slate);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Framework Quick Tag Links */
.framework-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.framework-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.framework-tag {
    background-color: var(--bg-light);
    border: 1px solid var(--border-gray);
    color: var(--text-dark);
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.framework-tag:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2.4rem; }
    .hero-section { padding: 40px 15px 50px; }
}

/*===============================================
=             4. Urgent Support Section         =
===============================================*/
@keyframes pulse-emergency {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.urgent-support-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    padding: 70px 20px;
    text-align: center;
    border-top: 4px solid var(--urgent-red); 
    border-bottom: 4px solid var(--urgent-red); 
}

.urgent-container {
    max-width: 1400px; 
    width: 95%; 
    margin: 0 auto;
}

.urgent-title {
    font-size: 2.2rem;
    color: #ffffff; 
    font-weight: 800;
    margin-bottom: 12px;
}

.urgent-subtitle {
    font-size: 1.15rem;
    color: #94a3b8; 
    margin-bottom: 40px;
}

.support-cta-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.call-now-btn {
    background-color: var(--urgent-red); 
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse-emergency 2s infinite; 
    border: 2px solid var(--urgent-red);
}

.call-now-btn:hover {
    background-color: var(--urgent-hover);
    border-color: var(--urgent-hover);
    color: #ffffff;
}

.ticket-btn {
    background-color: rgba(255, 255, 255, 0.05); 
    color: #ffffff;
    border: 2px solid #cbd5e1;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-btn:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/*===============================================
=         5. Core Services & Client Grid        =
===============================================*/
.platform-section {
    padding: 100px 20px;
    text-align: center;
}

.platform-section.light-gray {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.platform-section.white {
    background-color: var(--bg-white);
}

.section-container {
    max-width: 1400px; 
    margin: 0 auto;
    width: 95%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-slate);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.saas-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none; 
    display: flex;
    flex-direction: column;
}

.saas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.saas-card-icon {
    font-size: 2.5rem;
    color: var(--accent-blue); 
    margin-bottom: 24px;
}

.saas-card h3 {
    font-size: 1.4rem;
    color: var(--primary-slate);
    margin-bottom: 12px;
    font-weight: 700;
}

.saas-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.client-focus-card {
    text-align: center;
    align-items: center;
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .saas-grid { grid-template-columns: 1fr; }
    .platform-section { padding: 60px 20px; }
}

/*===============================================
=             6. Footer                         =
===============================================*/
footer {
    background-color: var(--primary-slate);
    color: #ffffff;
    padding: 60px 0 30px 0;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-content > div {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-content h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.footer-content p {
    color: #94a3b8;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    margin-bottom: 12px;
}

.footer-content a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #ffffff;
}

.footer-content .social-links a i {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-right: 15px;
    transition: color 0.2s ease;
}

.footer-content .social-links a:hover i {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.85rem;
}

/* Under Construction Notice Banner */
.construction-notice-banner {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 5;
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.notice-icon {
    color: #f59e0b; /* Safety amber/yellow */
    font-size: 1.1rem;
}

.notice-container strong {
    color: #f8fafc;
}