:root {
  /* Fundo e superfícies */
  --wd-bg: #0A0F14;
  --wd-bg-alt: #111821;
  --wd-card: #18232F;

  /* Cores principais */
  --wd-primary: #1D8CFF;
  --wd-primary-soft: rgba(29, 140, 255, 0.22);

  /* Acento */
  --wd-accent: #2EE7B6;

  /* Tipografia e bordas */
  --wd-text: #F5F9FF;
  --wd-text-muted: #8FA3B8;
  --wd-border: rgba(255, 255, 255, 0.12);

  /* Tipografia e ajustes globais fáceis */
  --wd-font-family-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Tamanho base (aumente/diminua aqui para escalar quase tudo) */
  --wd-font-size-base: 1.08rem;

  /* Derivados do base */
  --wd-font-size-sm: 1.04rem;
  --wd-font-size-xs: 0.86rem;
  --wd-font-size-lg: 1.1rem;

  /* Títulos */
  --wd-font-size-h1: clamp(2.2rem, 3.3vw, 2.8rem);
  --wd-font-size-h2: 2rem;
  --wd-font-size-h3: 1.25rem;
  --wd-font-size-h4: 1.1rem;

  /* Altura de linha */
  --wd-line-height-base: 1.65;
  --wd-line-height-tight: 1.35;
}

/* Reset simples */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--wd-font-family-base);
  font-size: var(--wd-font-size-base);
  line-height: var(--wd-line-height-base);
  background: radial-gradient(circle at top, #101637 0, #050816 55%);
  color: var(--wd-text);
}

img {
  max-width: 100%;
  display: block;
}

/* Container padrão */
.wd-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header e navegação */
.wd-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.wd-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wd-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--wd-primary), var(--wd-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--wd-font-size-xs);
}

.wd-logo-text {
  font-weight: 600;
  font-size: var(--wd-font-size-sm);
  letter-spacing: 0.04em;
}

.wd-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wd-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wd-nav a {
  font-size: var(--wd-font-size-sm);
  text-decoration: none;
  color: var(--wd-text-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.wd-nav a:hover {
  color: var(--wd-primary);
  transform: translateY(-1px);
}

.wd-nav a.active {
  color: var(--wd-primary);
  font-weight: 600;
}

.wd-lang-switch {
  font-size: var(--wd-font-size-xs);
  opacity: 0.9;
}

.wd-lang-switch a {
  text-decoration: none;
  color: var(--wd-text-muted);
  transition: color 0.15s ease;
}

.wd-lang-switch a:hover {
  color: var(--wd-primary);
}

.wd-lang-switch .current {
  font-weight: 600;
  color: var(--wd-primary);
}

/* BOTÃO HAMBURGUER */

.wd-menu-toggle {
  display: none; 
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 8, 22, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column; 
  padding: 0;
}

.wd-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--wd-text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.wd-menu-toggle span + span {
  margin-top: 4px;
}

/* Animação quando aberto */
.wd-nav-wrapper.is-open .wd-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.wd-nav-wrapper.is-open .wd-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.wd-nav-wrapper.is-open .wd-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* AJUSTES MOBILE DO MENU */

@media (max-width: 900px) {
  .wd-header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.4rem 0;
  }

  .wd-nav-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
  }

  .wd-menu-toggle {
    display: inline-flex;
    order: -1;
  }

  .wd-nav {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #0b111a;
    border: 1px solid var(--wd-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 190px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
    display: none; 
    z-index: 30;
    order: 1;
    width: auto;
  }

  .wd-nav-wrapper.is-open .wd-nav {
    display: flex; 
  }

  .wd-nav a {
    font-size: var(--wd-font-size-sm);
    white-space: nowrap;
    padding: 0.4rem 0.2rem;
  }

  .wd-lang-switch {
    font-size: var(--wd-font-size-xs);
    order: 0;
    margin-left: auto;
  }
}

/* Hero */
.wd-hero {
  padding: 4.5rem 0 3.5rem;
}

.wd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.wd-hero-text h1 {
  font-size: var(--wd-font-size-h1);
  line-height: var(--wd-line-height-tight);
  margin-bottom: 1.2rem;
}

.wd-hero-text p {
  font-size: var(--wd-font-size-base);
  line-height: var(--wd-line-height-base);
  color: var(--wd-text-muted);
}

.wd-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 0.5rem;
}

