/* ABACUS.AI INSPIRED DARK THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-body: #080b16;
    /* Deep midnight blue */
    --bg-card: #121525;
    /* Slightly lighter navy for contrast */
    --bg-header: rgba(8, 11, 22, 0.95);

    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-link: #38bdf8;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --hover-gradient: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);

    /* Borders & Accents */
    --border-color: #1f2937;
    --accent-glow: 0 0 20px rgba(56, 189, 248, 0.3);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    margin: 0;
}

/* HEADER */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
}

.btn-nav {
    background: var(--primary-gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-nav:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--accent-glow);
}

/* CONTENT */
main {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb span {
    color: white;
}

.breadcrumb a:hover {
    color: var(--text-link);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    color: white;
    border-left: 4px solid #38bdf8;
    padding-left: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: #e2e8f0;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #d1d5db;
}

strong {
    color: white;
}

/* Links inside content */
article a {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: 1px dashed rgba(56, 189, 248, 0.5);
    transition: all 0.2s;
    font-weight: 500;
}

article a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* Global Elements */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* CTA BOX */
.cta-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    background: var(--secondary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.4);
}

/* Guide List Box (Homepage) */
.guide-list-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.guide-list-box ul {
    list-style: none;
    padding: 0;
}

.guide-list-box li {
    margin-bottom: 0.8rem;
}

.guide-list-box a {
    text-decoration: none !important;
    border-bottom: none !important;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.guide-list-box a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Case Study Grid */
.case-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.case-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 4rem 0;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* MOBILE STICKY */
.mobile-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    z-index: 200;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.sticky-btn {
    display: block;
    width: 90%;
    margin: 0 auto;
    background: var(--primary-gradient);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.9rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    animation: pulse-glow 2s infinite;
}

@media(min-width: 768px) {
    .mobile-sticky {
        display: none;
    }
}

/* DESKTOP STICKY CTA */
.desktop-sticky {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

@media(min-width: 768px) {
    .desktop-sticky {
        display: block;
        animation: pulse-glow 2.5s infinite;
        border-radius: 99px;
    }
    
    .desktop-sticky a {
        background: var(--secondary-gradient);
        color: white;
        padding: 1rem 2rem;
        border-radius: 99px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: transform 0.2s;
    }
    
    .desktop-sticky a:hover {
        transform: scale(1.05);
    }
}

/* --- LIGHT THEME OVERRIDES (System Preference) --- */
@media (prefers-color-scheme: light) {
    :root {
        --bg-body: #f8fafc;
        --bg-card: #ffffff;
        --bg-header: rgba(255, 255, 255, 0.95);
        --text-main: #0f172a;
        --text-muted: #64748b;
        --text-link: #0284c7;
        --border-color: #e2e8f0;
        --accent-glow: 0 0 20px rgba(2, 132, 199, 0.2);
    }
    
    h1 {
        background: linear-gradient(to right, #0f172a, #334155);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    h2, strong, .breadcrumb span, .logo, .case-title {
        color: #0f172a;
    }
    
    h3 {
        color: #334155;
    }
    
    p {
        color: #475569;
    }

    article a:hover {
        background: rgba(2, 132, 199, 0.1);
        color: #0284c7;
        border-bottom: 1px solid #0284c7;
    }

    .guide-list-box a:hover {
        background: #f1f5f9;
    }
    
    .cta-box, .guide-list-box, .case-card {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    }
}