/* =========================================================
   Codessey — tokens de design
   Layout: faixas alternadas (grafite → branco → lavanda), coluna central de 1120px,
   roxo só como destaque. Visual único de marca (não muda com o tema do sistema).
   ========================================================= */
:root {
  color-scheme: light;

  /* Cores da marca */
  --c-purple: #7542A5;        /* Roxo Codessey: botões, links, destaques */
  --c-purple-600: #633690;    /* hover */
  --c-purple-200: #C9AEE8;    /* roxo claro para texto sobre grafite */
  --c-ink: #252333;           /* Grafite azulado: textos fortes, fundos escuros */
  --c-ink-2: #1C1A28;         /* grafite mais profundo (rodapé) */
  --c-lavender: #F5F2F9;      /* Lavanda suave: fundos secundários */
  --c-white: #FFFFFF;
  --c-success: #27845D;       /* somente estados de sucesso */
  --c-error: #B3261E;

  /* Neutros com viés para o roxo */
  --c-text: #252333;
  --c-text-muted: #5B5770;
  --c-on-dark: #F4F1FA;
  --c-on-dark-muted: #BDB6CF;
  --c-border: #E3DCEE;
  --c-border-dark: #3A3650;

  /* Tipografia */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.625rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  /* Espaçamento */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;

  /* Raios e sombra */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(37,35,51,.06), 0 8px 24px rgba(37,35,51,.06);

  --container: 1120px;
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-purple); }
strong { font-weight: 600; }
code { font-size: .9em; background: rgba(117,66,165,.12); padding: .1em .35em; border-radius: 4px; }

main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--c-purple); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header :focus-visible, .contact-intro :focus-visible, .site-footer :focus-visible { outline-color: var(--c-purple-200); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 600px) {
  .container { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-white); color: var(--c-ink); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem;
  font: 600 var(--fs-sm)/1.2 var(--font);
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }
.btn-primary { background: var(--c-purple); color: var(--c-white); }
.btn-primary:hover { background: var(--c-purple-600); }
.btn-outline { background: transparent; color: var(--c-purple); border-color: var(--c-purple); }
.btn-outline:hover { background: var(--c-purple); color: var(--c-white); }
.btn-ghost-light { background: transparent; color: var(--c-on-dark); border-color: rgba(244,241,250,.35); }
.btn-ghost-light:hover { border-color: var(--c-on-dark); background: rgba(244,241,250,.06); }
.btn-whatsapp { background: var(--c-success); color: var(--c-white); box-shadow: 0 12px 30px -10px rgba(39,132,93,.7); }
.btn-whatsapp:hover { background: #1F6E4D; }
.btn .icon { transition: transform .18s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--c-ink);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(37,35,51,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-border-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--c-on-dark); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; }
.brand-tag { font-size: .6875rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--c-purple-200); margin-top: 2px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 .75rem;
  background: transparent; color: var(--c-on-dark);
  border: 1px solid var(--c-border-dark); border-radius: var(--r-sm);
  font: 500 var(--fs-sm) var(--font); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s var(--ease), background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: menu em painel */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-ink); border-bottom: 1px solid var(--c-border-dark);
  padding: var(--sp-3) max(16px, env(safe-area-inset-right, 0px)) var(--sp-5) max(16px, env(safe-area-inset-left, 0px));
  display: none;
}
.site-nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block; padding: .875rem .25rem; color: var(--c-on-dark); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--c-border-dark);
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--c-purple-200); }
.nav-cta { margin-top: var(--sp-4); width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: var(--sp-5); background: none; border: 0; padding: 0; }
  .nav-list { flex-direction: row; gap: var(--sp-1); }
  .nav-list a { border: 0; padding: .5rem .75rem; font-size: var(--fs-sm); color: var(--c-on-dark-muted); border-radius: 6px; }
  .nav-list a:hover { color: var(--c-on-dark); }
  .nav-list a[aria-current="true"] { color: var(--c-on-dark); box-shadow: inset 0 -2px 0 var(--c-purple-200); border-radius: 0; }
  .nav-cta { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(55% 70% at 78% 42%, rgba(117,66,165,.42), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(117,66,165,.18), transparent 70%),
    linear-gradient(180deg, #1E1C2B 0%, var(--c-ink) 55%, #1A1826 100%);
  color: var(--c-on-dark);
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: .7; }
@media (min-width: 900px) {
  .hero-canvas {
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.35) 30%, #000 50%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.35) 30%, #000 50%);
  }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 45%, #000 20%, transparent 80%);
          mask-image: radial-gradient(70% 80% at 60% 45%, #000 20%, transparent 80%);
}
.hero-inner {
  display: grid; gap: var(--sp-6); align-items: center;
  padding-block: var(--sp-6) var(--sp-9);
}
.hero-copy { min-width: 0; position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  border: 1px solid rgba(201,174,232,.3); background: rgba(117,66,165,.14);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-purple-200);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-purple-200); box-shadow: 0 0 0 0 rgba(201,174,232,.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(201,174,232,.55); } 80%,100% { box-shadow: 0 0 0 10px rgba(201,174,232,0); } }

