/* ═══════════════════════════════════════════════════════════════
   QUATRO Sinergia Lab — UX Audit Style Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Base Colors */
    --bg-base: #02040a;
    /* Deepest Navy / Black */
    --text-main: #ffffff;
    /* Pure White for headings */
    --text-muted: #8b9bb4;
    /* Cool gray for subtitles */

    /* Brand Accent - Electric Blue */
    --brand: #253779;
    --brand-electric: #007aff;

    /* Layout */
    --container: 1400px;
    --section-pad: clamp(8rem, 15vw, 12rem);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --title-size: clamp(3rem, 7vw, 6.5rem);
    --title-lh: 1.05;

    /* Borders & UI */
    --radius: 12px;
    --border-thin: rgba(255, 255, 255, 0.1);

    /* Transitions */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 1.5s ease;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Dot Grid Background Overlay - Reduced for QTCapital style */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    position: relative;
    z-index: 2;
}

/* Typography Classes */
.huge-title {
    font-size: var(--title-size);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: var(--title-lh);
    color: var(--text-main);
}

.sub-title {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 800px;
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--brand-electric);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn-primary:hover {
    background-color: #0066d6;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 35px rgba(0, 122, 255, 0.8), 0 0 15px rgba(0, 122, 255, 0.5) inset;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-thin);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.0);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.01);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 1.5rem 0;
}

.header.scrolled {
    transform: translateY(-100%);
}

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

.logo-icon {
    width: 200px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-svg-interactive {
    width: 100%;
    height: 100%;
}

.logo-svg-interactive path {
    fill: #ffffff;
    stroke: none;
    transition: fill 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    /* VERY IMPORTANT pointer events for hovering the interior of paths */
    pointer-events: none;
    /* We use JS distance tracking for the paths instead, so we don't need pointer events on them */
}

/* Permanently activate the 'A' (3rd path) */
.logo-svg-interactive path:nth-child(3) {
    fill: var(--brand-electric) !important;
    stroke: var(--brand-electric) !important;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.4)) !important;
}

/* Fallback hiding img just in case */
.logo-icon img {
    display: none;
}

.logo-icon:hover::after {
    opacity: 1;
    /* Turn on flashlight when hovered */
}

/* Hide the actual image since we use pure CSS masks now */
.logo-icon img {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section {
    display: flex;
    align-items: center;
    padding: var(--section-pad) 0;
    position: relative;
}

/* Hero Section */
.hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Morphic Dot Shape (Absolute pos in sections) */
.morphic-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    transition: all 1s ease-out;
}

/* Center massive shape behind hero */
#hero .morphic-shape {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-electric) 0%, transparent 70%);
    filter: blur(160px);
}

/* Storytelling Split Sections */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.split-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
}

.split-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Browser Mockup Visual Container (UX Audit Style) */
.browser-mockup {
    background: #020202;
    border: 1px solid var(--border-thin);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.browser-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-thin);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.browser-body {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Abstract Data Viz for mockups */
.abstract-viz {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.abstract-bar {
    flex: 1;
    background: var(--brand-electric);
    border-radius: 2px 2px 0 0;
    opacity: 0.5;
}

/* CTA Footer Section */
.footer-cta {
    text-align: center;
    padding: 2rem 0;
    /* Overrides the 8rem .section padding so text is snug under the line */
    overflow: hidden;
    /* Prevent massive glowing radial div from expanding page scroll */
}

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

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1440px) {
    html {
        zoom: 0.7;
        /* Scales the entire viewport down linearly, identical to a browser zoom out */
    }
}

@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .browser-body {
        padding: 2rem;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .btn-nav {
        display: none;
    }
}