:root {
  --noite: #0F1E33;
  --noite-2: #18294A;
  --noite-3: #0A1524;
  --nevoa: #F4F6F9;
  --branco: #FFFFFF;
  --grafite: #5A6472;
  --prata: #9FB0C6;
  --dourado: #D4A24C;
  --dourado-2: #E2B567;
  --azul: #4A8FE7;
  --link: #2F6FC4;
  --m: clamp(20px, 4.4vw, 64px);
  --gap: clamp(96px, 12vw, 176px);
  --display: 'Jost', 'Segoe UI', Arial, sans-serif;
  --text: 'Inter', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.55; color: var(--noite); background: var(--noite); }
img, svg { display: block; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--dourado); color: var(--noite); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--m); padding-right: var(--m); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--dourado); color: var(--noite); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.btn-gold { background: var(--dourado); color: var(--noite); }
.btn-gold:hover { background: var(--dourado-2); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; background: var(--dourado); color: var(--noite); }
.btn-small:hover { background: var(--dourado-2); }
.link-light { color: var(--branco); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--dourado); text-decoration-thickness: 2px; transition: text-underline-offset .2s var(--ease); }
.link-light:hover { text-underline-offset: 9px; }

/* Barra */
.bar { position: sticky; top: 0; z-index: 10; background: var(--noite); color: var(--branco); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--branco); }
.brand-word { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: #D5DEEA; padding: 12px 0; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--branco); }

/* Hero */
.hero { background: var(--noite); color: var(--branco); padding: clamp(40px, 7vw, 104px) 0 clamp(72px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.9vw, 74px); line-height: 1; letter-spacing: -0.03em; }
.lead { margin-top: 36px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: #DCE4EE; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }

.sky { display: flex; flex-direction: column; gap: 18px; }
.sky-hint { font-size: 15px; color: var(--prata); }
.sky-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 470px; margin: 0 auto; }
.sky-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-lines path { fill: none; stroke: var(--branco); stroke-opacity: .32; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.star, .dot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--branco); opacity: .7; }
.star { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; color: var(--branco); }
.star::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--d, 12px); height: var(--d, 12px); border-radius: 50%; background: var(--branco); transform: translate(-50%, -50%); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.star::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--dourado); transform: translate(-50%, -50%) scale(.4); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.star span { position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%); font: 500 14px/1 var(--text); color: var(--prata); white-space: nowrap; transition: color .2s; }
.s-lg { --d: 18px; } .s-md { --d: 14px; } .s-sm { --d: 11px; }
.s-gold { --d: 16px; }
.s-gold::before { background: var(--dourado); }
.star:hover::before { transform: translate(-50%, -50%) scale(1.25); }
.star:hover span { color: var(--branco); }
.star[aria-pressed="true"]::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.star[aria-pressed="true"] span { color: var(--branco); }
.sky-card { background: var(--noite-2); padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.sky-card strong { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--branco); }
.sky-card span { color: #DCE4EE; font-size: 16px; }

/* Consultoria SAP */
.sap { background: var(--nevoa); padding: var(--gap) 0; }
.sap-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.sap-head p { margin-top: 28px; font-size: 19px; max-width: 26em; }
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.modules dt { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.modules dd { margin-top: 10px; }

/* Software */
.software { background: var(--branco); padding: var(--gap) 0; }
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px clamp(24px, 3vw, 48px); }
.sw-head { grid-column: 1 / span 12; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.sw-head p { font-size: 19px; }
.sw-list { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.sw-list li { background: var(--nevoa); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.sw-list li:nth-child(2) { background: var(--noite); color: var(--branco); }
.sw-list li:nth-child(2) p { color: #DCE4EE; }

/* Método */
.metodo { background: var(--noite); color: var(--branco); padding: var(--gap) 0; }
.metodo h2 { max-width: 12em; }
.metodo-row { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); }
.metodo-row h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; color: var(--dourado); }
.metodo-row p { margin-top: 16px; color: #DCE4EE; }

/* Sobre */
.sobre { background: var(--nevoa); padding: var(--gap) 0; }
.sobre-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.statement { margin-top: 32px; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.01em; max-width: 22em; }
.sobre-grid p + p { margin-top: 24px; max-width: 36em; }
.sobre-mark { color: var(--noite); background: var(--branco); padding: clamp(32px, 5vw, 72px); }
.sobre-mark svg { width: 100%; height: auto; }

/* Contato */
.contato { background: var(--noite); color: var(--branco); padding: var(--gap) 0; }
.contato-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contato-info p { margin-top: 28px; font-size: 19px; color: #DCE4EE; max-width: 26em; }
.contato-canais { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.contato-canais a { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); text-decoration: none; color: var(--branco); padding: 6px 0; display: inline-block; transition: color .2s; }
.contato-canais a:hover { color: var(--dourado); }
.form { background: var(--noite-2); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 20px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 220px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--text); color: var(--noite); background: var(--branco); border: 2px solid transparent; border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #DCE4EE; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--dourado); flex-shrink: 0; }
.consent a { color: var(--branco); text-underline-offset: 3px; }
.form .btn { align-self: flex-start; }
.form-status { min-height: 24px; font-size: 15px; color: var(--dourado); }

/* Rodapé */
.footer { background: var(--noite-3); color: var(--prata); padding: clamp(48px, 6vw, 88px) 0 40px; overflow: hidden; }
.footer-word { font-family: var(--display); font-weight: 300; font-size: clamp(96px, 23vw, 340px); line-height: 1; letter-spacing: -0.04em; color: var(--noite-2); margin-left: -0.04em; }
.footer-row { margin-top: 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.footer-row p:last-child { text-align: right; }
.footer a { color: var(--branco); text-underline-offset: 3px; }

/* Entrada ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .star::before, .star::after, .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sky { max-width: 600px; }
  .sap-grid, .sobre-grid, .contato-grid { grid-template-columns: minmax(0, 1fr); }
  .sw-head { grid-template-columns: minmax(0, 1fr); }
  .sw-list { grid-template-columns: minmax(0, 1fr); }
  .sw-list li { min-height: 0; }
  .sobre-mark { max-width: 420px; }
}

/* Celular */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav li:not(:last-child) { display: none; }
  .brand-word { font-size: 26px; }
  .modules { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .metodo-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .star span { font-size: 13px; }
  .footer-row p:last-child { text-align: left; }
  .form .btn { align-self: stretch; }
}
.s-gold span { transform: translateX(-50%); top: auto; bottom: calc(50% + 20px); }
