/* HDCode Soluções Web — design system (dark premium tech) */
:root {
  --radius: 0.875rem;
  --background: oklch(0.145 0.022 264);
  --foreground: oklch(0.97 0.006 250);
  --primary: oklch(0.62 0.196 256);
  --primary-foreground: oklch(0.99 0 0);
  --primary-glow: oklch(0.74 0.15 232);
  --muted-foreground: oklch(0.7 0.025 258);
  --surface: oklch(0.19 0.025 264);
  --surface-2: oklch(0.24 0.03 264);
  --border: oklch(0.3 0.03 262 / 60%);
  --whatsapp: oklch(0.68 0.17 152);
  --whatsapp-foreground: oklch(0.16 0.02 160);
  --gradient-primary: linear-gradient(135deg, oklch(0.62 0.196 256), oklch(0.74 0.15 232));
  --shadow-elevated: 0 30px 80px -30px oklch(0.1 0.03 264 / 80%);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted-foreground); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.glass {
  background: oklch(0.22 0.028 264 / 55%);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.card-hover { transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s; }
.card-hover:hover { transform: translateY(-4px); border-color: oklch(0.62 0.196 256 / 55%); box-shadow: var(--shadow-elevated); }
.tech-grid {
  background-image:
    linear-gradient(oklch(0.62 0.196 256 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.62 0.196 256 / 7%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 72%);
}
.glow-orb {
  border-radius: 9999px;
  background: radial-gradient(circle, oklch(0.62 0.196 256 / 32%), transparent 70%);
  filter: blur(30px);
}
[data-icon] { display: inline-flex; align-items: center; }
.wa-float .icon-close, .wa-float.expanded .icon-open { display: none !important; }
.abs { position: absolute; pointer-events: none; }
.rel { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .25s, filter .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-xl { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-hero { background: var(--gradient-primary); color: var(--primary-foreground); box-shadow: 0 0 50px -14px oklch(0.62 0.196 256 / 80%); }
.btn-hero:hover { filter: brightness(1.08); }
.btn-whatsapp { background: var(--whatsapp); color: var(--whatsapp-foreground); box-shadow: 0 0 45px -14px oklch(0.68 0.17 152 / 80%); }
.btn-whatsapp:hover { filter: brightness(1.1); }
.btn-glass { background: oklch(0.22 0.028 264 / 60%); border-color: var(--border); color: var(--foreground); backdrop-filter: blur(14px); }
.btn-glass:hover { border-color: oklch(0.62 0.196 256 / 60%); background: oklch(0.26 0.03 264 / 70%); }
.btn-block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: oklch(0.145 0.022 264 / 82%); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.05rem; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--gradient-primary); color: var(--primary-foreground); }
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: none; gap: 1.6rem; font-size: .9rem; }
.nav a { color: var(--muted-foreground); transition: color .2s; }
.nav a:hover { color: var(--foreground); }
.header-cta { display: none; }
.burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: transparent; border: 1px solid var(--border); color: var(--foreground); cursor: pointer; }
.mobile-menu { display: none; padding: 1rem 0 1.5rem; border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu a.mlink { display: block; padding: .7rem 0; color: var(--muted-foreground); }

/* Sections */
section { position: relative; }
.section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-glow); }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); margin: .8rem 0 0; }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }

/* Hero */
.hero { padding: 128px 0 80px; overflow: hidden; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-size: .78rem; color: var(--muted-foreground); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--whatsapp); }
.hero h1 { font-size: clamp(2.15rem, 6vw, 3.6rem); margin: 1.4rem 0 0; }
.hero-sub { margin-top: 1.4rem; max-width: 34rem; color: var(--muted-foreground); font-size: 1.05rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; font-size: .88rem; color: var(--muted-foreground); }
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { width: 16px; height: 16px; color: var(--primary-glow); }
.hero-media { position: relative; border-radius: 26px; padding: 8px; box-shadow: var(--shadow-elevated); }
.hero-media img { border-radius: 20px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border-radius: 18px; padding: 30px 24px; margin-top: 72px; text-align: center; }
.stats .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; }
.stats .lbl { font-size: .8rem; color: var(--muted-foreground); margin-top: .25rem; }

/* Cards */
.grid { display: grid; gap: 22px; }
.card { border-radius: 18px; padding: 26px; height: 100%; display: flex; flex-direction: column; }
.card h3 { font-size: 1.15rem; margin: 1.1rem 0 0; }
.card p { margin-top: .55rem; font-size: .92rem; color: var(--muted-foreground); }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); color: var(--primary-glow); }
.icon-box svg, .card > svg { width: 24px; height: 24px; }
.card > svg { color: var(--primary-glow); }
.check-list { margin-top: 1.2rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--muted-foreground); }
.check-list li { display: flex; align-items: center; gap: .55rem; }
.check-list li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gradient-primary); flex: none; }
.card .btn { margin-top: 1.6rem; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; }
.center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }

