/* Bloomberg Editorial Design System */
:root {
    --bb-blue: #0057D9;
    --bb-black: #000000;
    --bb-gray-light: #F2F2F2;
    --bb-gray-border: #E0E0E0;
    --bb-text-muted: #555555;
    --bb-spacing: 40px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: var(--bb-black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.monospaced {
    font-family: 'Courier New', Courier, monospace;
}

.serif-header {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
}

/* Grid Layout */
.nav-container,
.hero-grid,
.stats-row,
.detail-split,
.privacy-container,
.footer-cta,
.bottom-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--bb-spacing);
}

/* Navigation */
.bloomberg-nav {
    border-bottom: 2px solid var(--bb-black);
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

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

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -2px;
}

.logo-link {
    color: var(--bb-black);
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--bb-black);
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 24px;
    letter-spacing: 0.5px;
}

.btn-download {
    background: var(--bb-black);
    color: white !important;
    padding: 8px 16px;
}

/* Hero */
.editorial-hero {
    border-bottom: 1px solid var(--bb-gray-border);
    padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ticker {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--bb-blue);
    display: block;
    margin-bottom: 16px;
}

h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.hero-text-block p {
    font-size: 1.4rem;
    color: var(--bb-text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 90%;
}

.editorial-actions {
    display: flex;
    gap: 20px;
}

.btn-primary-sharp {
    background: var(--bb-black);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid var(--bb-black);
}

.btn-secondary-sharp {
    border: 1px solid var(--bb-black);
    color: var(--bb-black);
    text-decoration: none;
    padding: 16px 32px;
    font-weight: 800;
    font-size: 0.9rem;
}

.terminal-mock {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

/* Stats Row */
.editorial-stats {
    border-bottom: 1px solid var(--bb-gray-border);
    padding: 60px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--bb-gray-border);
}

.stat-item {
    padding: 0 40px;
    border-right: 1px solid var(--bb-gray-border);
}

.stat-item .label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--bb-text-muted);
    margin-bottom: 12px;
}

.stat-item .value {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--bb-text-muted);
}

/* Editorial Detail */
.editorial-detail {
    border-bottom: 1px solid var(--bb-gray-border);
    padding: 100px 0;
}

.detail-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
}

.detail-split.single-column {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

h2.serif-header {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 40px;
}

.article-body p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.editorial-list {
    list-style: none;
}

.editorial-list li {
    padding: 16px 0;
    border-top: 1px solid var(--bb-gray-border);
    font-weight: 700;
    font-size: 1rem;
}

.editorial-list li::before {
    content: "// ";
    color: var(--bb-blue);
}

.sidebar-box {
    background: var(--bb-gray-light);
    padding: 24px;
    border: 1px solid var(--bb-gray-border);
}

.analysis-stats {
    list-style: none;
    margin: 20px 0;
}

.analysis-stats li {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.analysis-stats .lbl {
    color: var(--bb-text-muted);
}

.analysis-stats .val {
    color: var(--bb-blue);
}

.sidebar-footnote {
    font-size: 0.7rem;
    color: var(--bb-text-muted);
    margin-top: 12px;
    font-style: italic;
}

/* Deep Dive Grid */
.deep-dive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.dive-box h4 {
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--bb-black);
    display: inline-block;
}

.dive-box p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--bb-text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
    border-bottom: 1px solid var(--bb-gray-border);
    background: var(--bb-gray-light);
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--bb-spacing);
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.pricing-header p {
    font-size: 1.2rem;
    color: var(--bb-text-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pricing-card {
    background: white;
    border: 1px solid var(--bb-gray-border);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--bb-black);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.plan-badge {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.plan-badge.free {
    color: var(--bb-text-muted);
}

.plan-badge.pro {
    color: var(--bb-blue);
}

.best-value-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--bb-black);
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 6px 12px;
    letter-spacing: 1px;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bb-text-muted);
    letter-spacing: 0;
}

.plan-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bb-gray-border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.plan-features li.included::before {
    background: var(--bb-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.plan-features li.not-included {
    color: var(--bb-text-muted);
    opacity: 0.6;
}

.plan-features li.not-included::before {
    background: var(--bb-gray-border);
}

.pricing-card .btn-primary-sharp,
.pricing-card .btn-secondary-sharp {
    width: 100%;
    text-align: center;
    padding: 18px;
}

.plan-note {
    font-size: 0.75rem;
    color: var(--bb-text-muted);
    text-align: center;
    margin-top: 16px;
}

.pricing-alternatives {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--bb-text-muted);
}

.pricing-alternatives strong {
    color: var(--bb-black);
}

/* Pricing Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
}

/* Privacy Overhaul */
.privacy-overhaul {
    padding: 140px 0;
    background: #000;
    color: white;
    overflow: hidden;
}

.privacy-container {
    display: flex;
    align-items: center;
    gap: 100px;
}

.privacy-visual {
    flex: 1.2;
    text-align: center;
}

.secure-img {
    width: 100%;
    max-width: 500px;
    border-radius: 0;
    filter: drop-shadow(0 0 50px rgba(0, 87, 217, 0.4));
    mix-blend-mode: screen;
}

.privacy-content {
    flex: 1;
}

.privacy-content h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.privacy-content p {
    font-size: 1.4rem;
    color: #999;
    margin-bottom: 40px;
    font-weight: 400;
}

.security-badges span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #333;
    font-size: 0.7rem;
    font-weight: 800;
    margin-right: 12px;
    color: var(--bb-blue);
}

