/*
 * style.css
 * Design Blueprint: Technical Precision (Low-Noise Philosophy)
 */

:root {
    --primary: #2a14b4;
    --primary-hover: #4338ca;
    --background: #f7f9fb;
    --surface: #ffffff;
    --ink: #191c1e;
    --muted: #464554;
    --outline: #e0e3e5;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Hierarchy */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; line-height: 1.1; font-weight: 600; }
h2 { font-size: 32px; line-height: 1.2; font-weight: 600; margin-top: 48px; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }

/* Top Bar */
.top-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Main Header */
.main-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--slate-200);
    height: 64px;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 32px;
    display: block;
}

/* Layout Grid */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
    }
}

/* Article Styling */
.advertorial-article {
    max-width: 800px;
}

.article-header {
    margin-bottom: 48px;
    border-left: 4px solid var(--primary);
    padding-left: 24px;
}

.byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 14px;
}

.separator {
    width: 4px;
    height: 4px;
    background-color: var(--slate-200);
    border-radius: 50%;
}

.intro-text {
    font-size: 18px;
    color: var(--slate-500);
    margin-top: 24px;
    line-height: 1.6;
}

.article-body p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--slate-700);
    line-height: 1.6;
}

/* Sidebar & TOC */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.toc-container {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.toc-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 16px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-nav a {
    text-decoration: none;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    display: block;
}

.toc-nav a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-promo {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    color: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
}

.promo-icon {
    font-size: 48px;
    color: #818cf8;
    margin-bottom: 16px;
}

.sidebar-promo h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.sidebar-promo p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.btn-text {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 12px;
    color: white;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section Block */
.cta-block {
    background-color: var(--slate-900);
    color: #fff;
    padding: 48px;
    border-radius: 12px;
    margin: 64px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #818cf8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cta-block h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
}

.cta-description {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    margin-bottom: 24px !important;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.offer-logo {
    background-color: white;
    display: block;
    max-width: 200px;
    outline: 2px solid #818cf8;
    padding: 8px;
    border-radius: 4px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-outline {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

/* Disclaimer & Footer */
.compliance-disclaimer {
    border-top: 1px solid var(--slate-200);
    padding-top: 48px;
    margin-top: 80px;
}

.compliance-disclaimer p {
    font-size: 12px;
    color: var(--slate-400);
    text-align: center;
    line-height: 1.8;
}

.site-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--slate-200);
    padding: 80px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--slate-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--primary); }

.contact-details {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 12px;
    background: var(--surface);
    display: inline-block;
    border: 1px solid var(--slate-200);
}

.contact-details p {
    font-size: 14px;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.footer-copyright p {
    font-size: 13px;
    color: var(--slate-400);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    .content-wrapper { padding: 48px 20px; }
    .cta-block { padding: 32px 20px; }
    .btn-group .btn-primary, .btn-group .btn-outline { width: 100%; text-align: center; }
}