.hero-title {
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1.02;
  margin-top: var(--sp-5);
}
.hero-title .w { display: inline-block; }
.hero .hl { color: var(--c-purple-200); }
.hero .hl .w {
  padding-bottom: .08em;
  background: linear-gradient(100deg, #EADCF8 0%, #C09BE6 50%, #9A68D0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { margin-top: var(--sp-5); font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); line-height: 1.6; color: var(--c-on-dark-muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: var(--fs-base); }
.btn-glow { box-shadow: 0 10px 30px -8px rgba(117,66,165,.75), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-glow:hover { box-shadow: 0 14px 38px -8px rgba(143,91,199,.9), inset 0 1px 0 rgba(255,255,255,.2); }

.hero-art {
  position: relative; justify-self: center;
  width: min(78vw, 340px); aspect-ratio: 1; max-width: 100%; order: -1;
}
.hero-logo { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 28px rgba(143,91,199,.35)); }
.hero-glow {
  position: absolute; inset: 12%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(143,91,199,.55), rgba(117,66,165,0) 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
.hero-ring { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.ring-1 { inset: -4%; border: 1px dashed rgba(201,174,232,.32); animation: orbit 70s linear infinite; }
.ring-2 { inset: -14%; border: 1px solid rgba(201,174,232,.12); }
.ring-2::before {
  content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--c-purple-200); box-shadow: 0 0 16px 4px rgba(201,174,232,.6);
}
.ring-2 { animation: orbit 24s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }

.code-chip {
  position: absolute; z-index: 3; right: -4%; bottom: -2%;
  display: none; flex-direction: column; gap: 2px;
  padding: .85rem 1.05rem; border-radius: var(--r-md);
  background: rgba(28,26,40,.82); border: 1px solid rgba(201,174,232,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  font: 500 .8125rem/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--c-on-dark); white-space: nowrap;
}
.c-com { color: #8C86A3; }
.c-var { color: #F4F1FA; }
.c-fn { color: var(--c-purple-200); }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--c-purple-200); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-on-dark-muted); text-decoration: none;
}
.scroll-cue-line { width: 1px; height: 38px; background: linear-gradient(var(--c-purple-200), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

@media (min-width: 900px) {
  .hero { min-height: min(860px, calc(100vh - var(--header-h))); min-height: min(860px, calc(100svh - var(--header-h))); display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.2fr .8fr; padding-block: var(--sp-8) var(--sp-9); gap: var(--sp-7); }
  .hero-art { order: 0; width: min(100%, 460px); }
  .code-chip { display: flex; }
  .scroll-cue { display: flex; }
}

/* ---------- Faixa (marquee) ---------- */
.marquee {
  overflow: hidden; background: var(--c-purple); color: var(--c-white);
  border-block: 1px solid rgba(255,255,255,.12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; width: max-content;
  padding-block: 1rem; font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); letter-spacing: -.01em; white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track > * { margin-right: 1.75rem; }
.marquee-track i { font-style: normal; color: var(--c-purple-200); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.section { position: relative; padding-block: var(--sp-8); }
@media (min-width: 900px) { .section { padding-block: 7.5rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-purple);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: var(--c-purple-200); }
.hero-badge.eyebrow::before { display: none; }
.accent { color: var(--c-purple); }

.section-heading { max-width: 680px; margin-bottom: var(--sp-7); }
.section-heading h2, .projects-copy h2, .about-copy h2, .contact-intro h2 {
  font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04;
  margin-top: var(--sp-4);
}
.section-sub { margin-top: var(--sp-4); color: var(--c-text-muted); font-size: var(--fs-lg); line-height: 1.6; max-width: 36em; }
.section-heading.split { max-width: none; display: grid; gap: var(--sp-4); }
.section-heading.split .section-sub { margin-top: 0; }
@media (min-width: 900px) {
  .section-heading.split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--sp-8); }
}
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center .section-sub { margin-inline: auto; }

/* ---------- Serviços (bento) ---------- */
.services { background: linear-gradient(180deg, var(--c-white) 0%, var(--c-lavender) 100%); }
.bento { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .card-wide { grid-column: span 2; }
}

.service-card {
  position: relative; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; gap: var(--sp-5);
  padding: var(--sp-5); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, -60%), rgba(117,66,165,.12), transparent 70%),
    var(--c-white);
  box-shadow: 0 1px 2px rgba(37,35,51,.04);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (min-width: 600px) { .service-card { padding: var(--sp-6); } }
.service-card:hover { border-color: var(--c-purple-200); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(117,66,165,.45); }
@media (min-width: 1040px) {
  .card-wide { flex-direction: row; align-items: center; }
  .card-wide .card-text { flex: 0 0 42%; }
  .card-wide .illus { flex: 1; }
}
.card-text { min-width: 0; }
.service-icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 14px;
  background: var(--c-lavender); stroke: var(--c-purple); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .25s var(--ease), stroke .25s var(--ease), transform .25s var(--ease);
}
.service-card:hover .service-icon { background: var(--c-purple); stroke: var(--c-white); transform: rotate(-6deg); }
.service-card h3 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; margin-top: var(--sp-4); }
.service-card p { margin-top: var(--sp-2); color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.6; max-width: 40ch; }

/* Ilustrações */
.illus { position: relative; min-width: 0; border-radius: var(--r-md); }
.illus-code { background: var(--c-ink); color: var(--c-on-dark); overflow: hidden; box-shadow: 0 18px 40px -20px rgba(37,35,51,.6); }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid var(--c-border-dark); font-size: .75rem; color: var(--c-on-dark-muted); }
.editor-bar i, .br-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4A4562; }
.editor-bar span { margin-left: .5rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.illus-code pre {
  margin: 0; padding: 1rem 1.1rem 1.2rem; overflow-x: auto;
  font: 500 .8125rem/1.75 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.illus-code .k { color: #E59BD8; } .illus-code .f { color: var(--c-purple-200); }
.illus-code .p { color: #9FD0F0; } .illus-code .s { color: #B9E4C9; }
.cursor { display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--c-purple-200); animation: blink 1.1s steps(1) infinite; }

.illus-browser { border: 1px solid var(--c-border); background: var(--c-white); overflow: hidden; margin-top: auto; }
.br-bar { display: flex; align-items: center; gap: 5px; padding: .55rem .7rem; background: var(--c-lavender); }
.br-bar span { flex: 1; height: 14px; margin-left: .5rem; border-radius: 7px; background: var(--c-white); }
.br-body { display: grid; grid-template-columns: 26% 1fr; gap: .6rem; padding: .7rem; }
.br-side { display: grid; gap: .45rem; align-content: start; }
.br-side b { height: 8px; border-radius: 4px; background: #E6DDF1; }
.br-side b:first-child { background: var(--c-purple); width: 80%; }
.br-main { display: grid; gap: .45rem; }
.br-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; padding: 6px; border-radius: 6px; background: var(--c-lavender); }
.br-bars b { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #9A68D0, var(--c-purple)); transform-origin: bottom; transition: transform .5s var(--ease); }
.service-card:hover .br-bars b { transform: scaleY(1.08); }
.br-row { height: 8px; border-radius: 4px; background: #EDE6F5; }
.br-row.short { width: 60%; }

.illus-flow { display: grid; gap: .6rem; padding: .25rem 0 .25rem 1.4rem; margin-top: auto; }
.flow-line { position: absolute; left: .55rem; top: 1.1rem; bottom: 1.1rem; width: 2px; background: repeating-linear-gradient(var(--c-purple-200) 0 6px, transparent 6px 11px); }
.flow-pulse { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c-purple); box-shadow: 0 0 0 4px rgba(117,66,165,.18); animation: flow 3s var(--ease) infinite; }
@keyframes flow { 0% { top: 0; } 45%,55% { top: calc(50% - 5px); } 100% { top: calc(100% - 10px); } }
.flow-node {
  position: relative; padding: .6rem .85rem; border-radius: 10px; border: 1px solid var(--c-border);
  background: var(--c-white); font-size: var(--fs-sm); font-weight: 600; color: var(--c-text);
}
.flow-node::before { content: ""; position: absolute; left: calc(-1.4rem + .3rem); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c-white); border: 2px solid var(--c-purple-200); }
.flow-node.is-done { border-color: rgba(39,132,93,.35); color: #1F6E4D; background: #F1F8F4; }

.illus-hub { aspect-ratio: 300 / 160; max-width: 100%; background: var(--c-lavender); overflow: hidden; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines path { fill: none; stroke: var(--c-purple-200); stroke-width: 1.5; stroke-dasharray: 5 5; animation: dash 1.2s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.hub-chip {
  position: absolute; top: var(--y); transform: translateY(-50%);
  padding: .35rem .7rem; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-border);
  font-size: .75rem; font-weight: 600; color: var(--c-text-muted); white-space: nowrap;
}
.hub-l { left: 8px; }
.hub-r { right: 8px; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--c-purple); color: var(--c-white); text-align: center;
  font-size: .75rem; font-weight: 700; line-height: 1.25;
  box-shadow: 0 0 0 8px rgba(117,66,165,.14), 0 0 0 18px rgba(117,66,165,.07);
}
@media (max-width: 420px) {
  .hub-chip { font-size: .6875rem; padding: .3rem .55rem; }
  .hub-core { width: 76px; height: 76px; font-size: .6875rem; }
}

/* ---------- Como trabalhamos ---------- */
.process-section { background: var(--c-ink); color: var(--c-on-dark); overflow: hidden; isolation: isolate; }
.process-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(117,66,165,.35), transparent 70%),
    linear-gradient(rgba(201,174,232,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(201,174,232,.06) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(80% 90% at 50% 30%, #000 30%, transparent 85%);
}
.process-section h2 { color: var(--c-on-dark); }
.process-section .accent { color: var(--c-purple-200); }
.process-section .section-sub { color: var(--c-on-dark-muted); }

.timeline { position: relative; display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); padding-top: 22px; }
  .timeline::before, .timeline::after {
    content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; border-radius: 2px;
  }
  .timeline::before { background: rgba(201,174,232,.18); }
  .timeline::after {
    background: linear-gradient(90deg, var(--c-purple), var(--c-purple-200));
    box-shadow: 0 0 12px rgba(201,174,232,.6);
    transform-origin: left; transition: transform 1.6s var(--ease) .2s;
  }
  .timeline.is-pending::after { transform: scaleX(0); }
}
.step-card {
  position: relative; min-width: 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid var(--c-border-dark);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s;
}
.step-card:hover { border-color: rgba(201,174,232,.55); transform: translateY(-4px); }
@media (min-width: 1040px) { .step-card { margin-top: 26px; } }
.step-dot {
  display: none; position: absolute; top: -26px; left: 50%; width: 14px; height: 14px; margin-left: -7px; margin-top: -6px;
  border-radius: 50%; background: var(--c-ink); border: 2px solid var(--c-purple-200);
  box-shadow: 0 0 0 5px rgba(201,174,232,.12); z-index: 1;
}
@media (min-width: 1040px) { .step-dot { display: block; } }
.step-card:hover .step-dot { background: var(--c-purple-200); }
.step-num {
  display: block; font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: 0;
  font-variant-numeric: proportional-nums;
  background: linear-gradient(180deg, rgba(201,174,232,.55) 0%, rgba(201,174,232,.16) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .3s var(--ease);
}
.step-card:hover .step-num {
  background: linear-gradient(180deg, #EADCF8 0%, var(--c-purple-200) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.step-card h3 { font-size: var(--fs-xl); font-weight: 700; margin-top: var(--sp-4); }
.step-card p { margin-top: var(--sp-2); color: var(--c-on-dark-muted); font-size: var(--fs-sm); }

/* ---------- Projetos ---------- */
.projects { background: var(--c-white); overflow: hidden; }
.projects-inner { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) { .projects-inner { grid-template-columns: 1fr 1fr; } }
.projects-copy { min-width: 0; display: grid; justify-items: start; }
.projects-cta-text { margin-top: var(--sp-5); margin-bottom: var(--sp-5); font-weight: 600; font-size: var(--fs-lg); max-width: 30em; }

.blueprint-stack { position: relative; height: 340px; max-width: 100%; }
.blueprint {
  position: absolute; left: 50%; width: min(86%, 380px); padding: var(--sp-5);
  border-radius: var(--r-lg); border: 1.5px dashed #CDBDE0; background: var(--c-white);
  display: grid; gap: .6rem;
  transition: transform .5s var(--ease);
}
.blueprint b { height: 10px; border-radius: 5px; background: #EDE6F5; }
.blueprint b.short { width: 55%; }
.bp-tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: .2rem; }
.bp-3 { top: 0; transform: translateX(-38%) rotate(6deg); background: var(--c-lavender); }
.bp-2 { top: 48px; transform: translateX(-62%) rotate(-5deg); background: #FBF9FD; }
.bp-1 {
  top: 110px; transform: translateX(-50%);
  border: 1.5px solid var(--c-purple); box-shadow: 0 30px 60px -28px rgba(117,66,165,.55);
}
.bp-1 .bp-tag { color: var(--c-purple); margin: 0; }
.bp-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .2rem; }
.bp-badge { padding: .3rem .65rem; border-radius: 999px; background: var(--c-purple); color: var(--c-white); font-size: .75rem; font-weight: 700; }
.bp-foot { display: flex; gap: 6px; margin-top: .4rem; }
.bp-foot i { width: 34px; height: 34px; border-radius: 10px; background: var(--c-lavender); }
.blueprint-stack:hover .bp-3 { transform: translateX(-30%) translateY(-10px) rotate(9deg); }
.blueprint-stack:hover .bp-2 { transform: translateX(-70%) translateY(-4px) rotate(-8deg); }

/* ---------- Sobre ---------- */
.about-section {
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(117,66,165,.14), transparent 70%),
    var(--c-lavender);
}
.about-emblem {
  position: absolute; z-index: -1; pointer-events: none;
  right: -140px; top: 40px; width: 560px; max-width: none; height: auto;
  opacity: .07; filter: brightness(0) saturate(100%);
}
@media (max-width: 899px) { .about-emblem { right: -200px; top: 10px; width: 420px; } }

.about-head { display: grid; gap: var(--sp-5); }
@media (min-width: 1000px) {
  .about-head { grid-template-columns: 1.25fr .75fr; align-items: end; column-gap: var(--sp-8); }
  .about-head .eyebrow { grid-column: 1 / -1; }
}
.slogan {
  display: flex; flex-direction: column; margin: 0;
  font-size: clamp(3.5rem, 1.5rem + 9vw, 8.5rem); font-weight: 800; letter-spacing: -.055em; line-height: .9;
}
.slogan-a { color: var(--c-ink); }
.slogan-b {
  color: transparent; -webkit-text-stroke: 2px var(--c-purple);
  background: linear-gradient(90deg, var(--c-purple) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
  transition: --fill 1.4s var(--ease);
  padding-bottom: .08em;
}
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.slogan:hover .slogan-b, .about-head:not(.is-hidden) .slogan-b { --fill: 100%; }
.about-lead { display: grid; gap: var(--sp-3); max-width: 34em; }
.about-translation { font-size: var(--fs-xl); font-weight: 700; color: var(--c-purple); letter-spacing: -.01em; }
.about-lead p:not(.about-translation) { color: var(--c-text-muted); }

/* Equação Code + Odyssey = Codessey */
.equation {
  display: grid; gap: var(--sp-3); align-items: stretch;
  grid-template-columns: 1fr; margin-top: var(--sp-8);
}
@media (min-width: 900px) { .equation { grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: var(--sp-4); } }
.eq-card {
  position: relative; min-width: 0; overflow: hidden;
  display: grid; align-content: start; gap: .25rem;
  padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg);
  background: var(--c-white); border: 1px solid var(--c-border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.eq-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(117,66,165,.5); }
.eq-label { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--c-ink); }
.eq-label em { font-style: normal; color: #E6D6F7; }
.eq-pt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-purple); }
.eq-card p { margin-top: var(--sp-4); color: var(--c-text-muted); font-size: var(--fs-sm); max-width: 32ch; }
.eq-op {
  display: grid; place-items: center; justify-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-white); border: 1px solid var(--c-border);
  font-size: 1.75rem; font-weight: 300; color: var(--c-purple); line-height: 1;
  align-self: center;
}
.eq-result {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(201,174,232,.14), transparent 60%),
    linear-gradient(140deg, var(--c-purple) 0%, #633690 50%, #4E2B73 100%);
  border-color: transparent; color: var(--c-white);
  box-shadow: 0 30px 60px -30px rgba(117,66,165,.8);
}
.eq-result::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.35); pointer-events: none;
}
.eq-result .eq-label { color: var(--c-white); }
.eq-result .eq-pt { color: var(--c-white); opacity: 1; }
.eq-result p { color: var(--c-white); font-size: var(--fs-base); font-weight: 500; }

/* Valores */
.values-block { margin-top: var(--sp-8); }
.values-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text-muted); }
.values-list { display: grid; grid-template-columns: 1fr; margin-top: var(--sp-4); border-top: 1px solid #D9CDE8; }
@media (min-width: 600px) { .values-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .values-list { grid-template-columns: repeat(4, 1fr); } }
.values-list li {
  position: relative; display: grid; gap: .35rem;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid #D9CDE8;
}
.values-list li::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--c-purple);
  transition: width .4s var(--ease);
}
.values-list li:hover::before { width: 100%; }
.values-list strong { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; color: var(--c-ink); }
.values-list span { font-size: var(--fs-sm); color: var(--c-text-muted); max-width: 26ch; }

