:root {
  color-scheme: dark;
  --black: #030303;
  --graphite: #111317;
  --titanium: #8f99a3;
  --ice: #f4f8fb;
  --orange: #ff6a00;
  --yellow: #ffd23f;
  --red: #e2322e;
  --cyan: #00c8ff;
  --line: rgba(255, 255, 255, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ice);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ice);
  color: var(--black);
}

.skip-link:focus { top: 16px; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(3,3,3,.88), rgba(3,3,3,.28));
  backdrop-filter: blur(18px);
}

.brand, .topbar nav, .footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img, .footer img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span, .topbar nav, .top-cta {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.topbar nav {
  gap: 22px;
  color: rgba(244,248,251,.72);
}

.top-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(0,200,255,.46);
  border-radius: 8px;
  color: var(--cyan);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 70px) 64px;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,3,3,.95), rgba(3,3,3,.58) 48%, rgba(3,3,3,.12)),
    linear-gradient(0deg, #030303 0%, rgba(3,3,3,0) 48%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("https://images.unsplash.com/photo-1763478545926-e988846846f7?auto=format&fit=crop&fm=jpg&ixlib=rb-4.1.0&q=72&w=2400");
  background-size: cover;
  background-position: center;
  filter: contrast(1.16) saturate(.92);
  animation: slowPush 18s ease-in-out infinite alternate;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.16) saturate(.92);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .15;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.8) 0 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

@keyframes slowPush {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  width: min(1040px, 100%);
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 9vw, 118px);
  font-weight: 950;
  line-height: .84;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 860px;
  color: rgba(244,248,251,.88);
  font-size: clamp(21px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.06;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #130800;
  box-shadow: 0 18px 70px rgba(255,106,0,.34);
}

