/* Tela de acesso: foto aérea real (pivô central, Diego) em tela cheia, com um gráfico esmaecido no horizonte e um traço
   branco girando no pivô do fundo. Cartão de acesso em vidro fosco à direita; no celular, a foto vira o topo da página. */
:root {
  color-scheme: dark;
  --ink: #f2f6f1;
  --ink-2: #c9d4c8;
  --ink-3: #8fa18f;
  --deep: #0c1a12;
  --glass: rgba(12, 26, 18, .58);
  --glass-strong: rgba(10, 22, 15, .74);
  --edge: rgba(255, 255, 255, .14);
  --edge-strong: rgba(255, 255, 255, .26);
  --brand: #3fbf7a;
  --brand-deep: #23824f;
  --amber: #e5a93f;
  --c-income: #4fd18a;
  --c-cost: #f0b04a;
  --c-invest: #5ea8ff;
  --c-cash: #3fd0c9;
  --danger: #ff8f80;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* ---------- palco: foto + camadas ---------- */
.stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas:
    "brand  access"
    "pitch  access"
    "signals access"
    "credits credits";
  column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(22px, 3.2vw, 48px) clamp(22px, 4vw, 64px) 18px;
  overflow: hidden;
  isolation: isolate;
}

.hero { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #13261a; }
.hero-motion { position: absolute; inset: 0; transform-origin: 38% 55%; animation: drift 38s ease-in-out infinite alternate; will-change: transform; backface-visibility: hidden; }
.hero-photo, .hero-data { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; transform: translateZ(0); }
.hero-photo { object-fit: cover; object-position: 50% 50%; filter: saturate(1.08) contrast(1.04) brightness(.97); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 12, .5) 0%, rgba(8, 18, 12, .24) 22%, rgba(8, 18, 12, 0) 40%, rgba(8, 18, 12, 0) 70%, rgba(8, 18, 12, .7) 100%),
    linear-gradient(90deg, rgba(8, 18, 12, .5) 0%, rgba(8, 18, 12, .18) 30%, rgba(8, 18, 12, 0) 46%),
    linear-gradient(270deg, rgba(8, 18, 12, .5) 0%, rgba(8, 18, 12, .12) 28%, rgba(8, 18, 12, 0) 42%),
    radial-gradient(120% 90% at 40% 55%, transparent 60%, rgba(6, 14, 9, .45) 100%);
}
/* grade técnica muito leve sobre tudo */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 80% at 40% 50%, #000 40%, transparent 100%);
}

/* desenho sobre a foto (coordenadas da própria foto) */
.hero-data { overflow: visible; }
/* horizonte: área suave com barras mensais e projeção tracejada, esmaecido mas legível */
.sky-chart { opacity: .92; }
.sky-grid path { stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-dasharray: 2 6; fill: none; vector-effect: non-scaling-stroke; }
.sky-bars rect { fill: rgba(255, 255, 255, .17); }
.sky-glow { fill: none; stroke: rgba(200, 245, 220, .14); stroke-width: 10; stroke-linecap: round; }
.sky-line { fill: none; stroke: rgba(236, 255, 244, .9); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.6s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
.sky-proj { fill: none; stroke: rgba(236, 255, 244, .7); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 7; opacity: 0; animation: fade 1s 2.6s ease forwards; }
.sky-area { opacity: 0; animation: fade 1.6s 1.2s ease forwards; }
.sky-dots circle { fill: #f2fff7; stroke: rgba(8, 18, 12, .5); stroke-width: 1.5; opacity: .9; }
.sky-dots .halo { fill: rgba(79, 209, 138, .22); stroke: none; }
.sky-dots .live { fill: var(--c-income); stroke: #fff; stroke-width: 2; opacity: 1; }

.ring-small { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 62 38; stroke-dashoffset: 0; animation: spin-dash 24s linear infinite; }

/* ---------- marca e mensagem ---------- */
.brand { grid-area: brand; display: flex; align-items: center; gap: 16px; }
.brand-logo { width: clamp(150px, 13vw, 190px); height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.brand-divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .34); }
.brand-product { font-size: 11px; font-weight: 700; letter-spacing: .2em; line-height: 1.55; color: rgba(255, 255, 255, .86); }

.pitch { grid-area: pitch; align-self: start; max-width: 660px; margin-top: clamp(28px, 6vh, 72px); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(10, 22, 15, .55); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); text-shadow: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-income); box-shadow: 0 0 0 0 rgba(79, 209, 138, .6); animation: halo 2.2s ease-out infinite; }
.pitch h1 { margin: 0; font: 600 clamp(30px, 3.4vw, 54px)/1.08 var(--font-display); letter-spacing: -.025em; }
.pitch h1 span { background: linear-gradient(90deg, #ffffff 0%, #bff0d2 45%, #8fe0b4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); text-shadow: none; }
.ring-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ring-legend i { width: 18px; height: 4px; border-radius: 3px; }
.lg-a { background: var(--c-income); } .lg-b { background: var(--c-cost); } .lg-c { background: var(--c-invest); } .lg-d { background: var(--c-cash); }
.pitch-text { max-width: 470px; margin: 18px 0 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.6; color: var(--ink-2); }

/* indicadores em vidro (o que o painel acompanha; sem valores) */
.signals { grid-area: signals; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; align-self: end; }
.signal { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 16px; border: 1px solid var(--edge); background: rgba(12, 26, 18, .74); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .7); animation: float 7s ease-in-out infinite; }
.signal.s2 { animation-delay: -1.8s; } .signal.s3 { animation-delay: -3.6s; } .signal.s4 { animation-delay: -5.2s; }
.signal svg { flex: none; width: 36px; height: 24px; overflow: visible; }
.signal.s2 svg, .signal.s4 svg { width: 24px; }
.signal b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.signal small { display: block; font-size: 11px; color: var(--ink-3); }
.spark { fill: none; stroke: var(--c-income); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.spark-area { fill: rgba(79, 209, 138, .18); }
.s1 circle { fill: var(--c-income); }
.g-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 4; }
.g-val { fill: none; stroke: var(--c-cash); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 72 28; transform: rotate(-90deg); transform-origin: center; transform-box: fill-box; }
.s3 rect { fill: rgba(255, 255, 255, .32); } .s3 rect.hl { fill: var(--c-cost); }
.pulse-line { fill: none; stroke: var(--c-invest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- cartão de acesso ---------- */
.access {
  grid-area: access; align-self: center; width: 100%;
  padding: 28px 28px 22px; border-radius: 26px;
  border: 1px solid var(--edge-strong);
  background: linear-gradient(160deg, rgba(20, 40, 28, .72), rgba(8, 18, 12, .78));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: rise .8s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.access-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); }
.secure-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--c-income); }
.secure-mark svg, .access-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-overline { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--amber); }
.access h2 { margin: 0; font: 600 26px/1.15 var(--font-display); letter-spacing: -.02em; }
.login-intro { margin: 6px 0 22px; color: var(--ink-2); }

