@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── DESIGN SYSTEM ─────────────────────────────────────────── */
:root {
    /* Palette exata do specs */
    --blue-50:  #E6F3FF;
    --blue-100: #BFE3FF;
    --blue-200: #7EC8FF;
    --blue-500: #2A7DB8;
    --navy:     #0E2F44;
    --text:     #333333;

    /* Derivados */
    --bg:           #0a2236;
    --bg-deep:      #071828;
    --surface-1:    rgba(255,255,255,0.06);
    --surface-2:    rgba(255,255,255,0.10);
    --surface-3:    rgba(255,255,255,0.15);
    --border:       rgba(126,200,255,0.18);
    --border-strong: rgba(126,200,255,0.32);
    --muted:        rgba(230,243,255,0.55);
    --accent:       #2A7DB8;
    --accent-light: #7EC8FF;
    --radius:       16px;
    --radius-sm:    10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--blue-50);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── GLASS UTILITY ────────────────────────────────────────── */
.glass {
    background: var(--surface-2);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--border);
}

.glass-strong {
    background: var(--surface-3);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid var(--border-strong);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,24,40,0.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.nav-logo span { color: var(--accent-light); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: var(--surface-2);
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(126,200,255,0.25);
    box-shadow: 0 0 20px rgba(42,125,184,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.2s;
}
.nav-cta:hover {
    background: #1e6da0;
    transform: translateY(-1px);
    box-shadow: 0 4px 28px rgba(42,125,184,0.5);
}

@media (max-width: 640px) { .nav-links { display: none; } }

/* ── LAYOUT CONTAINERS ────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SECTION SPACING ──────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── SECTION LABEL ────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 18px;
}
.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 1px;
}

/* ── HERO (homepage) ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42,125,184,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 60% 80% at 10% 80%, rgba(126,200,255,0.10) 0%, transparent 55%),
        linear-gradient(180deg, #071828 0%, #0a2236 100%);
    z-index: 0;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(126,200,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126,200,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(42,125,184,0.15);
    border: 1px solid rgba(126,200,255,0.3);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-light);
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 22px;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--blue-200) 0%, var(--blue-100) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.12rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid rgba(126,200,255,0.25);
    box-shadow: 0 0 32px rgba(42,125,184,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary:hover {
    background: #1e6da0;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(42,125,184,0.55);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--blue-50);
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    transition: all 0.2s;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--surface-2);
    border-color: var(--accent-light);
    color: #fff;
    transform: translateY(-1px);
}

.hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) { .hero-visual { display: none; } }

/* ── GLASS ICON ────────────────────────────────────────────── */
.glass-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42,125,184,0.15);
    border: 1px solid rgba(126,200,255,0.3);
    box-shadow: 0 4px 20px rgba(42,125,184,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.glass-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-light);
}

/* ── TOOLS SECTION ────────────────────────────────────────── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
    padding: 28px 26px;
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid var(--border);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126,200,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.tool-card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(126,200,255,0.12);
    color: inherit;
}
.tool-card:hover::before { opacity: 1; }

.tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.tool-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}
.tool-card-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    transition: gap 0.2s;
}
.tool-card:hover .tool-card-cta { gap: 10px; }

/* ── SECTION TITLE ────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
}
.section-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 12px;
    max-width: 520px;
    line-height: 1.7;
}

/* ── ARTICLE CARDS ────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    color: inherit;
}

.article-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(42,125,184,0.3) 0%, rgba(14,47,68,0.8) 100%);
    flex-shrink: 0;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }

.article-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(42,125,184,0.18);
    color: var(--accent-light);
    border: 1px solid rgba(126,200,255,0.25);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
}

.article-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.article-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}
.article-card-meta .dot { opacity: 0.4; }

/* ── FEATURED POST CARD ───────────────────────────────────── */
.featured-card {
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid var(--border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 55fr 45fr;
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}
.featured-card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    color: inherit;
}
.featured-card-body {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}
.featured-card-body h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.featured-card-body p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}
.featured-card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    gap: 14px;
    align-items: center;
}
.featured-card-img {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}
.featured-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img img { transform: scale(1.04); }
.featured-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    align-self: flex-start;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-card-img { min-height: 220px; order: -1; position: relative; }
    .featured-card-body { padding: 28px 24px; }
}

