:root {
    --blue:      #00488d;
    --blue-mid:  #005fb8;
    --orange:    #fc6018;
    --ink:       #0d0f12;
    --ink-soft:  #424752;
    --surface:   #f9f9fc;
    --surface-2: #f3f3f6;
    --surface-3: #e8e8ea;
    --surface-4: #e2e2e5;
    --border:    #c2c6d4;
    --white:     #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--surface); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: var(--surface-4); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 2rem; height: 56px; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 2.5rem; }
.nav-brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--blue); letter-spacing: -0.03em; text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-family: 'Syne', sans-serif; font-size: .875rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding-bottom: 2px; transition: color .15s; }
.nav-links a.active { color: var(--blue); border-bottom: 2px solid var(--blue); }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; border-radius: 4px; color: var(--ink); transition: background .15s; }
.nav-toggle:hover { background: var(--surface-3); }
.nav-drawer { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--surface-4); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; flex-direction: column; gap: .25rem; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nav-drawer.open { display: flex; }
.nav-drawer a { font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: .65rem .75rem; border-radius: 6px; transition: background .15s, color .15s; }
.nav-drawer a:hover { background: var(--surface-3); color: var(--blue); }
.nav-drawer a.active { color: var(--blue); background: var(--surface-3); }

/* HERO */
.hero { background: var(--ink); color: var(--white); padding: 4rem 2rem 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 80% -10%, rgba(0,95,184,.3) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 10% 110%, rgba(252,96,24,.12) 0%, transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; padding-bottom: 4rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(252,96,24,.15); border: 1px solid rgba(252,96,24,.3); color: #ff8f57; font-family: 'DM Mono', monospace; font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.25rem; }
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 520px; }
.hero-wave { display: block; width: 100%; height: 48px; background: var(--surface); clip-path: ellipse(55% 100% at 50% 100%); }

/* LAYOUT */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem 5rem; display: grid; grid-template-columns: 220px 1fr; gap: 3rem; flex: 1; width: 100%; }

