/* Action Plan – Public site styles (navbar, branded buttons, shared brand) */

:root {
    --hero-mouse-x: 0.5;
    --primary-color: #0F62FE;
    --brand-mid: #088df9;
    --brand-accent: #21b1f6;
    --brand-deep: #162037;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #0EA5E9;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* Branded buttons – used site-wide (navbar, CTAs, forms) */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-mid) 0%, var(--primary-color) 100%);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(15, 98, 254, 0.35));
}
.btn-primary:hover {
    color: white;
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 14px rgba(15, 98, 254, 0.45));
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-mid) 100%);
}
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4rem 1.15rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn-outline-primary:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Buttons on dark/gradient sections (hero, CTA) */
.hero-section .btn,
.cta-section .btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.hero-section .btn.btn-lg,
.cta-section .btn.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.05rem;
}
.hero-section .btn-light,
.cta-section .btn-light {
    background: white;
    color: var(--brand-deep);
    border: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.hero-section .btn-light:hover,
.cta-section .btn-light:hover {
    background: #f8fafc;
    color: var(--brand-deep);
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
}
.hero-section .btn-outline-light,
.cta-section .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.9);
}
.hero-section .btn-outline-light:hover,
.cta-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ========== Landing gradient (all hero + CTA sections, and full-page .landing-bg) ========== */
.hero-section,
.cta-section {
    position: relative;
    background: linear-gradient(
        145deg,
        var(--brand-deep) 0%,
        #1e3a5f calc(35% + (var(--hero-mouse-x) - 0.5) * 30%),
        var(--brand-mid) calc(65% + (var(--hero-mouse-x) - 0.5) * 30%),
        var(--brand-accent) 100%
    );
    color: white;
    overflow: hidden;
}
.hero-section::before,
.hero-section::after,
.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    z-index: 1;
}
.hero-section::before,
.cta-section::before {
    top: 0;
    background: linear-gradient(90deg, transparent, var(--brand-accent), var(--brand-mid), transparent);
    opacity: 0.9;
}
.hero-section::after,
.cta-section::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--brand-mid), var(--brand-accent), transparent);
    opacity: 0.9;
}
.cta-section {
    padding: 4rem 0;
    text-align: center;
}
.hero-section { padding: 6rem 0; }
.cta-section--light {
    background: #f8fafc;
    color: var(--text-primary);
    text-align: center;
}
.cta-section--light::before,
.cta-section--light::after { display: none; }

/* Full-page landing gradient (e.g. behind documentation container) */
/* Blog */
.blog-card {
    border: 1px solid rgba(15, 98, 254, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 98, 254, 0.12);
}
.blog-card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand-mid), var(--primary-color));
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
}
.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-card-title {
    color: var(--text-primary);
    margin: 0.35rem 0 0.5rem;
}
.blog-back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}
.blog-back-link:hover {
    color: white;
}

/* Article page */
body.blog-article-page {
    background: linear-gradient(180deg, #eef4fc 0%, #f8fafc 40%, #f8fafc 100%);
}
.blog-article-hero {
    padding: 2.25rem 0 3.5rem;
    position: relative;
}
.blog-article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(33, 177, 246, 0.15) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
    pointer-events: none;
    opacity: 0.85;
}
.blog-article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.blog-article-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: white;
    letter-spacing: -0.02em;
}
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}
.blog-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}
.blog-meta-chip i {
    opacity: 0.9;
    font-size: 0.85rem;
}
.blog-meta-chip--topic {
    background: rgba(33, 177, 246, 0.25);
    border-color: rgba(33, 177, 246, 0.45);
}
.blog-article-sheet {
    margin-top: -2rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.blog-article-content {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 24px rgba(22, 32, 55, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.1);
    border-bottom: none;
    padding: 0 1.25rem 2rem;
}
@media (min-width: 768px) {
    .blog-article-content {
        padding: 0 2rem 2.5rem;
    }
}
.blog-article-figure {
    margin: 0 -1.25rem 1.5rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--brand-accent), var(--primary-color), var(--brand-mid)) 1;
}
@media (min-width: 768px) {
    .blog-article-figure {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}
.blog-article-figure img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
}
.blog-article-deck {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--brand-deep);
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.06), rgba(33, 177, 246, 0.08));
    border-left: 3px solid var(--brand-accent);
    padding: 1rem 1.1rem;
    margin: 0 0 1.75rem;
    border-radius: 0 6px 6px 0;
}
.blog-prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
}
.blog-prose h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-deep);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--brand-accent), var(--primary-color), transparent) 1;
}
.blog-prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}
.blog-prose p {
    margin-bottom: 1.1rem;
}
.blog-prose strong {
    color: var(--brand-deep);
    font-weight: 600;
}
.blog-prose a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.blog-prose a:hover {
    color: var(--brand-mid);
}
.blog-prose ul,
.blog-prose ol {
    margin-bottom: 1.1rem;
    padding-left: 1.35rem;
}
.blog-prose ul li {
    margin-bottom: 0.35rem;
}
.blog-prose ul li::marker {
    color: var(--brand-accent);
}
.blog-prose ol li {
    margin-bottom: 0.45rem;
    padding-left: 0.15rem;
}
.blog-prose ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}
.blog-prose table {
    width: 100%;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.95rem;
    border-collapse: collapse;
}
.blog-prose table thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, var(--brand-deep), #1e3a5f);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.blog-prose table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(15, 98, 254, 0.12);
    vertical-align: top;
}
.blog-prose table tbody tr:nth-child(even) td {
    background: rgba(15, 98, 254, 0.04);
}
.blog-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.blog-article-tags {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 98, 254, 0.12);
}
.blog-article-tags-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
}
.blog-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 98, 254, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

body.landing-bg,
.landing-bg {
    background: linear-gradient(
        145deg,
        var(--brand-deep) 0%,
        #1e3a5f calc(35% + (var(--hero-mouse-x) - 0.5) * 30%),
        var(--brand-mid) calc(65% + (var(--hero-mouse-x) - 0.5) * 30%),
        var(--brand-accent) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
}
