@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg: #fafaf9;
    --bg-white: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #16a34a;
    --accent-2: #2563eb;
    --accent-gold: #d97706;
    --border: #e7e7e5;
    --radius: 20px;
    --font: 'Outfit', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 72px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.logo {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo-dot {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

/* HERO */
.hero {
    padding: 100px 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: var(--accent);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--mono);
    margin-bottom: 32px;
}

.hero-badge::before {
    content: "●";
    font-size: 8px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.0;
    margin-bottom: 28px;
    max-width: 900px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 48px;
}

/* AD BANNER */
.ad-banner {
    background: var(--bg-white);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: #94a3b8;
    position: relative;
    margin: 40px 0;
}

.ad-banner::after {
    content: "ANUNCIO";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--bg);
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    font-family: var(--mono);
}

/* BENTO GRID */
.section-title {
    font-size: 13px;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
    margin-bottom: 80px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12);
}

.card.tall {
    grid-row: span 2;
}

.card.wide {
    grid-column: span 2;
}

.card-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.card-label.green {
    color: var(--accent);
}

.card-label.blue {
    color: var(--accent-2);
}

.card-label.gold {
    color: var(--accent-gold);
}

.card h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.card.tall h3 {
    font-size: 36px;
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.card-arrow {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.card:hover .card-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.card-bg-num {
    position: absolute;
    right: 24px;
    bottom: 16px;
    font-family: var(--mono);
    font-size: 80px;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
    z-index: 0;
}

/* AD NATIVE */
.ad-native {
    background: var(--bg-white);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    color: #94a3b8;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ARTICLE PAGES */
.article-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 40px;
}

.article-wrap h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.article-meta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 60px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

/* Q&A styles */
.qa-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qa-item {
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.qa-item:first-child {
    border-top: 1px solid var(--border);
}

.qa-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.qa-num {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    min-width: 36px;
    padding-top: 4px;
}

.qa-answer {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    padding-left: 52px;
}

.qa-answer code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 15px;
}

.qa-answer pre {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 12px;
    font-family: var(--mono);
    font-size: 14px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
}

/* Tips / Tip box */
.tip-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 16px;
    color: #166534;
}

.tip-box strong {
    display: block;
    margin-bottom: 6px;
}

/* AD IN-ARTICLE */
.ad-inline {
    background: var(--bg);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: #94a3b8;
    margin: 48px 0;
    position: relative;
}

.ad-inline::after {
    content: "ANUNCIO";
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--bg);
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    font-family: var(--mono);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .card.wide {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 52px;
    }
}

@media (max-width: 640px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .card.tall {
        grid-row: span 1;
    }

    .hero h1 {
        font-size: 38px;
    }

    .container {
        padding: 0 20px;
    }

    .article-wrap {
        padding: 60px 20px;
    }

    .article-wrap h1 {
        font-size: 36px;
    }
}