/* =====================================================================
   Kalsites — Folha de estilo do site público
   Visual: dark neon / futurista

   Organização:
     1. Fontes            6. Cabeçalho e navegação
     2. Variáveis         7. Hero 3D
     3. Reset             8. Seções e cards
     4. Tipografia        9. Formulários
     5. Botões           10. Rodapé, animações, responsivo
   ===================================================================== */

/* 1. Fontes ------------------------------------------------------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variáveis ---------------------------------------------------- */

:root {
  /* Fundo em três profundidades */
  --bg:            #05050f;
  --bg-soft:       #0a0a1c;
  --bg-elevated:   #10102a;

  /* Vidro: superfície e borda */
  --glass:         rgba(255, 255, 255, 0.035);
  --glass-strong:  rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-bright: rgba(167, 139, 250, 0.35);

  /* Texto */
  --text:          #ecebff;
  --text-muted:    #9d9cc0;
  --text-dim:      #6f6e92;

  /* Neon */
  --violet:        #8b5cf6;
  --violet-light:  #a78bfa;
  --cyan:          #22d3ee;
  --pink:          #f472b6;

  --gradient:      linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.16));

  --glow-violet:   0 0 40px rgba(139, 92, 246, 0.35);
  --glow-cyan:     0 0 40px rgba(34, 211, 238, 0.28);

  /* Sombras */
  --shadow-sm:     0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md:     0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 30px 80px rgba(0, 0, 0, 0.55);

  /* Medidas */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --container:     1200px;
  --header-h:      76px;

  --font-display:  'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --transition:    0.4s var(--ease);
}

/* 3. Reset -------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Compensa o cabeçalho fixo ao pular para uma âncora. */
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  /* Fica no <html>, não no <body>: em body isto o transforma em container
     de rolagem em alguns navegadores, e aí window.scrollY trava em zero —
     quebrando o cabeçalho que reage ao scroll e a câmera do hero 3D. */
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Brilho difuso de fundo, fixo, que dá profundidade sem custo de render. */
  background-image:
    radial-gradient(900px 600px at 12% -5%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(800px 500px at 88% 8%, rgba(34, 211, 238, 0.11), transparent 60%);
  background-attachment: fixed;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

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

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

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

/* Barra de rolagem combinando com o tema */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--cyan));
  border-radius: 10px;
  border: 3px solid var(--bg);
}

/* 4. Tipografia --------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Sem isto, descendentes (g, y, p) são cortados em alguns navegadores. */
  padding-bottom: 0.08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gradient);
}

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 18px; font-size: 1.08rem; }

section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }

/* 5. Botões ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(139, 92, 246, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* Links do menu não devem sobrescrever botões dentro da nav. */
.nav a.btn,
.header-actions a.btn {
  color: #ffffff;
}

.nav a.btn::after {
  display: none;
}

/* Brilho que atravessa o botão ao passar o mouse. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(139, 92, 246, 0.5); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  background: var(--glass-strong);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

/* Link com seta que desliza */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-light);
  font-weight: 500;
  font-family: var(--font-display);
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover { gap: 14px; color: var(--cyan); }

/* 6. Cabeçalho ---------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition),
              backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

/* Só ganha fundo depois que a página rola — o hero fica limpo no topo. */
.site-header.scrolled {
  background: rgba(5, 5, 15, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-img {
  display: block;
  width: auto;
  height: 38px;
  transition: transform 0.5s var(--ease);
}

.logo:hover .logo-img { transform: scale(1.03); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #08081a;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--glow-violet);
  transition: transform 0.5s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  position: relative;
  padding: 9px 15px;
  font-size: 0.94rem;
  color: var(--text-muted);
  border-radius: 9px;
  transition: color var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;
  height: 1.5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.menu-toggle span + span { margin-top: 5px; }

.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. Hero 3D ------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* O canvas do Three.js fica atrás de todo o conteúdo do hero. */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
#hero-canvas.ready { opacity: 1; }

/* Fallback animado em CSS: entra quando o WebGL não está disponível. */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(600px 600px at 70% 40%, rgba(139, 92, 246, 0.35), transparent 65%),
    radial-gradient(500px 500px at 30% 70%, rgba(34, 211, 238, 0.28), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.no-webgl .hero-fallback { display: block; }

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 { margin-bottom: 24px; }

.hero h1 .highlight {
  position: relative;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* Risco neon sob a palavra destacada */
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
  opacity: 0.5;
  filter: blur(1px);
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 560px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 58px);
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 8px;
  max-width: 150px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-hint .line {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--violet), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-hint .line::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 40%;
  background: var(--cyan);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* 8. Cards e seções ----------------------------------------------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Card base com brilho que segue o cursor (var --mx/--my vem do JS). */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.16),
    transparent 45%
  );
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-7px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  color: var(--violet-light);
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease), color var(--transition);
}