/* ── NEWSLETTER SECTION ───────────────────────────────────── */
.newsletter-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(14,47,68,0.95) 0%, rgba(10,34,54,0.98) 100%);
    border: 1px solid rgba(126,200,255,0.18);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 340px;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(42,125,184,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: 40%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(126,200,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
/* Coluna esquerda — copy */
.nl-copy {
    padding: 52px 48px 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.nl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(42,125,184,0.2);
    border: 1px solid rgba(126,200,255,0.3);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}
.nl-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-light);
}
.newsletter-section h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 14px;
}
.newsletter-section .nl-desc {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 360px;
}
.nl-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nl-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #c5dff0;
    line-height: 1.4;
}
.nl-benefits li::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: rgba(42,125,184,0.3);
    border: 1px solid rgba(126,200,255,0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ec8ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
}
/* Coluna direita — formulário */
.nl-form-col {
    padding: 48px 52px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    border-left: 1px solid rgba(126,200,255,0.1);
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.newsletter-form input,
.newsletter-form select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(126,200,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form select option { background: #0E2F44; color: #fff; }
.newsletter-form input:focus,
.newsletter-form select:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(255,255,255,0.09);
}
.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}
.newsletter-consent input {
    min-width: 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 4px;
    border: 1px solid rgba(126,200,255,0.3);
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.nl-spam-note {
    font-size: 0.73rem;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
}
.nl-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}
.nl-honeypot input {
    min-width: 1px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
}
@media (max-width: 860px) {
    .newsletter-section { grid-template-columns: 1fr; }
    .nl-copy { padding: 44px 32px 28px; }
    .nl-form-col { padding: 0 32px 44px; border-left: none; border-top: 1px solid rgba(126,200,255,0.1); }
}
@media (max-width: 480px) {
    .nl-copy { padding: 36px 24px 24px; }
    .nl-form-col { padding: 0 24px 36px; }
    .newsletter-section h2 { font-size: 1.4rem; }
}

/* ── BLOG PAGE (blog.html) ────────────────────────────────── */
.blog-hero {
    padding: 72px 24px 56px;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(42,125,184,0.12) 0%, transparent 60%);
}
.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.035em;
    position: relative;
}
.blog-hero p {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 10px;
    position: relative;
}

/* ── FILTERS BAR ──────────────────────────────────────────── */
.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 36px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    backdrop-filter: blur(12px);
}
.filters-bar input[type=search],
.filters-bar select {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.88rem;
    font-family: var(--font);
    color: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.filters-bar input[type=search]::placeholder { color: var(--muted); }
.filters-bar select option { background: var(--navy); color: #fff; }
.filters-bar input[type=search]:focus,
.filters-bar select:focus {
    outline: none;
    border-color: var(--accent-light);
    background: rgba(255,255,255,0.09);
}
.filters-bar input[type=search] { flex: 1; min-width: 180px; }

/* ── POSTS GRID ───────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .posts-grid { grid-template-columns: 1fr; } }

/* ── LOAD MORE ────────────────────────────────────────────── */
.load-more-wrap {
    text-align: center;
    margin-top: 52px;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--blue-50);
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.btn-load-more:hover {
    background: var(--surface-3);
    border-color: var(--accent-light);
    color: #fff;
}
.btn-load-more:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── SINGLE POST PAGE ─────────────────────────────────────── */
.post-cover {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 768px) { .post-cover { height: 280px; } }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 28px 0 0;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: var(--muted);
    transition: color 0.15s;
}
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { opacity: 0.4; }

.post-header {
    margin: 20px 0 32px;
}
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}
.post-cat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(42,125,184,0.18);
    color: var(--accent-light);
    border: 1px solid rgba(126,200,255,0.25);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.post-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.post-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 500;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.reading-time {
    background: rgba(42,125,184,0.12);
    border: 1px solid rgba(126,200,255,0.18);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* ── POST CONTENT ─────────────────────────────────────────── */
.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(230,243,255,0.88);
    margin: 36px 0;
}
.post-content p {
    margin: 0 0 1.4em;
}
.post-content h2 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 2.2em 0 0.65em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.post-content h3 {
    color: #fff;
    font-size: 1.22rem;
    font-weight: 700;
    margin: 1.8em 0 0.5em;
    letter-spacing: -0.015em;
}
.post-content h4 {
    color: var(--blue-100);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5em 0 0.4em;
}
.post-content ul, .post-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.3em;
}
.post-content li { margin-bottom: 0.55em; }
.post-content pre {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.5em 0;
}
.post-content code {
    background: rgba(42,125,184,0.15);
    border: 1px solid rgba(126,200,255,0.2);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.87em;
    color: var(--accent-light);
}
.post-content pre code { background: none; border: none; padding: 0; color: inherit; }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.8em 0;
    padding: 14px 22px;
    color: var(--muted);
    background: rgba(42,125,184,0.08);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}
