/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #050505;
    --bg-2: #0a0a0a;
    --bg-3: #111111;
    --surface: rgba(255,255,255,0.03);
    --surface-2: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.14);
    --text: #ffffff;
    --text-2: rgba(255,255,255,0.72);
    --text-3: rgba(255,255,255,0.5);
    --accent: #ff8a1f;
    --accent-2: #ff9b3d;
    --accent-glow: rgba(255,138,31,0.35);
    --accent-dark: rgba(255,138,31,0.12);
    --blue: #4a9eff;
    --blue-bg: rgba(74,158,255,0.1);
    --blue-border: rgba(74,158,255,0.2);
    --green: #4ade80;
    --green-bg: rgba(74,222,128,0.1);
    --green-border: rgba(74,222,128,0.2);
    --radius: 14px;
    --radius-lg: 20px;
    --container: 1200px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Background Glows ===== */
.bg-layer {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-glow {
    position: absolute; pointer-events: none;
    filter: blur(120px); border-radius: 50%;
}
.bg-glow-1 {
    top: -10%; left: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    opacity: 0.45; animation: drift1 32s ease-in-out infinite;
}
.bg-glow-2 {
    top: 30%; right: -15%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,138,31,0.15), transparent 60%);
    opacity: 0.4; animation: drift2 40s ease-in-out infinite;
}
.bg-glow-3 {
    bottom: -20%; left: 20%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,138,31,0.1), transparent 60%);
    opacity: 0.35; animation: drift3 36s ease-in-out infinite;
}
@keyframes drift1 {
    0%,100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(60px,100px,0); }
}
@keyframes drift2 {
    0%,100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(-80px,60px,0); }
}
@keyframes drift3 {
    0%,100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(100px,-80px,0); }
}

/* ===== Particles ===== */
.particle {
    position: absolute; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent), 0 0 30px var(--accent-glow);
    pointer-events: none;
}
.p1 { width:4px; height:4px; top:20%; left:12%; animation:float1 14s ease-in-out infinite, twinkle 6s ease-in-out infinite; }
.p2 { width:3px; height:3px; top:35%; left:78%; animation:float2 18s ease-in-out infinite 2s, twinkle 8s ease-in-out infinite 1s; }
.p3 { width:5px; height:5px; top:60%; left:25%; animation:float3 22s ease-in-out infinite 4s, twinkle 10s ease-in-out infinite 3s; }
.p4 { width:2px; height:2px; top:75%; left:65%; animation:float1 16s ease-in-out infinite reverse 1s, twinkle 7s ease-in-out infinite 2s; }
@keyframes float1 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(40px,-30px,0)} }
@keyframes float2 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(-50px,30px,0)} }
@keyframes float3 { 0%,100%{transform:translate3d(0,0,0)} 50%{transform:translate3d(60px,-60px,0)} }
@keyframes twinkle { 0%,100%{opacity:0.2} 50%{opacity:0.9} }