.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-6deg); color: var(--cyan); }

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.96rem; }

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover { color: var(--cyan); }

.card-more {
  display: inline-flex;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet-light);
  text-decoration: none;
}

.card-more:hover { color: var(--cyan); }

.service-anchor { scroll-margin-top: calc(var(--header-h) + 24px); }

.card-list { margin-top: 20px; display: grid; gap: 10px; }

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2322d3ee' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 5'/%3E%3C/svg%3E");
  background-size: cover;
}

/* --- Cards de projeto --- */

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: block;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #14142e, #0b0b1e);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.project-card:hover .project-thumb img { transform: scale(1.07); }

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 15, 0.92) 5%, transparent 55%);
}

.project-body { padding: 26px; }

.project-category {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 14px;
}

.project-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.project-body p { font-size: 0.93rem; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.tag {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Filtro de categorias do portfólio */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 46px; }

.filter-bar a {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-bar a:hover { border-color: var(--border-bright); color: var(--text); }

.filter-bar a.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #0a0a18;
  font-weight: 600;
}

/* --- Cards de plano --- */

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.plan-card:hover { transform: translateY(-8px); border-color: var(--border-bright); }

/* O plano em destaque ganha borda em gradiente e escala maior. */
.plan-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--glow-violet), var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 100px;
  background: var(--gradient);
  color: #0a0a18;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.plan-tagline { font-size: 0.9rem; color: var(--text-dim); margin-top: 6px; }

.plan-pricing {
  margin: 26px 0 8px;
  display: grid;
  gap: 0;
}

.plan-price { margin: 0; display: block; }
.plan-price-note { font-size: 0.82rem; color: var(--text-dim); width: 100%; margin-bottom: 6px; display: block; }

.plan-price-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-price .value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-price--hosting {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.plan-price--hosting .value {
  font-size: 1.75rem;
}

.plan-price .period { font-size: 0.88rem; color: var(--text-dim); }

.plan-features { margin: 28px 0; display: grid; gap: 12px; flex-grow: 1; }

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-features svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--cyan); }

/* --- Depoimentos --- */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), border-color var(--transition);
}

.testimonial:hover { transform: translateY(-6px); border-color: var(--border-bright); }

.stars { display: flex; gap: 3px; color: var(--cyan); }
.stars svg { width: 16px; height: 16px; }

.testimonial blockquote { font-size: 0.99rem; color: var(--text-muted); line-height: 1.75; }
.testimonial blockquote::before { content: '“'; color: var(--violet); font-size: 1.4em; line-height: 0; }

.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #0a0a18;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { font-size: 0.83rem; color: var(--text-dim); }

/* --- Bloco sobre --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-visual { position: relative; }

.about-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, #15153a, #0a0a1e);
  box-shadow: var(--shadow-lg);
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Cubo 3D em CSS puro, para quando não há imagem enviada. */
.about-cube-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.cube {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}

.cube div {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-bright);
  background: rgba(139, 92, 246, 0.07);
  backdrop-filter: blur(3px);
}

.cube .f1 { transform: translateZ(75px); }
.cube .f2 { transform: rotateY(180deg) translateZ(75px); }
.cube .f3 { transform: rotateY(90deg) translateZ(75px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(75px); }
.cube .f5 { transform: rotateX(90deg) translateZ(75px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(75px); }

@keyframes spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}

.values-list { display: grid; gap: 16px; margin-top: 32px; }

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: border-color var(--transition), transform var(--transition);
}

.values-list li:hover { border-color: var(--border-bright); transform: translateX(6px); }
.values-list svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

/* --- Faixa de CTA --- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.1));
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, rgba(139, 92, 246, 0.16) 90deg,
    transparent 180deg, rgba(34, 211, 238, 0.16) 270deg, transparent 360deg
  );
  animation: rotate 16s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* 9. Formulários -------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.form-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.field .required { color: var(--pink); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
}

.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

/* Select customizado — menu integrado ao input */
.custom-select {
  position: relative;
}