.post-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 1.4em 0;
    border: 1px solid var(--border);
}
.post-content a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}
.post-content th {
    background: rgba(42,125,184,0.2);
    color: #fff;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-strong);
}
.post-content td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    color: rgba(230,243,255,0.8);
}

/* ── IN-ARTICLE CTA ───────────────────────────────────────── */
.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(42,125,184,0.2) 0%, rgba(14,47,68,0.5) 100%);
    border: 1px solid rgba(126,200,255,0.22);
    margin: 2em 0;
    flex-wrap: wrap;
}
.article-cta-text h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.article-cta-text p  { font-size: 0.84rem; color: var(--muted); }

/* ── POST TAGS ────────────────────────────────────────────── */
.post-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.post-tag-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(42,125,184,0.12);
    color: var(--accent-light);
    border: 1px solid rgba(126,200,255,0.2);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.15s;
}
.post-tag-chip:hover {
    background: rgba(42,125,184,0.22);
    border-color: rgba(126,200,255,0.35);
    color: #fff;
}

/* ── RELATED POSTS ────────────────────────────────────────── */
.related-posts { margin: 8px 0 48px; }
.related-posts h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-1);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.related-card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    color: inherit;
}
.related-card h4 { font-size: 0.92rem; font-weight: 700; color: #fff; line-height: 1.4; }
.related-card .related-date { font-size: 0.74rem; color: var(--muted); }
.related-card .related-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ── TOOLS BANNER (inside articles) ──────────────────────── */
.tools-banner {
    background: linear-gradient(135deg, rgba(42,125,184,0.25) 0%, rgba(14,47,68,0.6) 100%);
    border: 1px solid rgba(126,200,255,0.2);
    border-radius: var(--radius);
    padding: 28px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    margin: 48px 0;
}
.tools-banner h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tools-banner p  { font-size: 0.88rem; color: var(--muted); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 52px;
    flex-wrap: wrap;
}
.pagination button {
    border: 1px solid var(--border);
    background: var(--surface-1);
    border-radius: 8px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--blue-50);
    font-family: var(--font);
    transition: all 0.15s;
}
.pagination button:hover { background: var(--surface-2); border-color: var(--border-strong); color: #fff; }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:disabled { opacity: 0.35; cursor: default; }

/* ── EMPTY / ERROR STATES ─────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 72px 20px;
    color: var(--muted);
    font-size: 1rem;
}

/* ── SKELETON LOADING ─────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    display: block;
}
.skeleton-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-1);
    overflow: hidden;
}
.skeleton-img {
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── UTILITIES ────────────────────────────────────────────── */
.hidden   { display: none !important; }
.muted    { color: var(--muted); }
.text-center { text-align: center; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border);
    padding: 48px 24px 36px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
.footer-brand p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.7;
    max-width: 300px;
}
.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent-light); }

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: rgba(230,243,255,0.65); transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
    max-width: 1160px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── TOAST NOTIFICATIONS ──────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d2d46;
    border: 1px solid rgba(126,200,255,0.2);
    color: #e8f4ff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 240px;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
    pointer-events: auto;
    animation: toastIn .28s cubic-bezier(.2,.6,.3,1) both;
    line-height: 1.4;
}

.toast.toast-success { border-color: rgba(52,211,153,0.4); background: rgba(5,40,28,.92); }
.toast.toast-error   { border-color: rgba(248,113,113,0.4); background: rgba(50,10,10,.92); }
.toast.toast-info    { border-color: rgba(126,200,255,0.3); }

.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-out  { animation: toastOut .22s ease forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(8px); } }

/* ── RESPONSIVE GLOBAL ────────────────────────────────────── */
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 44px 0; }
    .hero { padding: 56px 20px 64px; }
    .container, .container-narrow { padding: 0 18px; }
    .toast-container { bottom: 16px; right: 16px; left: 16px; }
    .toast { min-width: 0; max-width: 100%; }
}
