:root {
    --bg: #0A0E1A;
    --surface: #111827;
    --border: #1F2937;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --accent: #F43F5E;
    --text: #F9FAFB;
    --muted: #9CA3AF;
    --max: 1140px;
    --radius: 16px;
    --glow: 0 0 0 1px rgba(59,130,246,0.25), 0 8px 30px rgba(59,130,246,0.35);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--muted);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

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

section { padding: 70px 0; position: relative; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin-bottom: 48px;
    max-width: 720px;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(10,14,26,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.logo span { color: var(--primary); }
.color-blue { color: var(--primary); }
.nav-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.3s, background 0.3s;
}
.nav-cta:hover { border-color: var(--primary); background: rgba(59,130,246,0.08); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.4), 0 14px 40px rgba(59,130,246,0.45);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: rgba(59,130,246,0.06); }

/* ---------- Hero ---------- */
.hero {
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 85vh;
    padding-top: 160px;
    padding-bottom: 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 700px;
    background: radial-gradient(circle at center, rgba(59,130,246,0.20) 0%, rgba(59,130,246,0.05) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 800;
    max-width: 860px;
    margin: 0 auto 24px;
}
.hero p.sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    max-width: 660px;
    margin: 0 auto 40px;
    color: var(--muted);
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.microcopy {
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.85;
}

/* ---------- Grid generic ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: rgba(17,24,39,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}


/* ---------- Services ---------- */
.services .grid-4 { grid-auto-rows: 1fr; }
.service-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(17,24,39,0.6));
    border-color: rgba(59,130,246,0.35);
}
.service-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--primary); }

