:root {
  --bg: #07060d;
  --bg-2: #0e0c18;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(167, 139, 250, 0.35);
  --text: #ece9f5;
  --muted: #9a94b0;
  --faint: #6b6585;
  --violet: #7c5cff;
  --violet-2: #a78bfa;
  --teal: #2dd4bf;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, #a78bfa 0%, #7c5cff 40%, #2dd4bf 100%);
  --radius: 18px;
  --maxw: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(124, 92, 255, 0.45); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display), sans-serif; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1rem; }
.mono { font-family: var(--font-mono), monospace; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fundo */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb { position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: 0.45; }
.orb-a { width: 560px; height: 560px; background: #5b3df5; top: -200px; right: -120px; }
.orb-b { width: 460px; height: 460px; background: #0f9f8f; bottom: -220px; left: -160px; opacity: 0.25; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: inherit; color: var(--text); background: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-primary { background: linear-gradient(100deg, #7c5cff, #5b3df5); box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.7), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); background: rgba(7, 6, 13, 0.7); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; }
.wm { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.wm svg { flex-shrink: 0; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.logo:hover .wm svg { transform: rotate(180deg) scaleY(-1); }
.wm-word { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.03em; color: var(--text); white-space: nowrap; }
.wm-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; padding-left: 10px; border-left: 1px solid var(--border); white-space: nowrap; }
.nav-links { display: flex; gap: 26px; font-size: 0.9rem; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; font-size: 0.75rem; }
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang a.on { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 80px 0 64px; overflow: hidden; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); }
.hero-in { position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--teal); border: 1px solid rgba(45, 212, 191, 0.3); background: rgba(45, 212, 191, 0.07); padding: 6px 14px; border-radius: 999px; margin-bottom: 28px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.6);} 70% { box-shadow: 0 0 0 10px rgba(45,212,191,0);} 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0);} }
.query { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(0.85rem, 1.6vw, 1rem); color: #d6ccff; background: rgba(11, 10, 20, 0.75); border: 1px solid rgba(124, 92, 255, 0.3); padding: 10px 16px; border-radius: 12px; margin-bottom: 26px; max-width: 100%; }
.prompt-sym { color: var(--teal); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: type 1.4s steps(var(--n)) 0.3s forwards; }
@keyframes type { to { width: calc(var(--n) * 1ch); } }
.answer { opacity: 0; transform: translateY(14px); animation: reveal 0.8s cubic-bezier(.2,.7,.2,1) 1.9s forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.answer-tag { font-size: 0.78rem; color: var(--teal); margin-bottom: 10px; }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--violet-2); margin-left: 4px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; margin-bottom: 26px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 64px; }
.socials { display: flex; gap: 8px; margin-left: 6px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); transition: all .2s; }
.socials a:hover { color: var(--text); border-color: var(--border-strong); }
.socials svg { width: 18px; height: 18px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 920px; }
.stats li { background: rgba(10, 9, 18, 0.85); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.stats span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* Seções */
.section { padding: 110px 0; position: relative; }
.kicker { font-size: 0.8rem; color: var(--teal); text-transform: lowercase; margin-bottom: 14px; letter-spacing: 0.02em; }
.kicker-n { color: var(--faint); }
.section-intro { color: var(--muted); max-width: 640px; font-size: 1.05rem; margin-bottom: 40px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: var(--border-strong); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--font-mono); font-size: 0.72rem; color: var(--violet-2); background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.22); padding: 3px 9px; border-radius: 6px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.link svg { width: 16px; height: 16px; transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 28px 64px; align-items: center; }
.about .about-intro { margin-top: 8px; }
.portrait { position: relative; margin: 0; padding: 2px; border-radius: 26px; background: var(--grad); box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.6), 0 0 0 1px rgba(255,255,255,.04); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.portrait::after { content: ""; position: absolute; inset: 2px; border-radius: 24px; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(7, 6, 13, 0.75)); }
.portrait figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: #e4def5; background: rgba(11,10,20,.7); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; }
.portrait-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.about-intro { color: #d9d4ea; font-size: 1.15rem; line-height: 1.75; margin: 0; }
.chapters { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: ch; }
.chapter { padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.chapter::before { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 2px; background: var(--grad); opacity: .7; border-radius: 2px; }
.chapter p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.chapter-tag { font-size: 0.72rem; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.about-foot { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px 64px; align-items: center; margin-top: 40px; }
.about-closing { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; color: var(--text); margin: 0; }
.code-card { margin: 0; padding: 26px 28px; border-radius: var(--radius); background: #0b0a14; border: 1px solid var(--border); font-size: 0.88rem; line-height: 1.8; color: #cfcae0; overflow-x: auto; }
.code-card b { color: var(--teal); font-weight: 500; }
.code-card s { text-decoration: none; color: #f0abfc; }
.code-card i { font-style: normal; color: var(--violet-2); }

/* Expertise */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.pillar { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(124, 92, 255, 0.45); }
.pillar p { color: var(--muted); font-size: 0.93rem; flex: 1; margin: 0; }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(45,212,191,.12)); border: 1px solid rgba(124,92,255,.3); color: #d6ccff; }
.pillar-icon svg { width: 24px; height: 24px; }
.stack { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kicker-inline { color: var(--teal); font-size: 0.8rem; margin-right: 6px; }
.stack-item { font-size: 0.85rem; color: #cfcae0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--teal) 50%, transparent); opacity: .5; }
.timeline > li { position: relative; padding-left: 44px; margin-bottom: 20px; }
.tl-dot { position: absolute; left: 0; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.current .tl-dot { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.15), 0 0 20px rgba(45, 212, 191, .6); }
.tl-card { padding: 26px 28px; }
.current .tl-card { border-color: rgba(124, 92, 255, 0.35); background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(45, 212, 191, 0.03)); }
.tl-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.tl-company { color: var(--violet-2); margin: 2px 0 0; font-weight: 500; }
.tl-period { font-size: 0.8rem; color: var(--muted); }
.tl-period em { font-style: normal; color: var(--teal); border: 1px solid rgba(45,212,191,.35); padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.tl-bullets { margin: 0 0 16px; padding-left: 18px; color: #cfcae0; }
.tl-bullets li { margin-bottom: 6px; }
.tl-bullets li::marker { color: var(--violet); }

/* Pesquisa */
.papers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paper { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.paper:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(45, 212, 191, 0.3); }
.paper-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.paper-area { font-size: 0.72rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; }
.paper-status { font-size: 0.72rem; color: #fbcfe8; background: rgba(244, 114, 182, 0.1); border: 1px solid rgba(244, 114, 182, 0.25); padding: 3px 10px; border-radius: 999px; }
.paper p { color: var(--muted); font-size: 0.92rem; flex: 1; margin: 0; }
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.progress span { height: 4px; border-radius: 4px; background: var(--surface-2); }
.progress span.on { background: var(--grad); }
.paper-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* IA Lab */
.lab { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.lab-specs { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; border-top: 1px solid var(--border); }
.lab-specs li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); color: #cfcae0; }
.lab-specs span { color: var(--faint); min-width: 92px; }
.chat { border-radius: var(--radius); border: 1px solid rgba(124, 92, 255, 0.35); background: #0b0a14; box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.55); overflow: hidden; display: flex; flex-direction: column; }
.chat-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.chat-title { margin-left: 10px; font-size: 0.78rem; color: var(--muted); flex: 1; }
.chat-live { font-size: 0.72rem; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.chat-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.chat-log { height: 340px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap; }
.bubble.ai { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: linear-gradient(100deg, #7c5cff, #5b3df5); border-bottom-right-radius: 4px; align-self: flex-end; }
.typing { display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.chip { font: inherit; font-size: 0.8rem; color: #d6ccff; background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.28); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .2s; }
.chip:hover { background: rgba(124, 92, 255, 0.2); }
.chat-form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
.prompt { color: var(--teal); }
.chat-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 0.95rem; }
.chat-note { font-size: 0.72rem; color: var(--faint); padding: 0 16px 12px; margin: 0; }

/* Projetos em construção */
.build { font-size: 0.85rem; color: var(--teal); font-weight: 400; vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 10px; }
.subhead h3 { font-size: 0.9rem; font-weight: 500; color: var(--text); text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 24px; }
.product { padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.product::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: var(--accent); opacity: 0.12; filter: blur(30px); pointer-events: none; }
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.product-top { display: flex; justify-content: space-between; align-items: center; }
.product-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.product-live { font-size: 0.72rem; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.product-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.product h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.ep { color: var(--text); }
.ep-suffix { color: var(--accent); font-weight: 500; }
.product p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.mia-expand { color: var(--muted); font-size: 0.85rem; margin: -6px 0 18px; }
.mia-expand b { color: var(--teal); font-weight: 600; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.soon { padding: 26px; display: flex; flex-direction: column; gap: 12px; border-style: dashed; position: relative; overflow: hidden; }
.soon p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.soon-badge { align-self: flex-start; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); }
.skeleton { display: grid; gap: 7px; margin-top: 8px; }
.skeleton i { height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(124,92,255,.18), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 2.2s infinite linear; }
.skeleton i:nth-child(2) { width: 80%; } .skeleton i:nth-child(3) { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Formação */
.edu { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--border); }
.edu li { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--border); align-items: center; transition: background .2s; }
.edu li:hover { background: var(--surface); }
.edu-year { font-size: 0.8rem; color: var(--faint); }
.edu-title { font-weight: 500; }
.edu-school { color: var(--muted); font-size: 0.9rem; }
.edu li.hl .edu-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 48px; }
.glow { box-shadow: 0 0 0 1px rgba(124,92,255,.15), 0 40px 120px -40px rgba(124, 92, 255, 0.5); background: radial-gradient(ellipse at top left, rgba(124,92,255,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.contact-links a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; color: #cfcae0; font-weight: 500; }
.contact-links a:not(.btn):hover { color: var(--teal); }
.contact-links svg { width: 18px; height: 18px; }
.contact-form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 0.95rem; color: var(--text); background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: 0; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: 0.88rem; }
.form-msg.ok { color: var(--teal); } .form-msg.err { color: #fca5a5; }

/* A marca */
.brand { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.brand-mark { display: grid; justify-items: center; gap: 28px; padding: 44px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(circle at 50% 40%, rgba(124,92,255,.2), transparent 65%), #0a0913; }
.brand-mark svg { max-width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.brand-mark:hover svg { transform: scaleX(-1); }
.brand-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 0.75rem; color: var(--muted); }
.brand-legend span { color: var(--teal); }
.brand-text { color: #cfcae0; font-size: 1.05rem; }
.brand-text:first-of-type { font-size: 1.2rem; color: var(--text); }
.brand-closing { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Rodapé */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsivo */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .papers { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 820px) {
  .about, .about-foot, .lab, .contact, .brand { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact { padding: 28px 22px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .pillars, .papers, .soon-grid, .products, .row2 { grid-template-columns: 1fr; }
  .query { font-size: 0.78rem; }
  .edu li { grid-template-columns: 1fr; gap: 2px; }
  .wm-sub { display: none; }
  .hero { padding-top: 48px; }
  .chat-log { height: 300px; }
  .code-card { font-size: 0.75rem; padding: 18px; }
}
@media (max-width: 420px) {
  .nav-right .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .typed { width: auto; } .answer { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
