:root {
    --brand-primary: #1a237e;
    --brand-secondary: #ffb300;
    --bg: #0b1020;
    --surface: #111733;
    --text: #e6e8ee;
    --muted: #aab1c6;
    --card: #0f1530;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(26,35,126,.35), transparent),
                radial-gradient(800px 400px at 90% 10%, rgba(255,179,0,.18), transparent),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,16,32,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--brand-primary); color: var(--brand-secondary); font-weight: 700; }
.brand-text { font-weight: 600; letter-spacing: 0.3px; }

.nav { position: relative; }
.nav-toggle { display: none; background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15); padding: 6px 10px; border-radius: 6px; }
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; opacity: .9; }
.nav-list a:hover { color: var(--brand-secondary); }
.btn-sm { padding: 8px 12px; border-radius: 8px; }

/* Hero */
.hero { position: relative; min-height: 56vh; display: grid; align-items: center; isolation: isolate; }
.hero-media { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?q=80&w=2200&auto=format&fit=crop') center/cover no-repeat; filter: brightness(.45) saturate(1.1); z-index: -1; }
.hero::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,.4) 0%, rgba(11,16,32,.9) 75%); z-index: -1; }
.hero-content { padding: 56px 0; text-align: left; }
.headline { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: .1px; margin: 0 0 10px; font-weight: 600; }
.subhead { font-size: clamp(14px, 1.8vw, 18px); color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; color: #d7d9e4; opacity: .9; font-size: 13px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-secondary), #ffc94d); color: #1a1400; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(.95); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.btn-secondary:hover { background: rgba(255,255,255,0.13); }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-size: clamp(24px, 3vw, 36px); margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 720px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-body { padding: 16px 16px 18px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0; color: var(--muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.portfolio-item { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.portfolio-item img { width: 100%; height: 220px; object-fit: cover; object-position: center top; display: block; filter: saturate(1.1); }
.portfolio-info { padding: 16px; }
.portfolio-info h3 { margin: 0 0 6px; font-size: 18px; }
.portfolio-info p { margin: 0; color: var(--muted); }
.portfolio-actions { margin-top: 10px; }

/* Tecnologias */
.logos-grid { display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); align-items: center; gap: 18px; filter: grayscale(15%); }
.logos-grid img { width: 100%; max-width: 88px; justify-self: center; background: rgba(255,255,255,0.06); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); }

/* Depoimentos */
.depoimentos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.depoimento { background: var(--card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.depoimento .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 10px; }
.depoimento blockquote { margin: 0 0 6px; font-style: italic; color: var(--text); }
.depoimento cite { color: var(--muted); font-style: normal; }

/* Formulário */
.form { max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { width: 100%; background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; transition: border .15s ease, box-shadow .15s ease; }
.form input::placeholder, .form textarea::placeholder { color: #b9bfd3; }
.form input:focus, .form textarea:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(255,179,0,0.15); }
.form-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
.form-feedback { margin-top: 10px; font-weight: 600; }

/* Contact channels */
.contact-channels { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 8px; }
.contact-channels .chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.contact-channels .chip:hover { background: rgba(255,255,255,0.13); }

/* Footer */
.site-footer { background: #0a0f20; border-top: 1px solid rgba(255,255,255,0.06); padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.footer-about { color: var(--muted); margin: 10px 0 0; max-width: 520px; }
.footer-contact { display: grid; gap: 6px; margin: 10px 0 0; }
.footer-contact a { color: var(--text); text-decoration: none; opacity: .9; }
.footer-contact a:hover { color: var(--brand-secondary); }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: var(--text); text-decoration: none; opacity: .85; }
.footer-nav a:hover { color: var(--brand-secondary); }
.copyright { grid-column: 1 / -1; margin: 22px 0 0; color: var(--muted); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WhatsApp Floating Button */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 56px !important; height: 56px !important; min-width: 56px; min-height: 56px; max-width: 56px; max-height: 56px; border-radius: 50%; background: #25D366; box-shadow: 0 8px 22px rgba(0,0,0,.35); display: grid; place-items: center; z-index: 1000; border: 1px solid rgba(0,0,0,.08); transition: transform .15s ease, filter .2s ease; padding: 0; margin: 0; overflow: hidden; line-height: 0; }
.whatsapp-float:hover { transform: translateY(-2px); filter: brightness(1.05); }
.whatsapp-float svg { width: 28px !important; height: 28px !important; display: block; flex: none; }

/* Responsive */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .logos-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
    .hero { min-height: 48vh; }
    .nav-toggle { display: inline-block; }
    .nav-list { position: absolute; right: 0; top: 48px; background: rgba(11,16,32,0.98); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; display: none; flex-direction: column; min-width: 220px; }
    .nav-list.open { display: flex; }
    .btn-sm { display: inline-block; text-align: center; }

    .form-row { grid-template-columns: 1fr; }
    .card-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .depoimentos-grid { grid-template-columns: 1fr; }
    .logos-grid { grid-template-columns: repeat(3, 1fr); }
}
