/* BASE CONFIGURATION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #090a0f;
    --bg-panel: #12141c;
    --bg-card: #181b26;
    --text-main: #e2e8f0;
    --text-muted: #8b95a5;
    --accent-blue: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --pediatric-color: #f59e0b;
    --border-color: #232736;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 850px;
    margin-bottom: 2rem;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #131722 0%, #090a0f 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 900px;
    padding: 40px 20px;
}

.dossier-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 4px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(18, 20, 28, 0.6);
    box-shadow: 0 0 20px var(--accent-glow);
}

.dossier-logo span {
    color: var(--accent-blue);
}

.tech-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

/* META GRID */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.meta-val {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 4px;
}

.meta-val.highlight {
    color: var(--accent-blue);
}

/* Tactical Download Button */
.tactical-btn {
    display: inline-block;
    font-family: var(--font-mono);
    color: #090a0f;
    background: var(--accent-blue);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.tactical-btn:hover {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* SCROLL INDICATOR - FIXED BOUNCE */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    min-height: 80px;
}

.scroll-indicator p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: var(--accent-blue);
    animation: pulse 2s infinite;
    transform-origin: top;
}

@keyframes pulse {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1) translateY(15px); opacity: 0; }
}

/* SECTION CARDS & GRIDS */
.content-section {
    border-bottom: 1px solid var(--border-color);
}

.dark-panel {
    background-color: var(--bg-panel);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.info-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* HARDWARE SECTION */
.hardware-section {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 900px;
    margin-bottom: 40px;
}

.hardware-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 48px;
}

.hardware-header {
    margin-bottom: 24px;
}

.hw-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    letter-spacing: 1px;
}

.hw-badge.pediatric {
    background: rgba(245, 158, 11, 0.1);
    color: var(--pediatric-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.hardware-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 10px;
}

/* Image Glow Integration */
.hw-image-container, .blueprint-img, .macro-img {
    width: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.hw-image-container:hover, .blueprint-img:hover, .macro-img:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hw-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hw-img:hover {
    transform: scale(1.01);
}

.hw-specs-grid {
    display: grid;
    /* Updated from repeat(3, 1fr) to repeat(2, 1fr) to perfectly fit 4 items */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    border-left: 2px solid var(--accent-blue);
}

.spec-item h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.spec-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* SPLIT DISPLAY (BIOMETRIC SECTION) */
.split-display {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    margin-top: 40px;
}

.metric-box {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.metric-num {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
}

.metric-title {
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
}

.metric-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Data Security Protocol Badge */
.security-protocol {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(56, 189, 248, 0.05);
    border-left: 2px solid var(--accent-blue);
    padding: 12px;
    margin-top: 20px;
    line-height: 1.4;
}

.security-protocol strong {
    color: var(--accent-blue);
}

/* MACRO DEPLOYMENT & BUDGET */
.macro-img-box {
    margin: 32px 0;
}

.budget-container {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    margin-top: 40px;
}

.budget-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.budget-header h3 {
    color: #ffffff;
    font-size: 1.25rem;
}

.budget-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.budget-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.budget-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.cost {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.budget-card h4 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.budget-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* SPACING UTILITIES (For Custom Gap Tightening) */
.gap-tight-top .container {
    padding-top: 40px;
}
.gap-tight-bottom .container {
    padding-bottom: 20px;
}

/* FOOTER */
.footer {
    background: #050608;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-tight {
    padding: 30px 0 60px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 16px;
}

.sec-stamp {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    margin-top: 8px;
}

/* RESPONSIVE DESIGN FOR TABLETS & MOBILE */
@media (max-width: 900px) {
    .meta-grid, .info-grid, .hw-specs-grid, .split-display, .budget-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero h2 {
        font-size: 1.15rem;
    }
    .container {
        padding: 60px 5%;
    }
    .gap-tight-top .container, .gap-tight-bottom .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    .dossier-logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .hardware-card {
        padding: 20px;
    }
    .budget-card {
        padding: 16px;
    }
    .cost {
        font-size: 1.1rem;
    }
    .tactical-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}