/*
 * MODULE_NAME = "styles.css";
 * MODULE_VERSION = "v3.0.04";
 * SECTION 0: DOCUMENT CHANGE LOG
 * | Version | Date       | Author | Notes                        |
 * |---------|------------|--------|------------------------------|
 * | v3.0.04 | 2026-06-27 | AG     | Remove redundant layout overrides | Purged duplicate mobile grid rules to prevent specificity conflicts.
 * | v3.0.03 | 2026-06-27 | AG     | Consolidate responsive grid collapsing | Moved homepage and playbook card grids column-collapse rules from HTML files to styles.css.
 * | v3.0.02 | 2026-06-27 | AG     | Deprecate checkbox menu toggle in favor of button/script | Removed checkbox styles and transitioned navigation triggers to clean active class toggles.
 * | v3.0.01 | 2026-06-27 | AG     | Fix nav CTA button text color | Changed primary button text to white with high specificity.
 * | v3.0.00 | 2026-06-26 | MG     | Initial deployment           |
 */
/* ── CMS STUDIO: GLOBAL TOKEN ENGINE ──────────────────────────────────────────
 * VERSION: 3.0.3
 * Contains Obsidian SaaS variable engine, transitions, scrollbars, and frame resets.
 * ────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-blue: #00a4bd;
    --primary-blue-glow: rgba(0, 164, 189, 0.15);
    --primary-blue-hover: #008da2;

    --bg-deep: #050811;
    --bg-surface: #0a0e1c;
    --bg-input: #10152b;
    --border-muted: #1a223f;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dark: #475569;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-md: 12px;
}

/* Global resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.no-wrap {
    white-space: nowrap;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-muted);
    padding: 18px 0;
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Typographic Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    cursor: pointer;
    text-decoration: none;
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 6px;
    font-weight: 800;
}

.logo-text {
    color: var(--text-primary);
    font-weight: 400;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-blue);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--primary-blue-glow);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-blue-glow);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-muted);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Content Hero Structure */
.hero {
    padding: 90px 0 60px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 164, 189, 0.08);
    border: 1px solid rgba(0, 164, 189, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-blue);
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-blue);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 500;
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.15;
}

.accent-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 300;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 164, 189, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 164, 189, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 164, 189, 0);
    }
}

/* Common Footer style */
.site-footer {
    border-top: 1px solid var(--border-muted);
    padding: 40px 0;
    text-align: center;
    background-color: #03050c;
}

.site-footer p {
    color: var(--text-dark);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    z-index: 105;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .navbar-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-muted);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0.2s;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        z-index: 99;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
    
    .nav-links a::after {
        display: none; /* Hide hover underline slide-in on mobile */
    }

    /* Trigger mobile slide-down menu when active class is present */
    .nav-links.active {
        max-height: 350px;
        opacity: 1;
        visibility: visible;
    }

    /* Animate hamburger to X when active */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.3rem;
    }

    /* Hide elements inside SVGs on mobile for scaling */
    .svg-hide-mobile {
        display: none !important;
    }
}