.field-label { display: block; margin: 14px 0 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input {
  width: 100%; height: 50px; padding: 0 46px 0 44px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--ink);
  outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.input-wrap input::placeholder { color: rgba(255, 255, 255, .38); }
.input-wrap input:focus { border-color: var(--brand); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(63, 191, 122, .18); }
.input-wrap:focus-within > svg { stroke: var(--brand); }
.input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 40px #1a2f22 inset; caret-color: var(--ink); }
.reveal { position: absolute; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); }
.reveal:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eye-slash { position: absolute; width: 20px; height: 1.6px; background: currentColor; transform: rotate(-40deg); border-radius: 2px; }
.reveal.is-visible .eye-slash { display: none; }

.form-message { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 143, 128, .35); background: rgba(255, 143, 128, .1); color: var(--danger); font-size: 13px; }
.form-message.success { border-color: rgba(79, 209, 138, .35); background: rgba(79, 209, 138, .1); color: var(--c-income); }
.submit-button {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 52px; margin-top: 22px;
  border: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #46c983, #23824f); color: #04140b; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 14px 30px -14px rgba(63, 191, 122, .8); transition: transform .15s, box-shadow .15s, filter .15s;
}
.submit-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 5s 2.5s ease-in-out infinite; }
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 18px 34px -14px rgba(63, 191, 122, .9); }
.submit-button:disabled { cursor: progress; filter: saturate(.6) brightness(.9); transform: none; }
.submit-arrow { transition: transform .15s; }
.submit-button:hover .submit-arrow { transform: translateX(3px); }
.access-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12px; color: var(--ink-3); }
.access-help { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 12px; color: var(--ink-3); }
.access-help a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.access-help a:hover { border-color: var(--brand); }
.text-link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.text-link:hover { border-color: var(--brand); }
.access[hidden] { display: none; }
.request .form-message.success { display: block; }

.credits { grid-area: credits; display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .55); }
.photo-credit { letter-spacing: .06em; font-weight: 500; }

/* ---------- movimento ---------- */
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -.8%, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 138, .6); } 100% { box-shadow: 0 0 0 10px rgba(79, 209, 138, 0); } }
@keyframes spin-dash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .hero-motion { animation: none; }
}

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }
  .signals .s4 { display: none; }
}
@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "brand" "pitch" "access" "signals" "credits";
    padding: 20px 18px 16px;
  }
  /* a foto ocupa o topo; o cartão fica sobre a parte escura */
  .hero { bottom: auto; height: 62svh; min-height: 420px; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, var(--deep)); }
  .pitch { margin-top: 26px; }
  .pitch h1 { font-size: clamp(28px, 8vw, 40px); }
  .pitch-text { display: none; }
  .access { margin-top: clamp(120px, 26svh, 220px); padding: 24px 20px 18px; }
  .signals { margin-top: 18px; }
  .signals .s4 { display: flex; }
  .signal { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .credits { flex-direction: column; gap: 4px; }
  .ring-legend { display: none; }
}
@media (max-width: 420px) {
  .brand-logo { width: 140px; }
  .signal small { display: none; }
}