/* ---------- Differentials ---------- */
.diff-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.diff-item { display: flex; gap: 14px; align-items: flex-start; }
.diff-item svg { width: 26px; height: 26px; stroke: var(--primary); flex-shrink: 0; margin-top: 2px; }
.diff-item strong { color: var(--text); display: block; font-size: 1rem; margin-bottom: 4px; }
.diff-item span { font-size: 0.9rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 8px; }
.step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(59,130,246,0.25);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.project:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.4); }
.project-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}
.project-body { padding: 22px; }
.project-body .seg { font-size: 0.78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.project-body h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.project-body p { font-size: 0.9rem; }
.project-body a.proj-link,
.project-body button.proj-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; color: var(--primary); font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.project-body a.proj-link:hover,
.project-body button.proj-link:hover { color: var(--accent); } /* acento coral RARO (1) */    
.badge-demo {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(244,63,94,0.12);
    color: var(--accent); /* acento coral RARO (2 e 3) */
    border: 1px solid rgba(244,63,94,0.3);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about-photo {
    width: 240px; height: 240px;
    border-radius: 50%;
    margin: 0 auto;
    /* SUBSTITUIR: foto real do Gustavo dentro deste círculo (background-image ou <img>) */
    background: linear-gradient(135deg, #1a2238, #0d1424);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.about-text p { margin-bottom: 18px; font-size: 1.02rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Plans ---------- */
#planos{
    color: white;
}
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 26px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.4); }
.plab { padding: 22px; }
.plan .seg { font-size: 0.78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.plan h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.plan p { font-size: 0.9rem; }
.plan a.proj-link,
.plan button.proj-link { display: inline-block; margin-top: 14px; font-size: 0.88rem; color: var(--primary); font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.plan a.proj-link:hover,
.plan button.proj-link:hover { color: var(--accent); } /* acento coral RARO (1) */    
.badge-demo {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(244,63,94,0.12);
    color: var(--accent); /* acento coral RARO (2 e 3) */
    border: 1px solid rgba(244,63,94,0.3);
}
.plan-card--hi {
    background: var(--glow);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 18px 50px -20px rgba(34, 91, 197, 0.43);
}
.plan-tag { text-align: left; font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; min-height: 40px; }
 
.plan-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px auto; }
.plan-from { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-price {
    font-size: clamp(34px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.03em;
    line-height: 1; font-variant-numeric: tabular-nums;
}
.plan-price small{ 
    font-size: 18px;
    font-weight: 700;
    opacity: .7;
    margin-right: 2px;
}
.plan-rule {
    height: 1px;
    background: var(--primary);
    margin: 24px 0;
    border: 0;
}
.plan-feats {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.plan-check {
    flex: 0 0 auto;
    margin-top: 1px;
}
.plan-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: background .2s ease, color .2s ease, transform .1s ease;
    cursor: pointer;
}
.plan-cta--solid:hover {
    
    background: var(--primary-hover);
}
.plan-cta--solid {
    background: var(--primary);
    border-color: var(--primary);
    color: #06210F;
}
.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #06210F;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
/* add-ons + nota */
.plan-foot { margin-top: clamp(34px, 4vw, 48px); text-align: center; }
.plan-addons {
display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
gap: 10px; margin-bottom: 18px;
}
.plan-addons-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-pill {
font-size: 13px; color: var(--muted);
border: 1px solid var(--muted); border-radius: 999px; padding: 6px 13px;
background: rgba(255, 255, 255, .015);
}
.plan-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* responsivo */
@media (max-width: 920px) {
.plan-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 18px; }
.plan-tag { min-height: 0; }
.plan-card--hi { order: -1; } /* recomendado primeiro no mobile */
}

@media (prefers-reduced-motion: reduce) {
.plan-card, .plan-cta { transition: none; }
.plan-card:hover { transform: none; }
}


/* ---------- Testimonials ---------- */
.testi-card { font-size: 1rem; }
.testi-card blockquote { color: var(--text); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }
.testi-card .who { font-size: 0.88rem; color: var(--muted); }
.testi-card .who strong { color: var(--text); }
.testi-note { text-align: center; margin-top: 28px; font-size: 0.88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; }
details {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    color: var(--text);
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary .chev {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: var(--primary);
}
details[open] summary .chev { transform: rotate(180deg); }
details p { padding: 0 0 22px; font-size: 0.98rem; max-width: 660px; }

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    background: radial-gradient(circle at center, rgba(59,130,246,0.15) 0%, transparent 70%), var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.final-cta h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); max-width: 680px; margin: 0 auto 20px; }
.final-cta p { max-width: 540px; margin: 0 auto 36px; font-size: 1.1rem; }
.final-cta .btn { font-size: 1.1rem; padding: 18px 36px; }

/* ---------- Footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; margin-bottom: 36px; }
.footer-brand .logo { font-size: 1.2rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { font-size: 0.82rem; color: var(--muted); opacity: 0.75; }

/* ---------- Intro / preloader ---------- */
#intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}
#intro .intro-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    transition: opacity 0.7s ease 0.1s;
}
/* máscara das linhas do H1 */
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line-inner {
    display: block;
    will-change: transform;
}
/* estado inicial quando a intro está ativa */
body.intro-active { overflow: hidden; }
body.intro-active header,
body.intro-active .hero .eyebrow,
body.intro-active .hero-actions,
body.intro-active .hero .microcopy {
    opacity: 0;
}
body.intro-active .hero-title {
    /* desloca o título para o centro vertical da viewport */
    transform: translateY(var(--intro-shift, 32vh));
}
body.intro-active .hero-title .line-inner {
    transform: translateY(110%);
}

/* sequência de animação */
body.intro-play .hero-title .line-inner {
    transform: translateY(0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
body.intro-play .hero-title .line:nth-child(2) .line-inner {
    transition-delay: 0.12s;
}
/* depois do reveal, o título desce para a posição natural */
body.intro-settle .hero-title {
    transform: translateY(0);
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
body.intro-settle header,
body.intro-settle .hero .eyebrow,
body.intro-settle .hero-actions,
body.intro-settle .hero .microcopy {
    opacity: 1;
    transition: opacity 0.7s ease;
}
body.intro-settle .hero .eyebrow { transition-delay: 0.15s; }
body.intro-settle .hero .sub { transition-delay: 0.28s; }
body.intro-settle .hero-actions { transition-delay: 0.40s; }
body.intro-settle .hero .microcopy { transition-delay: 0.52s; }
body.intro-settle #intro .intro-bg { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    #intro { display: none; }
    body.intro-active,
    body.intro-active header,
    body.intro-active .hero * { opacity: 1 !important; transform: none !important; overflow: visible !important; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
    .services .service-card.featured { grid-column: span 2; }
    .diff-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .plans-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .about-photo { margin-bottom: 8px; }
}
@media (max-width: 560px) {
    section { padding: 72px 0; }
    .grid.grid-4, .grid.grid-2, .diff-grid, .process-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .services .service-card.featured { grid-column: span 1; }
    .hero { padding-top: 130px; }
    .nav-cta { display: none; }
    .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
}
.bg-mgomes{
    background-size: cover;
    background-image: url("./src/imgs/mgomes.png");
}
.bg-pgeditorial{
    background-size: cover;
    background-image: url("./src/imgs/pgeditorial.png");
}
.bg-delakay{
    background-size: cover;
    background-image: url("./src/imgs/delakay.png");
}
.bg-almeida-castro{
    background-size: cover;
    background-image: url("./src/imgs/almeida-castro.png");
}
.bg-vertice-ink{
    background-size: cover;
    background-image: url("./src/imgs/vertice-ink.png");
}
    