/* Sena Tour. Biolink */

:root {
  --azul-sena: #2D4C78;
  --azul-deep: #0E1F37;
  --azul-night: #060E1B;
  --branco: #FFFFFF;
  --cinza: #D9D9D9;
  --vermelho-cha: #B85C5C;
  --vermelho-cha-soft: #C97373;

  --radius-card: 28px;
  --radius-pill: 999px;

  --max: 460px;

  --font-title: "Questrial", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--azul-night);
  color: var(--branco);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #1a3257 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 100%, #122943 0%, transparent 60%),
    var(--azul-night);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 80% 12%, rgba(184,92,92,0.18) 0%, transparent 70%),
    radial-gradient(50% 35% at 10% 60%, rgba(45,76,120,0.40) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: glowDrift 22s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(0,2%,0); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* ============ HERO ============ */

.hero {
  text-align: center;
  padding: 28px 8px 36px;
  animation: fadeUp 0.9s 0.05s both ease-out;
}

.hero__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.hero__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(184,92,92,0.28) 0%, rgba(45,76,120,0.12) 35%, transparent 70%);
  opacity: 0;
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
  animation: logoGlow 2.4s 0.6s ease-out forwards;
}

.hero__mark img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 96px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transform: scale(0.94);
  animation: logoBuild 2.0s 0.35s cubic-bezier(.65, 0, .25, 1) forwards;
}

@keyframes logoBuild {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; transform: scale(0.94); }
  18%  { opacity: 1; }
  85%  { clip-path: inset(0 0 0 0); transform: scale(1.02); }
  100% { clip-path: inset(0 0 0 0); opacity: 1; transform: scale(1); }
}

@keyframes logoGlow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.05); }
}

.hero__tagline {
  font-family: var(--font-title);
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--branco);
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 400;
}

.hero__tagline em {
  font-style: italic;
  color: rgba(255,255,255,0.72);
}

.hero__meta {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  display: inline-block;
}

/* ============ STACK CARDS ============ */

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.card {
  position: relative;
  display: block;
  height: 200px;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--branco);
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 18px 38px -18px rgba(0,0,0,0.55),
    0 2px 6px -2px rgba(0,0,0,0.4);
  transform: translateY(12px);
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease;
  will-change: transform;
}

.card:nth-child(1) { animation-delay: 0.10s; }
.card:nth-child(2) { animation-delay: 0.18s; }
.card:nth-child(3) { animation-delay: 0.26s; }
.card:nth-child(4) { animation-delay: 0.34s; }
.card:nth-child(5) { animation-delay: 0.42s; }
.card:nth-child(6) { animation-delay: 0.50s; }

.card--hero {
  height: 260px;
  border-radius: 32px;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 26px 48px -18px rgba(0,0,0,0.65),
    0 4px 12px -4px rgba(0,0,0,0.55);
  outline: none;
}

.card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
  filter: saturate(1.05);
}

.card:hover .card__photo img,
.card:focus-visible .card__photo img {
  transform: scale(1.08);
}

.card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,14,27,0.20) 0%, rgba(6,14,27,0.10) 35%, rgba(6,14,27,0.78) 100%),
    linear-gradient(95deg, rgba(45,76,120,0.55) 0%, rgba(45,76,120,0.10) 55%, rgba(0,0,0,0) 100%);
}

.card--hero .card__veil {
  background:
    linear-gradient(180deg, rgba(6,14,27,0.15) 0%, rgba(6,14,27,0.05) 30%, rgba(6,14,27,0.85) 100%),
    linear-gradient(95deg, rgba(14,31,55,0.65) 0%, rgba(14,31,55,0.20) 55%, rgba(0,0,0,0) 100%);
}

.card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 20px;
}

.card__heading h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.card--hero .card__heading h2 {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.0;
}

.card__heading h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.92);
}

.card__sub {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 26ch;
  letter-spacing: 0.005em;
}

.card--hero .card__sub {
  font-size: 13.5px;
  max-width: 28ch;
}

/* ===== Pill ===== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 14px 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--branco);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pill svg {
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}

.card:hover .pill svg {
  transform: translateX(3px);
}

.pill--accent {
  background: var(--vermelho-cha);
  border-color: var(--vermelho-cha-soft);
  color: var(--branco);
  box-shadow: 0 8px 22px -10px rgba(184,92,92,0.6);
}

.card:hover .pill--accent {
  background: var(--vermelho-cha-soft);
}

/* ===== Arrow canto superior direito ===== */

.arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), background 0.3s ease;
}

.card:hover .arrow {
  background: rgba(255,255,255,0.22);
  transform: translate(2px, -2px) rotate(0deg);
}

/* ============ FOOTER ============ */

.foot {
  margin-top: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp 0.9s 0.6s both ease-out;
}

.foot__ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--branco);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.foot__ig:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.30);
}

.foot__copy {
  margin: 4px 0 8px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.foot__mark {
  width: 110px;
  opacity: 0.55;
  margin-top: 4px;
}

/* ============ QUIZ MODAL ============ */

.quiz {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(6, 14, 27, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, visibility 0s linear 0.35s;
}

.quiz.is-open {
  visibility: visible;
  opacity: 1;
  background: rgba(6, 14, 27, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, visibility 0s;
}

.quiz__sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background:
    linear-gradient(180deg, rgba(45,76,120,0.35) 0%, rgba(14,31,55,0.95) 60%, rgba(6,14,27,0.98) 100%),
    var(--azul-deep);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  padding: 28px 22px 32px;
  color: var(--branco);
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,0.65);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quiz.is-open .quiz__sheet {
  transform: translateY(0);
}

.quiz__sheet.is-stepping .quiz__question,
.quiz__sheet.is-stepping .quiz__options {
  opacity: 0;
  transform: translateY(8px);
}

.quiz__handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
  margin: -8px auto 16px;
}

.quiz__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.quiz__head-text { flex: 1; min-width: 0; }

.quiz__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.quiz__intro {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

.quiz__close {
  appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--branco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.quiz__close:hover { background: rgba(255,255,255,0.16); }

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 22px;
}

.quiz__step-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  white-space: nowrap;
}

.quiz__progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vermelho-cha), var(--vermelho-cha-soft));
  border-radius: 999px;
  width: 0%;
  transition: width 0.45s cubic-bezier(.2,.7,.2,1);
}

.quiz__question {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz__option {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--branco);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: quizOption 0.45s cubic-bezier(.2,.7,.2,1) forwards;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.quiz__option:hover,
.quiz__option:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
  outline: none;
}

.quiz__option svg { color: rgba(255,255,255,0.55); transition: transform 0.3s ease, color 0.3s ease; }
.quiz__option:hover svg { color: var(--branco); transform: translateX(3px); }

@keyframes quizOption {
  to { opacity: 1; transform: translateY(0); }
}

.quiz__back {
  appearance: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  padding: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz__back:hover { color: var(--branco); }

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ============ RESPONSIVE ============ */

@media (min-width: 480px) {
  .card { height: 220px; }
  .card--hero { height: 290px; }
}
