/* ============================================================
   DevStudio — Landing Page
   Tema escuro profissional com detalhes em azul
   ============================================================ */

/* ===== Variáveis ===== */
:root {
  --bg:            #0a0e1a;
  --bg-alt:        #0d1424;
  --surface:       #111a2e;
  --surface-2:     #16203a;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(56, 189, 248, 0.35);

  --text:          #eef2f9;
  --text-muted:    #9aa7bd;
  --text-dim:      #6b7891;

  --blue:          #2563eb;
  --blue-light:    #3b82f6;
  --cyan:          #38bdf8;
  --whatsapp:      #25d366;

  --gradient:      linear-gradient(120deg, #38bdf8, #2563eb 55%, #6366f1);
  --glow:          radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);

  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-blue:   0 12px 40px -12px rgba(37, 99, 235, 0.55);

  --container:     1160px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);

  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-head:     'Sora', 'Inter', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.section__lead  { color: var(--text-muted); font-size: 1.08rem; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Grid ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(37, 99, 235, 0.7); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-strong); background: rgba(56, 189, 248, 0.06); }

.btn--whatsapp { background: var(--whatsapp); color: #062b14; box-shadow: 0 12px 40px -12px rgba(37, 211, 102, 0.6); }
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -10px rgba(37, 211, 102, 0.75); }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff; font-size: 0.85rem; font-weight: 800;
}
.logo__text strong { color: var(--cyan); }

.nav { display: flex; gap: 32px; }
.nav__link { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__link:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: var(--glow);
  pointer-events: none; z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 26px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.85rem; color: var(--cyan); font-weight: 500;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 22px; letter-spacing: -0.02em; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__trust li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--text-muted); }
.hero__trust li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--cyan); font-weight: 700;
}
.hero__trust strong { color: var(--text); font-weight: 600; }

/* Hero visual */
.hero__visual { position: relative; }
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-card__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3a55; }
.code-card__bar span:nth-child(1) { background: #ff5f57; }
.code-card__bar span:nth-child(2) { background: #febc2e; }
.code-card__bar span:nth-child(3) { background: #28c840; }
.code-card__bar em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--text-dim); }
.code-card__body { padding: 22px; font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.86rem; line-height: 1.7; color: #c8d3e8; overflow-x: auto; }
.c-kw  { color: #c084fc; }
.c-cls { color: #38bdf8; }
.c-fn  { color: #60a5fa; }
.c-str { color: #34d399; }
.c-num { color: #fbbf24; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
}
.float-card__icon { font-size: 1.5rem; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.float-card small { color: var(--text-muted); font-size: 0.78rem; }
.float-card--1 { top: -26px; right: -18px; }
.float-card--2 { bottom: -26px; left: -22px; animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== Strip nichos ===== */
.strip { padding: 40px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip__label { text-align: center; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px; }
.strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.strip__list li { color: var(--text-muted); font-weight: 500; font-size: 0.98rem; }

/* ===== Cards: Dores ===== */
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pain-card__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.pain-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pain-card p { color: var(--text-muted); font-size: 0.96rem; }
.pain-card--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(56, 189, 248, 0.06));
  border-color: var(--border-strong);
}

/* ===== Cards: Serviços ===== */
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 13px;
  background: rgba(56, 189, 248, 0.1);
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.96rem; }
.service-card--cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(99, 102, 241, 0.08));
  border-color: var(--border-strong);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.service-card--cta .btn { margin-top: 16px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.step__num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gradient);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; right: -14px;
  width: 28px; height: 2px; background: var(--border-strong);
}

/* ===== Features / Diferenciais ===== */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  font-size: 1.45rem;
}
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.96rem; }

/* ===== Portfólio ===== */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
}
.project-card__tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 13px;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: #fff;
}
.project-card__body { padding: 22px; }
.project-card__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project-card__body p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li {
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem; color: var(--cyan);
}

/* ===== Depoimentos ===== */
.testimonial {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial__stars { color: #fbbf24; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { color: var(--text); font-size: 1.02rem; line-height: 1.65; margin-bottom: 22px; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: #fff;
}
.testimonial figcaption strong { display: block; font-size: 0.98rem; }
.testimonial figcaption small { color: var(--text-muted); font-size: 0.85rem; }

/* ===== CTA final ===== */
.cta-final { position: relative; padding: 110px 0; overflow: hidden; background: var(--bg-alt); }
.cta-final__glow {
  position: absolute; inset: 0; margin: auto;
  width: 700px; height: 700px;
  background: var(--glow);
  pointer-events: none;
}
.cta-final__box {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.04));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 56px 40px;
}
.cta-final__title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.cta-final__text { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta-final__note { margin-top: 18px; font-size: 0.88rem; color: var(--text-dim); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 24px;
  transition: border-color 0.2s var(--ease);
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; font-family: var(--font-head);
  font-weight: 600; font-size: 1.02rem; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--cyan);
  transition: transform 0.25s var(--ease); flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-muted); padding-bottom: 20px; font-size: 0.97rem; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { color: var(--text-muted); font-size: 0.94rem; margin-top: 16px; max-width: 340px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer__bottom p { color: var(--text-dim); font-size: 0.86rem; text-align: center; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s var(--ease);
  animation: pulse-wa 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse-wa {
  0%   { box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Animação de entrada (reveal) ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 70px; }
  .hero__actions .btn { flex: 1; }
  .float-card--1 { right: 0; }
  .float-card--2 { left: 0; }
  .cta-final__box { padding: 40px 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .float-card { display: none; }
}

/* ===== Acessibilidade: reduzir movimento ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