/* SIDEBAR */
.sidebar { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sidebar-nav { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.sidebar-label { font-family: 'DM Mono', monospace; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .85rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: background .15s, color .15s; }
.sidebar-nav a:hover { background: var(--surface-3); color: var(--ink); }
.sidebar-nav a.active { background: var(--surface-4); color: var(--blue); font-weight: 700; }
.sidebar-nav a svg { flex-shrink: 0; opacity: .5; }
.sidebar-nav a.active svg { opacity: 1; color: var(--blue); }
.sidebar-meta { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.meta-label { font-family: 'DM Mono', monospace; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.meta-val { font-family: 'Syne', sans-serif; font-size: .78rem; font-weight: 700; color: var(--ink); }
.meta-sub { font-size: .68rem; color: var(--ink-soft); margin-top: .2rem; }

/* ARTICLE */
article { display: flex; flex-direction: column; gap: 3rem; min-width: 0; }
.art-tag { display: inline-block; background: var(--blue-mid); color: var(--white); font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 3px; margin-bottom: 1rem; }
.art-title { font-family: 'Syne', sans-serif; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; text-transform: uppercase; margin-bottom: .85rem; }
.art-lead { font-size: .88rem; line-height: 1.7; color: var(--ink-soft); max-width: 580px; }
.policy-section { scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.25rem; }
.sec-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--border); line-height: 1; flex-shrink: 0; }
.sec-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); padding-top: .4rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; }
.card p { font-size: .84rem; line-height: 1.7; color: var(--ink-soft); }
.callout { border-left: 3px solid var(--blue); background: var(--surface-2); border-radius: 0 6px 6px 0; padding: 1rem 1.25rem; margin-top: 1rem; }
.callout-label { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: .4rem; }
.callout p { font-size: .78rem; font-style: italic; color: var(--ink-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.mini-card-label { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.mini-card-label svg { color: var(--blue); flex-shrink: 0; }
.mini-card p { font-size: .78rem; line-height: 1.65; color: var(--ink-soft); }
.dark-card { background: var(--ink); color: var(--white); border-radius: 10px; padding: 2rem; }
.dark-card .sec-num { color: rgba(255,255,255,.12); }
.dark-card .sec-title { color: var(--white); }
.dark-card p { font-size: .84rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.pipeline-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: .5rem; }
.pipeline-row:last-of-type { border-bottom: none; }
.pipeline-key { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pipeline-val { font-family: 'DM Mono', monospace; font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 3px; }
.tag-orange { background: var(--orange); color: var(--white); }
.tag-blue   { background: var(--blue-mid); color: var(--white); }
.tag-muted  { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.dark-note { font-size: .72rem; font-style: italic; color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); border-radius: 6px; padding: 1rem; margin-top: 1.25rem; }
.table-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 400px; }
thead tr { background: var(--surface-4); }
thead th { padding: .9rem 1.25rem; font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; text-align: left; white-space: nowrap; }
tbody tr { border-top: 1px solid rgba(194,198,212,.3); transition: background .15s; }
tbody tr:nth-child(even) { background: var(--white); }
tbody tr:hover { background: #eef4ff; }
tbody td { padding: .85rem 1.25rem; font-size: .82rem; vertical-align: top; }
td.right-cat { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--blue); font-weight: 500; white-space: nowrap; }
.contact-cta { background: linear-gradient(135deg, var(--blue), var(--blue-mid)); border-radius: 10px; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-cta h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; text-transform: uppercase; color: var(--white); margin-bottom: .25rem; }
.contact-cta p { font-size: .78rem; color: rgba(255,255,255,.6); }
.cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-white { font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700; background: var(--white); color: var(--blue); border: none; padding: .65rem 1.25rem; border-radius: 6px; cursor: pointer; transition: opacity .15s; }
.btn-white:hover { opacity: .9; }
.btn-outline-white { font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); padding: .65rem 1.25rem; border-radius: 6px; cursor: pointer; transition: background .15s; }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }

/* FOOTER */
footer { background: var(--surface-3); border-top: 1px solid var(--border); padding: 1.75rem 2rem; display: flex; justify-content: space-between; align-items: center; margin-top: auto; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.footer-copy { font-size: .72rem; color: var(--ink-soft); margin-top: .2rem; }
.footer-link { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--blue); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
article > * { animation: fadeUp .45s ease both; }
article > *:nth-child(1) { animation-delay: .05s; }
article > *:nth-child(2) { animation-delay: .1s; }
article > *:nth-child(3) { animation-delay: .15s; }
article > *:nth-child(4) { animation-delay: .2s; }
article > *:nth-child(5) { animation-delay: .25s; }
article > *:nth-child(6) { animation-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 0 1.25rem; }
    .nav-links  { display: none; }
    .nav-toggle { display: flex; }

    .hero { padding: 3rem 1.25rem 0; }
    .hero-inner { padding-bottom: 3rem; }
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2.25rem); }

    /* Abandona grid de 2 colunas — empilha sidebar + article */
    .page-wrap {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.25rem 3rem;
        gap: 1.5rem;
    }

    /* Sidebar vira barra horizontal */
    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .75rem;
    }
    .sidebar-nav  { flex: 1; min-width: 160px; }
    .sidebar-meta { flex: 1; min-width: 160px; }

    .grid-2 { grid-template-columns: 1fr; }

    .card  { padding: 1.25rem; }
    .dark-card { padding: 1.25rem; }

    .contact-cta { flex-direction: column; align-items: flex-start; }
    .cta-btns { width: 100%; }
    .btn-white, .btn-outline-white { flex: 1; text-align: center; justify-content: center; }

    footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .sidebar { flex-direction: column; }
    .sidebar-nav, .sidebar-meta { min-width: unset; width: 100%; }
    .art-title { font-size: 1.75rem; }
}