:root {
    /* Premium Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    /* Soft off-white */
    --bg-tertiary: #f1f5f9;
    /* Extra subtle depth */

    --text-primary: #111827;
    /* Deep Charcoal, not #000 */
    --text-secondary: #4b5563;
    /* Slate Gray */
    --text-muted: #9ca3af;

    --brand-primary: #ffa600;
    /* Premium Sardis Orange - Match Logo */
    --brand-hover: #e69500;
    --brand-light: #fff9f0;
    /* Very subtle orange tint for backgrounds */

    --success: #059669;
    /* Soft Emerald */
    --danger: #dc2626;
    /* Refined Crimson */

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Soft Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-floater: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 166, 0, 0.05);
    /* Deep shadow for floating elements */

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Cards */
.glass-card,
.premium-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

/* Floating UI Elements (Exness Style) */
.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom-color: var(--border-color);
    border-right-color: var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-floater);
    position: absolute;
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    animation: float-ease 6s ease-in-out infinite;
}

.floating-card .data-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.floating-card .data-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.floating-card .data-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Micro Patterns / Depth Backgrounds */
.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

.bg-dot-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Infinite Marquee Loop */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
    gap: 4rem;
    align-items: center;
    opacity: 0.3;
    /* Subtle like Exness */
    transition: opacity 0.3s;
}

.marquee-content:hover {
    opacity: 0.6;
    animation-play-state: paused;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Needs double content to loop perfectly */
    }
}

/* Animations */
@keyframes float-ease {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.anim-delay-1 {
    animation-delay: 1s;
}

.anim-delay-2 {
    animation-delay: 2s;
}

.anim-delay-3 {
    animation-delay: 3s;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Subtle premium shadow */
    padding: 0.8rem 0;
    /* Sleeker profile */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-primary);
}

/* Premium "Coming Soon" Badge */
.badge-soon {
    font-size: 0.65rem;
    background: rgba(255, 166, 0, 0.1);
    color: var(--brand-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 166, 0, 0.2);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: badge-pulse 2s infinite ease-in-out;
}

.badge-soon::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 50%;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.lang-link.active {
    color: var(--text-primary);
    font-weight: 700;
}

.lang-link:hover {
    color: var(--brand-primary);
}

/* Buttons (Exness Deep UI Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    border-radius: 100px;
    /* Perfect Pill Shape */
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.85rem !important;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px -3px rgba(255, 166, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    /* Soft inset press effect instead of float */
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(255, 166, 0, 0.2);
    transform: translateY(1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.05);
    transform: translateY(1px);
}

.btn-subtle {
    background: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 600;
}

.btn-subtle:hover {
    background: #ffedd5;
}

/* Typography Extensions - Deep UI tightening */
.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    text-align: center;
}

/* Data-Driven Typography */
.text-data-hero {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    display: block;
}

.text-data-hero .data-unit {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand-primary);
    vertical-align: super;
    margin-left: -0.5rem;
}

.data-driven-paragraph {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
}

.data-driven-paragraph strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Form Inputs */
input,
select,
textarea {
    font-family: inherit;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.1);
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Utility */
.text-brand {
    color: var(--brand-primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

/* Remove tech-mono globally unless strictly needed for data */
.tech-mono {
    font-family: 'Courier New', Courier, monospace;
}

/* ========================================= */
/* RESPONSIVE STYLES (Mobile First Approach) */
/* ========================================= */

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Tablet & Smaller Desktop (max-width: 992px) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    /* General Layout */
    .section-padding {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 clamp(0.75rem, 4vw, 1.25rem);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    /* Mobile Utility Classes */
    .flex-col-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem;
    }

    .btn-stack-mobile {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .fluid-stack {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
    }

    .grid-stack-mobile {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================= */
/* EDITORIAL & CONTENT PAGES                 */
/* ========================================= */

.editorial-section {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.editorial-section h2 {
    color: var(--text-primary);
    font-weight: 800;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 1.5rem;
}

.editorial-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 6px;
    background: var(--brand-primary);
    border-radius: 4px;
}

.editorial-section h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.editorial-quote {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-left: 6px solid var(--brand-primary);
    padding: 3rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: 4rem 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

.editorial-quote i {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 2.5rem;
    color: var(--brand-primary);
    background: var(--bg-primary);
    padding: 0 15px;
    border-radius: 50%;
}

/* Floating Table of Contents */
.floating-toc {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.floating-toc h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.floating-toc ul {
    list-style: none;
}

.floating-toc li {
    margin-bottom: 1.25rem;
}

.floating-toc a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.floating-toc a:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
}

.floating-toc a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    opacity: 0.3;
}

.floating-toc a:hover::before {
    opacity: 1;
    color: var(--brand-primary);
}

.content-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

/* Responsive Overrides for Editorial */
@media (max-width: 768px) {
    .editorial-section h2 {
        font-size: 1.75rem;
        margin-top: 3rem;
    }

    .editorial-quote {
        padding: 2rem;
    }
}