/* ---------- Contato ---------- */
.contact { background: var(--c-ink); color: var(--c-on-dark); overflow: hidden; isolation: isolate; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 60% at 85% 30%, rgba(117,66,165,.45), transparent 70%),
    radial-gradient(35% 50% at 0% 100%, rgba(117,66,165,.22), transparent 70%);
}
.contact-inner { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .contact-inner { grid-template-columns: .9fr 1.1fr; gap: var(--sp-8); align-items: center; } }
.contact-intro { min-width: 0; display: grid; gap: var(--sp-4); justify-items: start; }
.contact-intro h2 { margin-top: 0; }
.contact .accent { color: var(--c-purple-200); }
.contact-intro > p:not(.eyebrow):not(.placeholder-note) { color: var(--c-on-dark-muted); font-size: var(--fs-lg); }
.contact-channels { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); width: 100%; }
@media (min-width: 520px) and (max-width: 959px) { .contact-channels { grid-template-columns: 1fr 1fr; } }
.contact-channels li { min-width: 0; }
.ch-card {
  display: flex; align-items: center; gap: var(--sp-3); min-width: 0;
  padding: .8rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--c-border-dark); background: rgba(255,255,255,.04);
  color: var(--c-on-dark); text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.ch-card:hover { border-color: rgba(201,174,232,.55); background: rgba(117,66,165,.16); transform: translateY(-2px); }
