/* Shared marketing surface for blog, use cases, and legal pages */
:root {
    --bg: #04060c;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --muted: rgba(229, 231, 235, 0.75);
    --text: #f8fafc;
    --accent: #38bdf8;
    --accent-2: #8b5cf6;
    --accent-3: #34d399;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --blog-card-bg: #0f172a;
    --blog-card-border: #1f2937;
    --blog-card-text: #e5e7eb;
    --blog-card-muted: #cbd5e1;
    --blog-card-title: #f8fafc;
}

.marketing-body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.06), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.08), transparent 30%),
                var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 96px;
}

.marketing-body a { color: inherit; }

/* Navigation */
.marketing-body .navbar,
.marketing-body .header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(4, 6, 12, 0.85);
    border-bottom: 1px solid var(--border);
}

.marketing-body .nav-container,
.marketing-body .header .container,
.marketing-body .nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marketing-body .nav-logo,
.marketing-body .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: var(--text);
}

.marketing-body .nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.logo-section {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.marketing-body .nav-menu {
    display: flex;
    gap: 22px;
    list-style: none;
}

.marketing-body .nav-menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.marketing-body .nav-menu a:hover {
    color: var(--text);
}

.marketing-body .container {
    background: transparent;
    min-height: auto;
}

.marketing-body .nav-buttons,
.marketing-body .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marketing-body .btn,
.marketing-body .btn-primary,
.marketing-body .btn-outline,
.marketing-body .cta-button {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.marketing-body .btn-primary,
.marketing-body .cta-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border-color: transparent;
    color: #0b1224;
}

.marketing-body .btn-outline,
.marketing-body .btn-ghost {
    border-color: var(--border);
    background: transparent;
    color: var(--text);
}

.marketing-body .btn:hover,
.marketing-body .btn-primary:hover,
.marketing-body .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.marketing-body .btn-outline:hover,
.marketing-body .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* Layout helpers */
.page-shell,
.marketing-body .container,
.marketing-body .blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-hero,
.marketing-body .hero-section,
.marketing-body .blog-header {
    padding: 120px 0 60px;
    text-align: center;
}

.hero-eyebrow,
.marketing-body .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title,
.marketing-body .blog-title,
.marketing-body .hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle,
.marketing-body .blog-subtitle,
.marketing-body .hero-subtitle {
    color: var(--muted);
    font-size: clamp(17px, 3vw, 22px);
    max-width: 760px;
    margin: 0 auto 26px;
}

.hero-actions,
.marketing-body .nav-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

/* Cards & grids */
.glass-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Blog listing */
.marketing-body .main-content {
    margin-top: 0;
    padding-top: 40px;
}

.marketing-body .blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.marketing-body .blog-post {
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.marketing-body .blog-post:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.marketing-body .blog-post-image {
    height: 180px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.3), transparent 60%),
                linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(139, 92, 246, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #0b1224;
}

.marketing-body .blog-post-content {
    padding: 20px;
}

.marketing-body .blog-post-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.marketing-body .blog-post-excerpt {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.marketing-body .blog-post-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(229, 231, 235, 0.6);
}

.marketing-body .blog-cta {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.16));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    margin-top: 32px;
    box-shadow: var(--shadow);
}

/* Use cases */
.marketing-body .use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.marketing-body .use-case {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.marketing-body .use-case:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.marketing-body .use-case-icon {
    padding: 26px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(139, 92, 246, 0.25));
    color: #0b1224;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.marketing-body .use-case-content {
    padding: 22px;
}

.marketing-body .use-case-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.marketing-body .use-case-description { color: var(--muted); margin-bottom: 18px; }

.marketing-body .use-case-example {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}

.marketing-body .use-case-benefits {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.marketing-body .use-case-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 15px;
}

.marketing-body .use-case-benefits i {
    color: var(--accent-3);
}

/* Articles */
.marketing-body .article {
    padding: 120px 0 60px;
}

.marketing-body .article-header {
    margin-bottom: 28px;
    text-align: center;
}

.marketing-body .article-title {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 12px;
}

