@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #030712;
  --surface: rgba(5, 13, 28, 0.76);
  --surface-strong: rgba(13, 29, 52, 0.82);
  --ink: #f8fbff;
  --muted: #aebed2;
  --soft: #7f94ad;
  --line: rgba(116, 181, 255, 0.14);
  --line-strong: rgba(116, 181, 255, 0.34);
  --accent: #319eff;
  --accent-soft: rgba(39, 145, 255, 0.1);
  --shadow: 0 34px 86px rgba(0, 3, 12, 0.72);
}

html {
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -4%, rgba(38, 142, 255, 0.25), transparent 27rem),
    radial-gradient(circle at 8% 88%, rgba(14, 83, 190, 0.12), transparent 22rem),
    radial-gradient(circle at 94% 80%, rgba(66, 174, 255, 0.09), transparent 20rem),
    linear-gradient(155deg, #071122 0%, #030712 52%, #010309 100%);
}

body::before {
  z-index: -1;
  opacity: 0.34;
  background:
    linear-gradient(rgba(102, 169, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 169, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
  position: fixed;
  z-index: -1;
  top: -23rem;
  left: 50%;
  width: 45rem;
  height: 45rem;
  border: 1px solid rgba(111, 187, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(34, 132, 255, 0.04), 0 0 110px rgba(15, 102, 225, 0.06);
  transform: translateX(-50%);
}

.page {
  width: min(100%, 430px);
  padding: 22px 14px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 22px;
  border-color: rgba(117, 184, 255, 0.19);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(12, 28, 53, 0.75), rgba(3, 10, 23, 0.9)),
    rgba(4, 11, 25, 0.82);
  box-shadow: var(--shadow), 0 0 0 1px rgba(88, 164, 255, 0.025);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(164, 215, 255, 0.68), transparent);
}

.panel::after {
  position: absolute;
  top: -8rem;
  right: -9rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(48, 150, 255, 0.12), transparent 68%);
}

.brand {
  position: relative;
  z-index: 1;
  padding: 0 4px 22px;
  border-bottom-color: rgba(110, 175, 248, 0.13);
}

.expert-photo {
  width: 82px;
  height: 82px;
  margin-bottom: 14px;
  border-color: rgba(135, 199, 255, 0.55);
  background: #07101e;
  box-shadow:
    0 0 0 5px rgba(44, 147, 255, 0.09),
    0 16px 34px rgba(0, 3, 12, 0.46),
    0 0 34px rgba(40, 147, 255, 0.18);
}

h1 {
  font-size: clamp(27px, 8vw, 35px);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -1.1px;
}

.subtitle {
  margin-top: 11px;
  max-width: 21rem;
  color: #9eb0c6;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.55;
}

.links {
  position: relative;
  z-index: 1;
  gap: 9px;
  padding-top: 18px;
}

.option {
  min-height: 72px;
  grid-template-columns: 40px 1fr 28px;
  gap: 11px;
  padding: 11px 12px;
  border-color: rgba(109, 174, 248, 0.13);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 39, 68, 0.68), rgba(6, 15, 31, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 6px 18px rgba(0, 2, 9, 0.16);
}