.ch-icon {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  background: rgba(117,66,165,.28); stroke: var(--c-purple-200); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ch-text { display: grid; min-width: 0; }
.ch-label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-muted); }
.ch-val { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placeholder-note {
  margin-top: var(--sp-3); padding: var(--sp-4); border: 1px dashed var(--c-purple-200); border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--c-on-dark-muted);
}
.placeholder-note strong { color: var(--c-purple-200); }
.placeholder-note code { background: rgba(201,174,232,.15); color: var(--c-on-dark); }

.contact-form {
  min-width: 0;
  display: grid; gap: var(--sp-4); grid-template-columns: 1fr; align-items: start;
  background: var(--c-white); color: var(--c-text);
  padding: var(--sp-5); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(201,174,232,.25), 0 40px 80px -30px rgba(117,66,165,.65);
}
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; padding: var(--sp-6); } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.optional { font-weight: 400; color: var(--c-text-muted); }
.field input, .field textarea {
  width: 100%; font: 400 var(--fs-base)/1.5 var(--font); color: var(--c-text);
  padding: .75rem .875rem; background: var(--c-white);
  border: 1.5px solid #CFC6DD; border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:hover, .field textarea:hover { border-color: #A99BBF; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-purple); box-shadow: 0 0 0 3px rgba(117,66,165,.2); }
.field.has-error input, .field.has-error textarea { border-color: var(--c-error); }
.field-error { font-size: var(--fs-xs); color: var(--c-error); min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.form-privacy { font-size: var(--fs-xs); color: var(--c-text-muted); }
.spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.is-loading .spinner { display: inline-block; }
.btn[disabled] { opacity: .75; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { padding: var(--sp-4); border-radius: var(--r-sm); font-size: var(--fs-sm); border: 1px solid; }
.form-status.is-success { color: #1D6647; background: #E9F5EF; border-color: #A7D6C0; }
.form-status.is-error { color: #8C1D18; background: #FCEDEC; border-color: #F0B8B4; }
.form-status.is-info { color: #4A2B6B; background: var(--c-lavender); border-color: #D9CBEA; }
.form-status strong { display: block; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink-2); color: var(--c-on-dark-muted); }
.footer-inner {
  display: grid; gap: var(--sp-5); padding-block: var(--sp-7);
  padding-bottom: calc(var(--sp-7) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--sp-6); } }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); }
.footer-brand img { width: 48px; height: 48px; }
.footer-name { font-weight: 700; color: var(--c-on-dark); font-size: var(--fs-lg); line-height: 1.2; }
.footer-slogan { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-purple-200); }
.footer-slogan span { color: var(--c-on-dark-muted); letter-spacing: .04em; text-transform: none; margin-left: .35rem; }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--c-border-dark); color: var(--c-on-dark-muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer-social a:hover { color: var(--c-white); border-color: var(--c-purple-200); background: rgba(117,66,165,.25); }
.soc-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a { display: inline-block; padding-block: .6rem; color: var(--c-on-dark-muted); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--c-on-dark); }
.footer-copy { font-size: var(--fs-xs); grid-column: 1 / -1; padding-top: var(--sp-5); border-top: 1px solid var(--c-border-dark); }

/* ---------- Animações ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: rise .7s var(--ease) both; }
  .hero-title .w { animation: wordIn .9s var(--ease) both; animation-delay: calc(.15s + var(--i) * .07s); }
  .hero .lead { animation: rise .8s var(--ease) .8s both; }
  .hero-actions { animation: rise .8s var(--ease) .95s both; }
  .hero-logo { animation: logoIn 1.4s var(--ease) .2s both; }
  .code-chip { animation: chipIn .8s var(--ease) 1.3s both; }
  @keyframes rise { from { transform: translateY(14px); opacity: .01; } }
  @keyframes wordIn { from { transform: translateY(.45em) rotate(2deg); opacity: .01; filter: blur(6px); } }
  @keyframes logoIn { from { opacity: .01; } }
  @keyframes chipIn { from { opacity: .01; transform: translateY(16px) scale(.96); } }

  /* Revelação ao rolar: só aplicada pelo JS a elementos abaixo da primeira tela */
  .reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .reveal.is-hidden { opacity: 0; transform: translateY(28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}