/* ===== Progress bar ===== */
.progress-bar {
    position: fixed; top: 0; left: 0; z-index: 200;
    height: 2px; width: 0%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; padding: 16px 0;
    transition: padding 0.45s cubic-bezier(0.22,1,0.36,1);
}
.header.scrolled { padding: 14px 0; }
.nav {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    border: 1px solid transparent; border-radius: 999px; background: transparent;
    transition: background 0.45s cubic-bezier(0.22,1,0.36,1),
                border-color 0.45s cubic-bezier(0.22,1,0.36,1),
                padding 0.45s cubic-bezier(0.22,1,0.36,1),
                max-width 0.45s cubic-bezier(0.22,1,0.36,1);
}
.header.scrolled .nav {
    max-width: 1080px; padding: 6px 8px 6px 22px;
    background: rgba(8,8,8,0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 600; color: var(--text);
}
.logo-icon { width: 34px; height: 34px; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.logo-icon svg { width: 100%; height: 100%; }
.logo-blog-label {
    font-size: 12px; font-weight: 500; color: var(--text-3);
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 8px; margin-left: 2px;
    letter-spacing: 0.04em;
}
.btn-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-size: 13px; font-weight: 500; color: var(--text-2);
    transition: all 0.2s ease;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Loading ===== */
.loading-state {
    display: flex; align-items: center; justify-content: center;
    min-height: 60vh; padding-top: 100px;
}
.loading-ring {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Sections common ===== */
main { position: relative; z-index: 1; }
.eyebrow {
    display: inline-block; color: var(--accent);
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
    margin-bottom: 16px; text-shadow: 0 0 12px var(--accent-glow);
}

/* ===== Category badge ===== */
.cat-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    padding: 4px 10px; border-radius: 999px;
    text-transform: uppercase;
}
.cat-badge.educacional { color: var(--blue); background: var(--blue-bg); border: 1px solid var(--blue-border); }
.cat-badge.produto { color: var(--accent); background: var(--accent-dark); border: 1px solid rgba(255,138,31,0.25); }
.cat-badge.cases { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }

/* ===== Listing — Hero ===== */
.listing-hero {
    padding: 140px 0 60px;
    text-align: center;
}
.listing-hero h1 {
    font-size: clamp(36px,5vw,60px); font-weight: 700;
    line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px;
}
.listing-hero p {
    font-size: 16px; color: var(--text-2); max-width: 480px; margin: 0 auto;
}

/* ===== Listing — Featured post ===== */
.featured-section { padding: 0 0 60px; }
.featured-card {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; align-items: stretch;
    background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(10,10,10,0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    cursor: pointer;
}
.featured-card:hover {
    border-color: rgba(255,138,31,0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255,138,31,0.06);
    transform: translateY(-3px);
}
.featured-content {
    padding: 48px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.featured-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.featured-meta .read-time { font-size: 12px; color: var(--text-3); }
.featured-card h2 {
    font-size: clamp(24px,3vw,38px); font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.15;
    color: var(--text); margin: 0;
}
.featured-excerpt {
    font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0;
}
.featured-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-date { font-size: 12px; color: var(--text-3); }
.btn-read {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    background: var(--accent); color: #0a0a0a;
    font-size: 13px; font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 0 var(--accent-glow);
    white-space: nowrap;
}
.btn-read:hover {
    background: var(--accent-2);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-2px);
}
.btn-read svg { transition: transform 0.25s ease; }
.btn-read:hover svg { transform: translateX(4px); }
.featured-visual {
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25);
    border-left: 1px solid var(--border);
    padding: 48px;
    overflow: hidden;
}
.featured-visual svg { width: 100%; max-width: 320px; height: auto; opacity: 0.85; }

/* ===== Listing — Grid ===== */
.grid-section { padding: 0 0 100px; }
.grid-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 36px; flex-wrap: wrap;
}
.grid-title { font-size: 13px; color: var(--text-3); font-weight: 400; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12px; font-weight: 500; color: var(--text-2);
    cursor: pointer; transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip.active {
    background: var(--accent-dark); border-color: rgba(255,138,31,0.4);
    color: var(--accent);
}
.posts-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.post-card {
    background: linear-gradient(180deg, rgba(18,18,18,0.7), rgba(8,8,8,0.7));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 16px;
    cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.post-card::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,138,31,0.04), transparent);
    transition: left 0.6s ease;
}
.post-card:hover { border-color: rgba(255,138,31,0.2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.post-card:hover::before { left: 100%; }
.post-card.cat-educacional:hover { border-color: var(--blue-border); }
.post-card.cat-cases:hover { border-color: var(--green-border); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-read-time { font-size: 11px; color: var(--text-3); }
.card-title {
    font-size: 17px; font-weight: 600; line-height: 1.35;
    letter-spacing: -0.01em; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
    font-size: 13px; color: var(--text-2); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding-top: 4px;
    border-top: 1px solid var(--border);
    font-size: 11.5px; color: var(--text-3);
}
.card-arrow { color: var(--accent); font-size: 16px; transition: transform 0.2s ease; }
.post-card:hover .card-arrow { transform: translateX(4px); }

/* ===== Post page ===== */
.post-page { padding: 100px 0 80px; }
.post-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-3); margin-bottom: 40px;
    transition: color 0.2s ease; cursor: pointer; background: none; border: none;
}
.post-back:hover { color: var(--accent); }
.post-top-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.post-top-meta .dot-sep { color: var(--text-3); font-size: 10px; }
.post-top-meta .read-time, .post-top-meta .post-date { font-size: 13px; color: var(--text-3); }
.post-title {
    font-size: clamp(32px,5vw,52px); font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 28px; color: var(--text);
}
.post-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 48px; }