.option:first-child {
  border-color: rgba(80, 167, 255, 0.31);
  background: linear-gradient(145deg, rgba(18, 56, 98, 0.72), rgba(6, 22, 44, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 62, 139, 0.1);
}

.option:hover,
.option:focus-visible {
  border-color: rgba(67, 161, 255, 0.52);
  background: linear-gradient(145deg, rgba(24, 59, 100, 0.84), rgba(8, 22, 44, 0.94));
  box-shadow: 0 12px 30px rgba(0, 69, 155, 0.17), 0 0 0 3px rgba(36, 138, 255, 0.07);
}

.icon {
  width: 40px;
  height: 40px;
  border-color: rgba(78, 167, 255, 0.19);
  border-radius: 13px;
  color: #55b0ff;
  background: linear-gradient(145deg, rgba(39, 139, 255, 0.13), rgba(15, 74, 151, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.label {
  color: #f6faff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.12px;
}

.hint {
  margin-top: 4px;
  color: #8094ad;
  font-size: 10.5px;
  line-height: 1.3;
}

.arrow {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(85, 174, 255, 0.14);
  color: #61b6ff;
  background: rgba(37, 137, 250, 0.08);
}

.arrow svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 390px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 100svh;
    padding: 9px;
  }

  .panel {
    max-height: none;
    padding: 19px 13px 13px;
    border-radius: 23px;
  }

  .brand {
    padding-bottom: 15px;
  }

  .expert-photo {
    width: 64px;
    height: 64px;
    margin-bottom: 9px;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .links {
    gap: 7px;
    padding-top: 11px;
  }

  .option {
    min-height: 62px;
    grid-template-columns: 36px 1fr 25px;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .label {
    font-size: 12.5px;
  }

  .hint {
    font-size: 9.8px;
  }

  .arrow {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 390px) and (max-height: 700px) {
  .hint { display: block; }
  .option { min-height: 56px; }
  .expert-photo { width: 55px; height: 55px; }
  h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Padrao visual compartilhado entre os experts */
body {
  background: radial-gradient(circle at 50% 0%, #0b1d38 0%, #040a15 100%);
}

body::before,
body::after {
  display: none;
}

.page {
  width: min(100%, 400px);
  padding: 16px 0;
}

.panel {
  overflow: visible;
  padding: 32px 28px 24px;
  border: 1px solid rgba(75, 157, 255, 0.15);
  border-radius: 28px;
  background: rgba(4, 11, 23, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.panel::before,
.panel::after {
  display: none;
}

.brand {
  padding: 0;
  margin: 4px 0 0;
  border: 0;
  text-align: center;
}

.expert-photo {
  display: none;
}

h1 {
  display: inline-block;
  margin: 0 0 2px;
  font-size: 21.6px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -0.45px;
  color: #fafcff;
  background: linear-gradient(135deg, #fafcff 20%, #4ba8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  color: #7188a4;
  font-size: 10.24px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.85px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 0;
}

.option,
.option:first-child {
  width: 100%;
  min-height: 62px;
  grid-template-columns: 32px 1fr 16px;
  gap: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(13, 27, 45, 0.52);
  box-shadow: none;
}

.option:first-child {
  border-color: rgba(75, 157, 255, 0.25);
  background: linear-gradient(135deg, rgba(58, 151, 255, 0.07), rgba(37, 117, 220, 0.05));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.option:hover,
.option:focus-visible {
  border-color: rgba(75, 157, 255, 0.42);
  background: rgba(20, 44, 75, 0.62);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #55adff;
  background: rgba(18, 42, 72, 0.56);
  box-shadow: none;
}

.icon svg {
  width: 16px;
  height: 16px;
}

.text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px 0 10px;
}

.label {
  font-size: 13.6px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.1px;
}

.hint {
  margin-top: 3px;
  color: #8195ae;
  font-size: 11.2px;
  font-weight: 400;
  line-height: 1.3;
}

.arrow {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  color: #568fc8;
  background: transparent;
}

.arrow svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 420px) {
  .page {
    width: 100%;
    padding: 8px;
  }

  .panel {
    min-height: auto;
    padding: 26px 20px 20px;
    border-width: 1px;
    border-radius: 24px;
  }

  .option,
  .option:first-child {
    min-height: 62px;
    padding: 8px 10px;
  }
}

@media (max-width: 350px) {
  .panel { padding-inline: 16px; }
  .label { font-size: 12.8px; }
  .hint { font-size: 10.5px; }
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page {
  height: 100%;
  min-height: 0;
}

.panel {
  max-height: calc(100svh - 16px);
  overflow: hidden;
}

@media (max-height: 600px) {
  .panel { padding-block: 18px 14px; }
  .brand { margin-top: 0; }
  h1 { font-size: 19px; }
  .subtitle { margin-bottom: 5px; font-size: 9px; }
  .links { gap: 5px; margin-bottom: 0; }
  .option,
  .option:first-child { min-height: 52px; padding-block: 6px; }
  .icon { width: 29px; height: 29px; }
  .label { font-size: 12.2px; }
  .hint { margin-top: 2px; font-size: 9.5px; }
}

/* Camada final de sofisticacao visual */
.panel {
  position: relative;
  background:
    linear-gradient(145deg, rgba(12, 29, 55, 0.58), rgba(3, 10, 22, 0.76)),
    rgba(4, 11, 23, 0.58);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(213, 237, 255, 0.035),
    0 0 0 1px rgba(33, 125, 236, 0.025);
}

.panel::before {
  position: absolute;
  z-index: 0;
  inset: 0 16% auto;
  display: block;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(139, 207, 255, 0.58), transparent);
  box-shadow: 0 0 18px rgba(45, 153, 255, 0.28);
}

.panel::after {
  position: absolute;
  z-index: 0;
  top: -9rem;
  right: -9rem;
  display: block;
  width: 21rem;
  height: 21rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(45, 145, 255, 0.09), transparent 67%);
}

.brand,
.links {
  position: relative;
  z-index: 1;
}

.brand::after {
  display: block;
  width: 30px;
  height: 1px;
  margin: 8px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(78, 170, 255, 0.68), transparent);
}

h1 {
  filter: drop-shadow(0 4px 14px rgba(31, 131, 238, 0.12));
}

.subtitle {
  color: #7f96b1;
  text-shadow: 0 1px 10px rgba(28, 126, 235, 0.08);
}

.option,
.option:first-child {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 39, 67, 0.62), rgba(6, 15, 31, 0.78)),
    rgba(13, 27, 45, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(230, 244, 255, 0.025),
    0 5px 16px rgba(0, 3, 11, 0.15);
}

.option::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(124, 201, 255, 0.055) 50%, transparent 82%);
  transform: translateX(-45%);
  transition: opacity 220ms ease, transform 380ms ease;
}

.option:first-child {
  background:
    linear-gradient(135deg, rgba(26, 76, 129, 0.58), rgba(7, 25, 48, 0.84)),
    rgba(13, 31, 55, 0.7);
  box-shadow:
    0 5px 18px rgba(0, 39, 92, 0.19),
    inset 0 1px 0 rgba(180, 222, 255, 0.05),
    0 0 0 1px rgba(48, 145, 255, 0.035);
}

.option:hover::before,
.option:focus-visible::before {
  opacity: 1;
  transform: translateX(45%);
}

.option:hover,
.option:focus-visible {
  background:
    linear-gradient(145deg, rgba(25, 57, 95, 0.7), rgba(8, 21, 42, 0.88)),
    rgba(15, 34, 58, 0.7);
  box-shadow:
    0 9px 24px rgba(0, 48, 110, 0.2),
    inset 0 1px 0 rgba(207, 235, 255, 0.045),
    0 0 0 2px rgba(42, 139, 248, 0.045);
}

.icon {
  border-color: rgba(110, 185, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(49, 137, 232, 0.14), rgba(12, 48, 91, 0.13)),
    rgba(18, 42, 72, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(220, 241, 255, 0.045),
    0 4px 10px rgba(0, 9, 25, 0.18);
}

.option:first-child .icon {
  color: #79c3ff;
  border-color: rgba(114, 191, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(228, 245, 255, 0.065),
    0 0 15px rgba(36, 142, 255, 0.09);
}

.label {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.arrow {
  opacity: 0.78;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.option:hover .arrow,
.option:focus-visible .arrow {
  opacity: 1;
  color: #75c2ff;
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────
   Uma tela no mobile, em qualquer aparelho.
   Mesmo motivo do quiz: svh é o menor viewport,
   então nada fica sob a barra do navegador.
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body {
    height: var(--app-h, 100svh);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page {
    height: var(--app-h, 100svh);
    min-height: 0 !important;
  }

  .panel {
    max-height: calc(var(--app-h, 100svh) - 16px);
    overflow: hidden;
  }
}