.marketing-body .article-meta {
    color: var(--muted);
}

.marketing-body .article-intro {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    color: var(--muted);
    margin-top: 24px;
}

.marketing-body .article-content h2,
.marketing-body .article-content h3 {
    margin: 30px 0 12px;
}

.marketing-body .article-content p,
.marketing-body .article-content li {
    color: var(--muted);
}

.marketing-body .code-block {
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 14px;
    color: #dbeafe;
}

.marketing-body .example-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(52, 211, 153, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 16px;
    margin: 18px 0;
}

.marketing-body .toc {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin: 24px 0;
}

.marketing-body .toc a {
    color: var(--accent);
    text-decoration: none;
}

.marketing-body .toc a:hover {
    text-decoration: underline;
}

/* CTA blocks */
.cta-panel,
.marketing-body .cta-section,
.marketing-body .cta-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    padding: 28px;
    margin: 36px 0 12px;
    text-align: center;
    color: var(--text);
    box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel h3,
.marketing-body .cta-section h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.cta-panel p,
.marketing-body .cta-section p {
    color: var(--muted);
    margin-bottom: 18px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blog detail cards */
.article-page .cta-panel,
.article-page .cta-box,
.article-page .cta-section,
.article-page .toc,
.article-page .code-block,
.article-page .example-box,
.article-page .pattern-example,
.article-page .trend-box,
.article-page .timeline-content,
.article-page .method-box,
.article-page .framework-box,
.article-page .best-practice,
.article-page .tip-box,
.article-page .warning-box {
    background: var(--blog-card-bg) !important;
    border: 1px solid var(--blog-card-border) !important;
    color: var(--blog-card-text) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25) !important;
}

.article-page .cta-panel h2,
.article-page .cta-panel h3,
.article-page .cta-box h3,
.article-page .cta-section h2,
.article-page .article-content h2,
.article-page .article-content h3,
.article-page .method-title,
.article-page .framework-title,
.article-page .practice-title,
.article-page .tip-title,
.article-page .warning-title,
.article-page .example-title {
    color: var(--blog-card-title) !important;
}

.article-page .article-title {
    color: var(--blog-card-title) !important;
}

.article-page .article-meta,
.article-page .article-intro {
    color: var(--blog-card-muted) !important;
}

.article-page .cta-panel p,
.article-page .cta-box p,
.article-page .cta-section p,
.article-page .article-content p,
.article-page .article-content li,
.article-page .method-description,
.article-page .practice-description,
.article-page .method-benefits li {
    color: var(--blog-card-muted) !important;
}

.article-page .toc a {
    color: var(--accent) !important;
}

.article-page .code-block {
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Legal pages */
.marketing-body .legal-content {
    padding: 80px 24px;
}

.marketing-body .legal-content h1 {
    font-size: clamp(32px, 5vw, 44px);
    margin-bottom: 10px;
    color: var(--text);
}

.marketing-body .legal-content h2 { margin-top: 28px; }
.marketing-body .last-updated { color: var(--muted); margin-bottom: 18px; }

.marketing-body section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.marketing-body section h2,
.marketing-body section h3 {
    color: var(--text);
}

.marketing-body section p,
.marketing-body section li {
    color: var(--muted);
}

.marketing-body .footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    color: var(--text);
    background: transparent;
    border-top: 1px solid var(--border);
}

.marketing-body .header-content h1,
.marketing-body .header-content h1 a {
    color: var(--text);
}

.marketing-body .footer-content p,
.marketing-body .footer-links a {
    color: var(--text);
}

.marketing-body .footer-links a:hover {
    color: var(--accent);
}

.marketing-body .header {
    background: rgba(4, 6, 12, 0.85);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.marketing-body .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.marketing-body .legal-content {
    background: transparent;
}

.marketing-body .footer-content {
    padding: 0 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .marketing-body .nav-menu { display: none; }
    .marketing-body .nav-container { padding: 14px 18px; }
    .marketing-body .blog-posts,
    .marketing-body .use-cases-grid { grid-template-columns: 1fr; }
    .marketing-body .article { padding: 100px 0 40px; }
}