.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-size: var(--wd-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wd-btn-primary {
  background: linear-gradient(135deg, var(--wd-primary), var(--wd-accent));
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.wd-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.wd-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--wd-text);
}

.wd-btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wd-hero-note {
  margin-top: 0.8rem;
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
}

/* Hero media */
.wd-hero-media {
  display: flex;
  justify-content: center;
}

.wd-hero-card {
  background: linear-gradient(145deg, #11152e, #050816);
  border-radius: 20px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  max-width: 360px;
  width: 100%;
}

.wd-hero-tag {
  display: inline-block;
  padding: 0.12rem 0.8rem;
  border-radius: 999px;
  font-size: var(--wd-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wd-primary);
  background: var(--wd-primary-soft);
  margin-bottom: 0.8rem;
}

.wd-hero-screen {
  border-radius: 14px;
  background: radial-gradient(circle at top left, #20274a 0, #0a0d1f 55%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem;
}

.wd-hero-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wd-primary), var(--wd-accent));
  margin-bottom: 0.8rem;
}

.wd-hero-lines {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.wd-hero-lines span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.wd-hero-lines span:nth-child(1) { width: 88%; }
.wd-hero-lines span:nth-child(2) { width: 72%; }
.wd-hero-lines span:nth-child(3) { width: 64%; }
.wd-hero-lines span:nth-child(4) { width: 53%; }

.wd-hero-footer {
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(14, 155, 207, 0.2), rgba(209, 46, 120, 0.1));
}

.wd-hero-caption {
  margin-top: 0.7rem;
  font-size: var(--wd-font-size-xs);
  color: var(--wd-text-muted);
}

/* Seções gerais */
.wd-section {
  padding: 3.5rem 0;
}

.wd-section-alt {
  background: radial-gradient(circle at top, #0c1026 0, #050816 60%);
}

.wd-section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.wd-section-header h2 {
  font-size: var(--wd-font-size-h2);
  margin-bottom: 0.4rem;
}

.wd-section-header p {
  color: var(--wd-text-muted);
  font-size: var(--wd-font-size-sm);
}

/* Grades e cards */
.wd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.wd-card {
  background: var(--wd-card);
  border-radius: 18px;
  padding: 1.6rem;
  border: 1px solid var(--wd-border);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

.wd-card h3,
.wd-card h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: var(--wd-font-size-h3);
}

.wd-card h4 {
  font-size: var(--wd-font-size-h4);
}

.wd-card-tag {
  font-size: var(--wd-font-size-xs);
  color: var(--wd-text-muted);
  margin-bottom: 0.8rem;
}

.wd-card-tag-highlight {
  color: var(--wd-primary);
}

.wd-card p {
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
  line-height: var(--wd-line-height-base);
  margin-bottom: 0.9rem;
}

/* Lista padrão de features */
.wd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
  margin-bottom: 0.4rem;
}

.wd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--wd-primary);
}

/* Passo a passo */
.wd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.wd-steps-single {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wd-step {
  background: rgba(5, 8, 22, 0.8);
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid var(--wd-border);
}

.wd-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--wd-primary-soft);
  color: var(--wd-primary);
  font-weight: 600;
  font-size: var(--wd-font-size-xs);
  margin-bottom: 0.6rem;
}

.wd-step h3 {
  margin: 0 0 0.4rem;
  font-size: var(--wd-font-size-sm);
}

.wd-step p {
  margin: 0;
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
}

/* Portfólio */
.wd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.wd-portfolio-card {
  background: var(--wd-card);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid var(--wd-border);
}