/* Post layout: content + ToC sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 64px; align-items: start;
}
.post-content-col { min-width: 0; }

/* ToC sidebar */
.toc-sidebar {
    position: sticky; top: 100px;
    font-size: 13px; color: var(--text-3);
}
.toc-title {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    color: var(--text-3); text-transform: uppercase; margin-bottom: 16px;
}
.toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc-item { padding: 0; }
.toc-link {
    display: block; padding: 5px 0 5px 12px;
    border-left: 2px solid var(--border);
    color: var(--text-3); font-size: 12.5px; line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.toc-link.h3 { padding-left: 24px; font-size: 12px; }
.toc-link:hover { color: var(--text-2); border-color: var(--border-strong); }
.toc-link.active { color: var(--accent); border-color: var(--accent); }

/* Post article typography */
.post-content {
    font-size: 17px; line-height: 1.75; color: var(--text-2);
    max-width: 680px;
}
.post-content h2 {
    font-size: clamp(22px,2.5vw,28px); font-weight: 700;
    color: var(--text); letter-spacing: -0.015em; line-height: 1.2;
    margin: 52px 0 20px;
}
.post-content h3 {
    font-size: 19px; font-weight: 600;
    color: var(--text); margin: 36px 0 14px;
}
.post-content p { margin-bottom: 24px; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content a { color: var(--accent); border-bottom: 1px solid rgba(255,138,31,0.3); transition: border-color 0.2s; }
.post-content a:hover { border-bottom-color: var(--accent); }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; line-height: 1.65; }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 0 12px 24px;
    margin: 32px 0; font-style: italic; color: var(--text-2);
}
.post-content blockquote p { margin: 0; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.post-content pre {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px 24px; overflow-x: auto;
    margin: 28px 0; font-family: 'SFMono-Regular','Consolas',monospace;
    font-size: 13px; line-height: 1.6; color: var(--text-2);
}
.post-content code {
    font-family: 'SFMono-Regular','Consolas',monospace;
    font-size: 14px; background: rgba(255,255,255,0.06);
    border-radius: 4px; padding: 2px 6px; color: var(--accent);
}
.post-content pre code { background: none; padding: 0; color: var(--text-2); }

/* Share section */
.post-share { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-share h3 { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 16px; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 13px; font-weight: 500; color: var(--text-2);
    cursor: pointer; transition: all 0.2s ease;
}
.share-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.share-btn.copied { border-color: rgba(74,222,128,0.4); color: #4ade80; }

/* Related posts */
.related-section { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border); }
.related-section h3 {
    font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
    color: var(--text-3); text-transform: uppercase; margin-bottom: 28px;
}
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

/* Post page CTA */
.post-cta {
    margin-top: 64px;
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95));
    border: 1px solid rgba(255,138,31,0.15);
    border-radius: var(--radius-lg); padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
    box-shadow: 0 0 60px rgba(255,138,31,0.04);
    position: relative; overflow: hidden;
}
.post-cta::after {
    content: ''; position: absolute; top: -50%; right: -5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    filter: blur(60px); opacity: 0.25; pointer-events: none;
}
.post-cta > * { position: relative; z-index: 1; }
.post-cta h3 { font-size: clamp(18px,2vw,24px); font-weight: 700; line-height: 1.2; }
.post-cta h3 span { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.post-cta p { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.btn-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    background: var(--accent); color: #0a0a0a;
    font-size: 14px; font-weight: 600;
    transition: all 0.25s ease; white-space: nowrap;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-cta:hover {
    background: var(--accent-2);
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-2px);
}
.btn-cta svg { transition: transform 0.25s ease; }
.btn-cta:hover svg { transform: translateX(4px); }

/* 404 */
.page-404 {
    min-height: 70vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; gap: 16px; padding: 120px 24px;
}
.page-404 h2 { font-size: 48px; font-weight: 700; color: var(--accent); }
.page-404 p { color: var(--text-2); font-size: 16px; }
.page-404 a { color: var(--accent); border-bottom: 1px solid rgba(255,138,31,0.3); transition: border-color 0.2s; }
.page-404 a:hover { border-bottom-color: var(--accent); }

/* ===== Footer ===== */
.footer { padding: 24px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { font-size: 18px; font-weight: 600; }
.brand .dot { color: var(--accent); }
.copy { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1280px) {
    .post-layout { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 0; }
    .toc-sidebar { display: none; }
    .post-content { max-width: none; }
}
@media (max-width: 1024px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-visual { display: none; }
    .posts-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .listing-hero { padding: 100px 0 40px; }
    .listing-hero h1 { font-size: clamp(30px,8vw,44px); }
    .featured-content { padding: 28px; }
    .featured-card h2 { font-size: clamp(20px,4vw,28px); }
    .posts-grid { grid-template-columns: 1fr; }
    .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .grid-header { flex-direction: column; align-items: flex-start; }
    .post-page { padding: 80px 0 60px; }
    .post-title { font-size: clamp(24px,6vw,36px); }
    .post-content { font-size: 16px; }
    .post-cta { padding: 28px 24px; flex-direction: column; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; text-align: center; gap: 14px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .listing-hero { padding: 90px 0 32px; }
    .featured-content { padding: 22px; gap: 18px; }
    .post-card { padding: 22px; }
    .post-content { font-size: 15.5px; line-height: 1.7; }
    .post-cta { padding: 22px 18px; border-radius: 16px; }
    .share-buttons { gap: 8px; }
    .share-btn { padding: 8px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Demo modal ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  background: #ff8a1f;
  color: #050505;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: #ff9e45; transform: translateY(-1px); }
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.demo-modal.is-open { display: flex; }
.demo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(4px);
}
.demo-modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0e0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  color: #f5f5f5;
}
.demo-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #9a9a9a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.demo-modal__close:hover { color: #fff; }
.demo-modal__title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.demo-modal__subtitle { font-size: 14px; color: #9a9a9a; margin: 0 0 22px; }
.demo-form { display: flex; flex-direction: column; gap: 14px; }
.demo-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c9c9c9; }
.demo-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.demo-field input:focus {
  outline: none;
  border-color: #ff8a1f;
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.18);
}
.demo-form__submit { width: 100%; justify-content: center; margin-top: 4px; }
.demo-form__submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.demo-form__status { font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.demo-form__status.is-error { color: #ff6b6b; }
.demo-form__status.is-success { color: #4ade80; }
body.demo-open { overflow: hidden; }
