:root {
    --color-background: #0a0a0a;
    --color-text: #e6e6e6;
    --color-primary: #a855f7; /* A more vibrant, saturated purple */
    --color-primary-hover: #c084fc;
    --color-border: #2c2c2c;
    --color-surface: #1a1a1a;

    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-serif: 'Georgia', serif;

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Global layout guards */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
img, video, canvas, iframe { max-width: 100%; height: auto; }

/* Layout helpers */
:root {
    --header-height: 72px;
}

html, body { margin: 0; padding: 0; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

/* Offset main content below fixed header */
main { padding-top: 80px; }

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

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

/* Hide hamburger by default (desktop) */
.mobile-nav-toggle { display: none !important; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* Sections */
.section {
    color: var(--color-text);
    padding: 6rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* Scroll Animation Setup */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    :root { --header-height: 64px; }
    main { padding-top: 72px; }

    .container { width: 94%; max-width: 100%; }

    .mobile-nav-toggle { display: block !important; z-index: 1100; }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100svh;
        width: min(75vw, 320px);
        background: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1090;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .nav-links li { margin: .75rem 0; }

    .section { padding: 4rem 0; }

    .hero h1 { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.5rem; }

    .tech-section, .solution-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tech-section.reverse > div:first-child, .tech-section.reverse > div:last-child { order: initial; }
    .charts-grid { grid-template-columns: 1fr; }
    .companion-gallery { grid-template-columns: 1fr; }
}

/* Extra safety: never show hamburger on wide screens */
@media (min-width: 769px) { .mobile-nav-toggle { display: none !important; } }

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.main-footer {
    padding: 2rem 0;
    background-color: #000;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

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