/* Portfolio */
.project { border-radius: 18px; overflow: hidden; }
.project figure { margin: 0; overflow: hidden; }
.project img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.project:hover img { transform: scale(1.05); }
.project-body { padding: 24px; }
.project-cat { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-glow); }
.project-body h3 { margin: .5rem 0 0; font-size: 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .25rem .7rem; font-size: .75rem; color: var(--muted-foreground); }

/* Testimonials */
.quote { border-radius: 18px; padding: 26px; display: flex; flex-direction: column; height: 100%; }
.stars { display: flex; gap: .2rem; color: var(--primary-glow); }
.stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 1.2rem 0 0; flex: 1; font-size: .92rem; color: var(--muted-foreground); }
.author { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.author img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.author .name { font-size: .9rem; font-weight: 700; }
.author .role { font-size: .78rem; color: var(--muted-foreground); }

/* CTA blocks */
.cta-box { position: relative; overflow: hidden; border-radius: 26px; padding: 44px 28px; text-align: center; box-shadow: var(--shadow-elevated); }
.cta-box h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
.cta-box p { margin-top: 1rem; color: var(--muted-foreground); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final h2 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
.final p { margin: 1.5rem auto 0; max-width: 38rem; color: var(--muted-foreground); font-size: 1.05rem; }
.final .hero-actions { align-items: center; margin-top: 2.4rem; }

/* FAQ */
.faq-list { border-radius: 18px; overflow: hidden; margin-top: 44px; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; color: inherit; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 20px 22px; cursor: pointer; }
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--primary-glow); transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; font-size: .92rem; color: var(--muted-foreground); }

/* Contact */
.contact-grid { display: grid; gap: 22px; margin-top: 48px; }
form.glass { border-radius: 18px; padding: 26px; }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: oklch(0.19 0.025 264 / 80%); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1rem; color: var(--foreground); font: inherit; font-size: .93rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: oklch(0.62 0.196 256 / 75%); box-shadow: 0 0 0 3px oklch(0.62 0.196 256 / 18%); }
.form-note { margin-top: .9rem; font-size: .78rem; color: var(--muted-foreground); }
.info-card { border-radius: 18px; padding: 26px; }
.info-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; font-size: .92rem; color: var(--muted-foreground); }
.info-row svg { width: 18px; height: 18px; flex: none; color: var(--primary-glow); margin-top: 3px; }
.seals { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.seals li { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; font-size: .78rem; color: var(--muted-foreground); }
.seals svg { width: 14px; height: 14px; color: var(--whatsapp); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: oklch(0.19 0.025 264 / 40%); }
.footer-grid { display: grid; gap: 40px; padding: 60px 0 0; }
.footer h3 { font-size: .9rem; margin: 0; }
.footer ul { margin-top: 1.2rem; display: grid; gap: .7rem; font-size: .9rem; color: var(--muted-foreground); }
.footer a:hover { color: var(--foreground); }
.socials { display: flex; gap: .65rem; margin-top: 1.5rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted-foreground); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: space-between; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted-foreground); }

/* WhatsApp float */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.wa-float.show { opacity: 1; transform: none; }
.wa-card { width: 272px; border-radius: 18px; padding: 20px; box-shadow: var(--shadow-elevated); display: none; }
.wa-float.expanded .wa-card { display: block; animation: pop .3s cubic-bezier(.22,1,.36,1); }
.wa-card p.t { font-weight: 700; font-size: .9rem; }
.wa-card p.d { margin-top: .5rem; font-size: .78rem; color: var(--muted-foreground); }
.wa-card a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; margin-top: 1rem; border-radius: 10px; background: var(--whatsapp); color: var(--whatsapp-foreground); font-size: .88rem; font-weight: 700; }
.wa-btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; border: 0; cursor: pointer; background: var(--whatsapp); color: var(--whatsapp-foreground); box-shadow: 0 0 40px -10px oklch(0.68 0.17 152 / 70%); transition: transform .25s; }
.wa-btn:hover { transform: scale(1.06); }
.wa-btn svg { width: 26px; height: 26px; }
.wa-float .icon-close { display: none; }
.wa-float.expanded .icon-open { display: none; }
.wa-float.expanded .icon-close { display: block; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; border-radius: 12px; padding: .8rem 1.1rem; font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; }
  .wa-float { right: 24px; bottom: 24px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 112px 0; }
  .nav, .header-cta { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .hero { padding: 160px 0 112px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cta-box { padding: 56px 64px; text-align: left; }
  .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-grid { grid-template-columns: 1fr .85fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stats .num { font-size: 2.4rem; }
}