/* Footer */
.editorial-footer {
    padding: 100px 0 40px;
}

.footer-cta {
    text-align: center;
    padding-bottom: 100px;
    border-bottom: 1px solid var(--bb-gray-border);
}

.footer-cta h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bb-text-muted);
}

.footer-links a {
    text-decoration: none;
    color: var(--bb-text-muted);
    margin-left: 24px;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet & Smaller Desktop (1024px) */
@media (max-width: 1024px) {
    :root {
        --bb-spacing: 24px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .features-page h1.serif-header,
    .legal-page h1.serif-header {
        font-size: 2.8rem;
    }

    .hero-grid {
        gap: 40px;
    }

    .detail-split {
        gap: 40px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    h2.serif-header {
        font-size: 1.8rem;
    }

    .features-page h1.serif-header,
    .legal-page h1.serif-header {
        font-size: 2.2rem;
    }

    /* Layout Stacking */
    .hero-grid,
    .detail-split,
    .privacy-container,
    .deep-dive-grid,
    .tech-specs {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-text-block p {
        font-size: 1.1rem;
        margin: 0 auto 32px;
    }

    .editorial-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary-sharp,
    .btn-secondary-sharp {
        width: 100%;
        text-align: center;
    }

    /* Stats Section */
    .stats-row {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--bb-gray-border);
        padding: 32px 0;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item .value {
        font-size: 1.8rem;
    }

    /* Privacy & Visuals */
    .privacy-content h2 {
        font-size: 2rem;
    }

    .security-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .security-badges span {
        margin-right: 0;
    }

    /* Navigation */
    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        display: flex;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.7rem;
        margin-left: 0;
    }

    .btn-download {
        display: none;
    }

    /* Footer */
    .footer-cta h2 {
        font-size: 2rem;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links a {
        margin: 0 8px;
    }
}

/* Features Page Redesign */
.section-header-sharp {
    padding: 120px 0 60px;
    border-bottom: 2px solid var(--bb-black);
}

h1.serif-header {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.features-page h2.serif-header {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

h2.serif-header.legal-section-heading {
    font-size: 2rem;
    margin-top: 60px;
}

.article-body p.legal-revision-note {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 80px;
}

.disclaimer-alert {
    background: #FFF9C4;
    border-left: 5px solid #FBC02D;
    margin-bottom: 50px;
    padding: 30px;
}

.disclaimer-alert h4 {
    color: var(--bb-black);
    font-weight: 900;
    margin-bottom: 10px;
}

.disclaimer-alert p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0;
}

.feature-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--bb-blue);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.feature-deep-dive {
    padding: 100px 0;
    border-bottom: 1px solid var(--bb-gray-border);
}

.feature-deep-dive.gray-bg {
    background-color: var(--bb-gray-light);
}

.tech-specs {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.spec-item {
    font-size: 0.95rem;
    color: var(--bb-text-muted);
    padding-left: 16px;
    border-left: 2px solid var(--bb-blue);
}

.feature-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    border: 1px solid var(--bb-gray-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-img-container.terminal-visual-container {
    background: var(--bb-black);
    border: none;
}

/* Security Vault Mock (Live CSS Visualization) */
.security-vault-mock {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vault-shield-outer {
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, rgba(0, 87, 217, 0.1), transparent);
    border: 1px solid rgba(0, 87, 217, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 87, 217, 0.1);
    animation: shield-glow 6s infinite ease-in-out;
}

.vault-hex-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 87, 217, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.vault-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--bb-blue);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--bb-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.vault-core::after {
    content: "PROTECTED";
    font-size: 0.5rem;
    font-weight: 900;
    color: var(--bb-blue);
    letter-spacing: 2px;
}

@keyframes shield-glow {

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

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

.vault-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bb-blue), transparent);
    opacity: 0.5;
    animation: scan-move 4s infinite linear;
}

@keyframes scan-move {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* Tech Dashboard Mock (for live-rendered UI visuals) */
.tech-dashboard-mock {
    width: 100%;
    height: 100%;
    background: #000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.dashboard-header-mock {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--bb-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.dashboard-grid-mock {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-grow: 1;
}

.grid-cell-mock {
    border: 1px solid #222;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

.grid-cell-mock.secondary-signal {
    opacity: 0.6;
}

.cell-label-mock {
    font-size: 0.6rem;
    color: #666;
    font-weight: 700;
    margin-bottom: 4px;
}

.cell-value-mock {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.live-graph-mock {
    margin-top: 30px;
    height: 80px;
    border-top: 1px solid #333;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(0, 87, 217, 0.05));
}

.graph-line-mock {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--bb-blue);
    box-shadow: 0 0 15px var(--bb-blue);
    animation: metabolic-pulse 4s infinite ease-in-out;
}

@keyframes metabolic-pulse {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-10px) scaleY(1.2);
        opacity: 1;
    }
}

.scanline-mock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.2;
}

/* Feature Image Container Styling */
.feature-img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #fff;
    border: 1px solid var(--bb-gray-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