.btn.secondary {
  background: rgba(255,255,255,.08);
  color: var(--ice);
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.hero-panel {
  position: absolute;
  right: clamp(16px, 5vw, 70px);
  bottom: 64px;
  z-index: 2;
  width: min(350px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(3,3,3,.48);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.08;
}

section:not(.hero) {
  padding: 92px clamp(18px, 5vw, 70px);
}

.diagnostic-section, .result-section {
  max-width: 1360px;
  margin: 0 auto;
  scroll-margin-top: 76px;
}

.diagnostic-header {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.diagnostic-header h2,
.gauge-panel h2,
.executive-panel h2 {
  max-width: 930px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
}

.progress-box {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.progress-box span {
  display: block;
  margin-bottom: 10px;
  color: rgba(244,248,251,.72);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

#progressBar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--cyan));
  transition: width .55s ease;
}

.consulting-card {
  min-height: 520px;
  display: grid;
  align-content: center;
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0, rgba(255,106,0,.16), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(0,200,255,.12), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: 0 44px 120px rgba(0,0,0,.5);
}

.card-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.consulting-card h3 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(32px, 6vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

.consulting-card p {
  max-width: 720px;
  color: rgba(244,248,251,.68);
  font-size: 18px;
  line-height: 1.55;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.options-grid[hidden],
.lead-form[hidden] {
  display: none !important;
}

body[data-diagnostic-mode="lead"] .options-grid,
body[data-diagnostic-mode="question"] .lead-form {
  display: none !important;
}

.option-button {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: var(--ice);
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.option-button:hover,
.option-button.is-selected {
  transform: translateY(-4px);
  border-color: rgba(255,106,0,.62);
  background: rgba(255,106,0,.16);
}

.option-button strong {
  font-size: 22px;
  line-height: 1;
}

.option-button span {
  color: rgba(244,248,251,.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(244,248,251,.74);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(0,0,0,.36);
  color: var(--ice);
  padding: 0 12px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.result-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-block: 1px solid rgba(255,255,255,.12);
}

.gauge-panel,
.executive-panel {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,106,0,.14), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.gauge {
  width: min(430px, 100%);
  aspect-ratio: 1.8 / 1;
  position: relative;
  margin: 26px auto 14px;
  overflow: hidden;
}

.gauge-arc {
  position: absolute;
  inset: 0;
  border-radius: 430px 430px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--red) 0deg 54deg, var(--orange) 54deg 108deg, var(--yellow) 108deg 144deg, var(--cyan) 144deg 180deg, transparent 180deg);
  mask: radial-gradient(circle at 50% 100%, transparent 0 42%, #000 43% 64%, transparent 65%);
}

.needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 78%;
  border-radius: 99px;
  background: var(--ice);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(-90deg);
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 22px rgba(255,255,255,.52);
}

.gauge-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 150px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 150px 150px 0 0;
  background: #030303;
  border: 1px solid rgba(255,255,255,.14);
}

.gauge-center strong {
  font-size: 48px;
  line-height: .8;
}

.classification {
  display: block;
  color: var(--yellow);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.gauge-panel p,
.executive-panel p {
  color: rgba(244,248,251,.68);
  line-height: 1.5;
}

.opportunity-grid {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.opportunity-grid article,
.plan-card {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  padding: 16px;
}

.opportunity-grid strong,
.plan-card span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-card strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
  line-height: 1;
}

.executive-panel .btn {
  width: 100%;
  margin-top: 18px;
}

.mobile-result-details summary {
  cursor: pointer;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(244,248,251,.72);
}

.footer strong { color: var(--ice); }
.footer a { color: var(--cyan); font-weight: 900; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .diagnostic-header,
  .result-section {
    grid-template-columns: 1fr;
  }

  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(40px, 15vw, 66px); }
  section:not(.hero) { padding-block: 70px; }
  .options-grid, .lead-form { grid-template-columns: 1fr; }
  .step-actions { display: grid; }
  .btn { width: 100%; }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(0, 200, 255, .16), transparent 34rem),
      radial-gradient(circle at 82% 18%, rgba(255, 106, 0, .12), transparent 24rem),
      #030303;
  }

  .topbar {
    height: 64px;
    padding-inline: 20px;
    grid-template-columns: 1fr auto;
  }

  .brand span {
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .top-cta {
    padding: 9px 12px;
    border-radius: 999px;
  }

  .hero {
    min-height: 100svh;
    padding: 96px 20px 28px;
    align-items: center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(3,3,3,.44), #030303 74%),
      linear-gradient(90deg, rgba(3,3,3,.88), rgba(3,3,3,.38));
  }

  .hero-bg {
    opacity: .52;
    animation: none;
  }

  .grain {
    opacity: .08;
  }

  .hero-content {
    display: grid;
    gap: 14px;
    align-content: center;
    min-height: 60svh;
  }

  .hero-content .eyebrow,
  .hero-panel,
  .diagnostic-header h2,
  #stepHelp,
  .result-detail,
  .footer p {
    display: none;
  }

  h1 {
    margin: 0;
    font-size: clamp(2.55rem, 13vw, 4.45rem);
    line-height: .88;
  }

  .hero-lead {
    max-width: 18rem;
    margin: 0;
    font-size: 0;
    line-height: 1.25;
  }

  .hero-lead::before {
    content: "Descubra sua nota em menos de 3 minutos.";
    font-size: 1.18rem;
  }

  .hero .btn {
    min-height: 58px;
    margin-top: 8px;
    border-radius: 16px;
    font-size: 0;
  }

  .hero .btn::before {
    content: "Iniciar diagnóstico";
    font-size: .86rem;
  }

  section:not(.hero) {
    padding: 28px 20px;
  }

  .diagnostic-section {
    min-height: 100svh;
    display: grid;
    align-content: center;
    gap: 14px;
  }

  .diagnostic-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
  }

  .diagnostic-header .eyebrow {
    margin: 0;
    color: rgba(244,248,251,.66);
    font-size: .78rem;
  }

  .progress-box {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .progress-box span {
    margin-bottom: 8px;
    color: rgba(244,248,251,.58);
    font-size: .72rem;
    text-align: right;
  }

  .progress-track {
    height: 5px;
    background: rgba(255,255,255,.1);
  }

  .consulting-card {
    min-height: min(620px, calc(100svh - 150px));
    align-content: stretch;
    padding: 22px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 50% 0, rgba(0, 200, 255, .14), transparent 22rem),
      linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
    box-shadow: 0 22px 70px rgba(0,0,0,.42);
    backdrop-filter: blur(18px);
  }

  .card-kicker {
    color: var(--cyan);
    font-size: .74rem;
  }

  .consulting-card h3 {
    margin: 22px 0 0;
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: .98;
  }

  .options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
  }

  .options-grid[hidden],
  .lead-form[hidden],
  body[data-diagnostic-mode="lead"] .options-grid,
  body[data-diagnostic-mode="question"] .lead-form {
    display: none !important;
  }

  .option-button {
    min-height: 72px;
    align-content: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.075);
  }

  .option-button span {
    order: 2;
    font-size: .68rem;
  }

  .option-button strong {
    font-size: 1.22rem;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .lead-form label {
    font-size: .72rem;
  }

  .lead-form input,
  .lead-form select {
    min-height: 52px;
    border-radius: 16px;
    background: rgba(0,0,0,.32);
  }

  .step-actions {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .step-actions .secondary {
    order: 2;
    min-height: 48px;
    border-radius: 15px;
    background: transparent;
  }

  .step-actions .primary {
    order: 1;
    min-height: 58px;
    border-radius: 17px;
  }

  body[data-diagnostic-mode="question"] #nextButton {
    display: none;
  }

  .result-section {
    min-height: 100svh;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 20px;
    border: 0;
  }

  .gauge-panel,
  .executive-panel {
    padding: 22px;
    border-radius: 22px;
    background:
      radial-gradient(circle at 50% 0, rgba(0,200,255,.13), transparent 18rem),
      linear-gradient(150deg, rgba(255,255,255,.115), rgba(255,255,255,.035));
    backdrop-filter: blur(18px);
  }

  .gauge-panel h2 {
    display: none;
  }

  .gauge-panel .eyebrow,
  .executive-panel .eyebrow {
    font-size: .72rem;
  }

  .gauge {
    width: min(300px, 100%);
    margin-block: 6px 10px;
  }

  .gauge-center {
    width: 128px;
    height: 78px;
  }

  .gauge-center strong {
    font-size: 3.8rem;
  }

  .classification {
    font-size: clamp(1.7rem, 9vw, 2.8rem);
  }

  .executive-panel h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .mobile-plan-summary {
    margin-bottom: 14px;
    font-size: .98rem;
    line-height: 1.35;
  }

  .mobile-result-details {
    margin: 12px 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
  }

  .mobile-result-details summary {
    padding: 16px;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .opportunity-grid {
    margin: 0;
    padding: 0 12px 12px;
  }

  .opportunity-grid article,
  .plan-card {
    border-radius: 16px;
  }

  .plan-card strong {
    font-size: 1.65rem;
  }

  .executive-panel .btn {
    min-height: 58px;
    border-radius: 17px;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