.wd-portfolio-card-placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
}

.wd-portfolio-label {
  font-size: var(--wd-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wd-text-muted);
  margin-bottom: 0.3rem;
}

.wd-portfolio-desc {
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
}

.wd-portfolio-desc a {
  color: var(--wd-primary);
  text-decoration: underline;
}

.wd-portfolio-desc a:visited {
  color: var(--wd-primary);
}

.wd-portfolio-desc a:hover {
  color: var(--wd-accent);
}

.wd-portfolio-cta {
  margin-top: 2rem;
  text-align: center;
}

/* Preços */
.wd-pricing-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--wd-text-muted);
  font-size: var(--wd-font-size-sm);
}

.wd-region-heading {
  font-size: var(--wd-font-size-lg);
  margin-bottom: 1.2rem;
}

.wd-pricing-note {
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
  margin-bottom: 0.7rem;
}

.wd-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.6rem 0 0.2rem;
}

.wd-price span {
  font-size: var(--wd-font-size-xs);
  color: var(--wd-text-muted);
  margin-left: 0.25rem;
}

.wd-alert-note {
  background: rgba(255, 138, 60, 0.12); 
  border-left: 4px solid var(--wd-accent);
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  border-radius: 6px;
  color: var(--wd-text);
  line-height: var(--wd-line-height-base);
  font-size: var(--wd-font-size-sm);
}

.wd-alert-note strong {
  color: var(--wd-accent);
}

/* Formulário de contacto */
.wd-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-form-row,
.wd-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wd-form-group label,
.wd-form-row label {
  font-size: var(--wd-font-size-sm);
  color: var(--wd-text-muted);
}

.wd-form-group input,
.wd-form-group textarea,
.wd-form-row input,
.wd-form-row textarea,
.wd-form-row select {
  border-radius: 10px;
  border: 1px solid var(--wd-border);
  padding: 0.7rem 0.85rem;
  background: rgba(5, 8, 22, 0.9);
  color: var(--wd-text);
  font-size: var(--wd-font-size-sm);
  outline: none;
}

.wd-form-group input:focus,
.wd-form-group textarea:focus,
.wd-form-row input:focus,
.wd-form-row textarea:focus,
.wd-form-row select:focus {
  border-color: var(--wd-primary);
  box-shadow: 0 0 0 1px rgba(14, 155, 207, 0.4);
}

/* Footer */
.wd-footer {
  border-top: 1px solid var(--wd-border);
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.wd-footer-inner {
  text-align: center;
}

.wd-footer p {
  margin: 0.1rem 0;
  font-size: var(--wd-font-size-xs);
  color: var(--wd-text-muted);
}

/* Animações de entrada */
.wd-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wd-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botão voltar ao topo */
.wd-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--wd-primary), var(--wd-accent));
  color: #ffffff;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

.wd-back-top.visible {
  display: flex;
}

.wd-back-top:hover {
  transform: translateY(-1px);
}

/* Ajustes responsivos (grids e layouts) */
/* A lógica do menu está mais acima, aqui ajustamos apenas o grid das páginas */
@media (max-width: 900px) {
  .wd-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-hero {
    padding-top: 3.5rem;
  }

  .wd-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Ajuste leve das cards em seções alternadas em telas maiores */
@media (min-width: 901px) {
  .wd-section-alt .wd-card {
    min-height: 180px;
  }
}

/* Classe CSS usada na página de obrigado / thank you */
.wd-center-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--wd-bg);
  color: var(--wd-text);
  text-align: center;
  padding: 2rem 1.5rem;
}

.wd-center-page h2 {
  font-size: var(--wd-font-size-h2);
  margin-bottom: 0.75rem;
}

.wd-center-page p {
  margin-bottom: 1.5rem;
  color: var(--wd-text-muted);
  font-size: var(--wd-font-size-sm);
}

/* Honeypot (campo anti-spam) */
.wd-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}