.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.96rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition), border-radius var(--transition);
}

.custom-select-trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.custom-select.is-open .custom-select-trigger {
  border-color: var(--violet);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select.is-open .custom-select-trigger svg {
  transform: rotate(180deg);
  color: var(--violet-light);
}

.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--violet);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(8, 8, 22, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.94rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.custom-select-option:hover,
.custom-select-option.is-focused {
  background: rgba(139, 92, 246, 0.14);
  color: #fff;
}

.custom-select-option.is-selected {
  background: rgba(139, 92, 246, 0.22);
  color: var(--violet-light);
}

.field.has-error .custom-select-trigger {
  border-color: var(--pink);
}

.field.has-error .custom-select.is-open .custom-select-menu {
  border-color: var(--pink);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--pink); }

.field-error { display: block; margin-top: 7px; font-size: 0.82rem; color: var(--pink); }
.field-hint { display: block; margin-top: 7px; font-size: 0.82rem; color: var(--text-dim); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Honeypot: fora da tela, invisível para gente e leitor de tela. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Alertas */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 19px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.93rem;
  border: 1px solid;
}

.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34, 211, 238, 0.09); border-color: rgba(34, 211, 238, 0.32); color: #a5f3fc; }
.alert-error   { background: rgba(244, 114, 182, 0.09); border-color: rgba(244, 114, 182, 0.32); color: #fbcfe8; }
.alert-info    { background: rgba(139, 92, 246, 0.09); border-color: rgba(139, 92, 246, 0.32); color: #ddd6fe; }

/* Blocos de informação de contato */
.contact-info { display: grid; gap: 18px; margin-top: 34px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-item:hover { border-color: var(--border-bright); transform: translateX(6px); }

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  color: var(--violet-light);
  flex-shrink: 0;
}

.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item .label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .value { font-weight: 500; font-size: 0.98rem; }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #06210f;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* 10. Página de projeto ------------------------------------------- */

.project-hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 20px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--violet-light); }

.project-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 44px 0;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(140deg, #15153a, #0a0a1e);
  aspect-ratio: 16 / 9;
}

.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  margin-bottom: 46px;
}

.project-meta .label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.project-meta .value { font-weight: 600; margin-top: 5px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 42px 0 16px; }
.prose p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.8; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 46px; }

.gallery img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.gallery img:hover { transform: scale(1.02); border-color: var(--border-bright); }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 40px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

/* 11. Rodapé ------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 3, 10, 0.6);
  padding: 70px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 50px;
}

.footer-brand p { font-size: 0.92rem; margin-top: 18px; max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.93rem; color: var(--text-muted); transition: color var(--transition), padding-left var(--transition); }
.footer-col a:hover { color: var(--violet-light); padding-left: 5px; }

.socials { display: flex; gap: 11px; margin-top: 20px; }

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.socials a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #0a0a18;
  transform: translateY(-4px);
}

.socials svg { width: 19px; height: 19px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-bottom a:hover { color: var(--violet-light); }

/* 12. Página de erro ---------------------------------------------- */

.error-page {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--header-h);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

/* 13. Animações de entrada ---------------------------------------- */

/* O JS troca .reveal por .is-visible quando o elemento entra na tela. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader .ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--violet);
  border-right-color: var(--cyan);
  animation: rotate 0.9s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 70px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--glass);
}

.empty-state h3 { margin-bottom: 10px; }

/* 14. Responsivo -------------------------------------------------- */

@media (max-width: 980px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: grid; }

  /* Menu vira painel deslizante de cima. */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 24px 30px;
    background: rgba(5, 5, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }

  .header-actions .btn { display: none; }
  .nav .btn { display: inline-flex; margin-top: 14px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 70px); padding-bottom: 90px; }
  .scroll-hint { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .project-meta { padding: 24px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .card { padding: 26px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-label { max-width: none; }
}

/* 15. Acessibilidade e impressão ---------------------------------- */

/* Quem pediu menos movimento recebe o site inteiro parado. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .cube, .cta-band::before, .hero-fallback { animation: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--violet);
  color: #fff;
  border-radius: 0 0 10px 0;
}

.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .whatsapp-float, #hero-canvas, .preloader { display: none; }
}
