/* BASE & RESET */
:root {
    --bg-primary: #07131F;
    --bg-secondary: #0D1F2E;
    --surface: #122A3A;
    --surface-elevated: #173447;
    --cyan: #48D8E8;
    --blue: #6D9EFF;
    --mint: #65E6B0;
    --warm: #F0C674;
    --text-main: #F2F7FA;
    --text-muted: #91A8B5;
    --border: #254455;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

/* TYPOGRAPHY */
.text-cyan { color: var(--cyan); }
.text-mint { color: var(--mint); }
.text-warm { color: var(--warm); }
.text-main { color: var(--text-main); }

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

.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* HEADER */
.site-header {
    background-color: rgba(7, 19, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-badge {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--mint);
    background: rgba(101, 230, 176, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: flex-end;
}

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

.nav-items a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-items a:hover, .nav-items a.active {
    color: var(--cyan);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: var(--cyan);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    width: 100%;
}

.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
    background: rgba(72, 216, 232, 0.1);
}

/* Nav CTA */
.nav-cta {
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--bg-primary) !important;
}

.nav-cta:hover {
    color: var(--bg-primary) !important;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.mobile-toggle:hover {
    color: var(--cyan);
}

/* BUTTONS */
.btn, .btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--surface-elevated);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    box-shadow: 0 0 10px rgba(72, 216, 232, 0.1);
}

.btn-primary:hover {
    background-color: var(--cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(72, 216, 232, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: var(--surface);
}

/* HERO SECTION */
.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 90%;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay-ui {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ui-pill {
    background: rgba(18, 42, 58, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    border-radius: 20px;
    color: var(--text-main);
}

/* DATA PANEL */
.hero-data-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-data-panel span { color: var(--text-main); }
.hero-data-panel .arrow { color: var(--cyan); }

/* CARDS */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--cyan);
    background: var(--surface);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
}

.card p {
    flex-grow: 1;
    font-size: 0.95rem;
}

.card .btn-secondary {
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* INTERACTIVE MAP */
.info-map-container {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
}

.map-stages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-stages::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.map-node {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition);
}

.map-node:hover, .map-node.active {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(72, 216, 232, 0.2);
}

.map-description {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WORKFLOW DIAGRAM */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.workflow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.workflow-arrow {
    text-align: center;
    color: var(--cyan);
    font-size: 1.5rem;
}

/* DASHBOARD MOCKUP */
.dashboard-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dash-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 4px;
}

.dash-panel.wide { grid-column: span 3; }
.dash-panel.medium { grid-column: span 2; }
.dash-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.dash-value { font-size: 1.5rem; color: var(--text-main); font-family: var(--font-heading); }
.dash-chart { height: 100px; border-bottom: 1px solid var(--cyan); position: relative; margin-top: 1rem; }
.dash-chart::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60%; height: 2px; background: var(--mint); }

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: var(--font-body);
    border-radius: 4px;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan);
}

select.form-control {
    appearance: none;
}

/* FOOTER */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-heading {
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.footer-info-grid span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem;
    font-size: 0.7rem;
    text-align: center;
    border-radius: 2px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--surface-elevated);
    border: 1px solid var(--cyan);
    padding: 1.5rem;
    border-radius: 4px;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h4 { margin-bottom: 0.5rem; }
.cookie-text p { margin-bottom: 0; font-size: 0.85rem; }

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-prefs {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-elevated);
    border: 1px solid var(--cyan);
    padding: 2rem;
    border-radius: 4px;
    z-index: 10000;
    width: 90%;
    max-width: 500px;
}

/* UTILITIES */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.page-header { padding: 8rem 0 4rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-header p { max-width: 600px; margin: 0 auto; }
.content-wrapper { max-width: 800px; margin: 0 auto; padding: 4rem 0; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--text-muted); font-size: 0.9rem; }
.back-link:hover { color: var(--cyan); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .mobile-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-items {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-items > a, .nav-dropdown-toggle {
        padding: 1.25rem 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
        display: block;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
    }
    
    .nav-dropdown-toggle span {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1rem;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown-menu a {
        padding: 1rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-dropdown-menu a:last-child {
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        margin-top: 2rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero-data-panel { flex-wrap: wrap; gap: 1rem; justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    
    .map-stages::before { display: none; }
    .map-stages { flex-direction: column; gap: 1rem; }
    .map-node { width: 100%; text-align: center; }
    .dashboard-mockup { grid-template-columns: 1fr; }
    .dash-panel.wide, .dash-panel.medium { grid-column: span 1; }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    .status-badge {
        display: none;
    }
    .nav-links {
        max-width: 100%;
        border-left: none;
    }
}