/* ========================================= OMNI INTERACTIONS DESIGN SYSTEM ========================================= */
:root {
    /* --- Color Palette --- */
    --color-navy: #0B2039;
    /* Primary Brand / Text / Footer */
    --color-teal: #18A98C;
    /* Primary Buttons / Highlights */
    --color-orange: #FDB913;
    /* Secondary Buttons / Accents */
    --color-sky-blue: #E6EFF6;
    /* Section Backgrounds / Cards */
    --color-white: #FFFFFF;
    --color-text-body: #333333;
    --color-text-muted: #5A6B7C;

    /* --- Typography --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* --- Spacing & Radius --- */
    --radius-pill: 50px;
    /* For Nav Buttons */
    --radius-soft: 8px;
    /* For Cards & CTA Buttons */
    --radius-large: 16px;
    /* For Hero Containers */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    /* Section Padding */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================= BASE STYLES ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================= TYPOGRAPHY ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-body);
}

/* Helper for text on dark backgrounds */
.text-light {
    color: var(--color-white) !important;
}

.text-highlight {
    color: var(--color-orange);
}

.text-teal {
    color: var(--color-teal);
}

/* ========================================= BUTTONS ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Style 1: The "Get a Demo" Nav Button */
.btn-primary {
    background-color: var(--color-teal);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Style 2: The "Learn More" / Action Button */
.btn-secondary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: var(--radius-soft);
    font-size: 1rem;
}

/* Style 3: Ghost / Text Link */
.btn-link {
    background: transparent;
    color: var(--color-navy);
    padding: 0;
    border-bottom: 2px solid var(--color-orange);
}

/* ========================================= LAYOUT UTILITIES ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-navy {
    background-color: var(--color-navy);
}

.bg-sky {
    background-color: var(--color-sky-blue);
}

/* ========================================= MANUAL LAYOUT (ADAPTED) ========================================= */
.sidebar {
    width: 320px;
    height: 100vh;
    background: var(--color-navy);
    padding: 2.5rem 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 3.5rem;
}

.logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.nav-link.active {
    background: var(--color-teal);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(24, 169, 140, 0.3);
}

.main-content {
    margin-left: 320px;
    flex: 1;
    padding: 4rem 5rem;
    max-width: 1300px;
}

.header {
    margin-bottom: var(--spacing-xl);
}

.header h1 {
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
}

.header p {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* ========================================= COMPONENTS ========================================= */
.card {
    background-color: var(--color-sky-blue);
    padding: var(--spacing-lg);
    border-radius: var(--radius-large);
    margin-bottom: var(--spacing-md);
}

.card-white {
    background-color: var(--color-white);
    box-shadow: 0 4px 20px rgba(11, 32, 57, 0.08);
}

.topic-header {
    margin-bottom: var(--spacing-lg);
}

.instruction-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .instruction-grid {
        grid-template-columns: 1fr;
    }
}

.instruction-step {
    margin-bottom: 2rem;
}

.instruction-step h3 {
    font-size: 1.25rem;
    color: var(--color-teal);
    margin-bottom: var(--spacing-sm);
}

.instruction-step p {
    color: var(--color-text-body);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.screenshot-container {
    position: relative;
    border-radius: var(--radius-soft);
    overflow: hidden;
    border: 1px solid rgba(11, 32, 57, 0.1);
    box-shadow: 0 8px 30px rgba(11, 32, 57, 0.1);
    transition: var(--transition);
    cursor: zoom-in;
    background: var(--color-white);
}

.screenshot-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 32, 57, 0.15);
}

.screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
}


/* ========================================= IMAGE MODAL ========================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 32, 57, 0.98);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-soft);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.active img {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

/* ========================================= ANIMATIONS ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= SCROLLBAR ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-sky-blue);
    border-radius: 10px;
    border: 3px solid var(--color-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal);
}