:root {
  --void: #070b14;
  --ink: #0a1220;
  --ink-lift: #121c2e;
  --panel: rgba(14, 22, 38, 0.78);
  --panel-solid: #101a2c;
  --panel-hot: rgba(18, 30, 48, 0.94);
  --stroke: rgba(232, 238, 245, 0.1);
  --stroke-hot: rgba(232, 238, 245, 0.26);
  --ice: #e8eef5;
  --mist: #9aa8bc;
  --fog: #66758a;
  --teal: #3dd6c3;
  --teal-deep: #1fa896;
  --teal-glow: rgba(61, 214, 195, 0.32);
  --apricot: #f4a261;
  --apricot-deep: #d9843f;
  --gold: #f0c75e;
  --veil: rgba(7, 11, 20, 0.9);
  --round: 18px;
  --round-sm: 10px;
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 30px);
  --display: "Unbounded", sans-serif;
  --body: "DM Sans", sans-serif;
  --snap: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 22px 48px rgba(0, 0, 0, 0.42);
}

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

html { scroll-behavior: smooth; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: var(--ice);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere__plane { position: absolute; inset: 0; }
.atmosphere__plane--phone { display: none; }
.atmosphere__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: drift 28s ease-in-out infinite alternate;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.42) 0%, rgba(7, 11, 20, 0.68) 48%, rgba(7, 11, 20, 0.94) 100%),
    radial-gradient(ellipse 65% 45% at 70% 8%, rgba(61, 214, 195, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 70%, rgba(244, 162, 97, 0.1), transparent 55%);
}
@media (max-width: 768px) {
  .atmosphere__plane:not(.atmosphere__plane--phone) { display: none; }
  .atmosphere__plane--phone { display: block; }
}

@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes ascend {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 214, 195, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(61, 214, 195, 0); }
}

/* Age gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--veil);
  backdrop-filter: blur(10px);
}
.gate.is-hidden { display: none; }
.gate__panel {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, var(--panel-solid), var(--ink-lift));
  border: 1px solid var(--stroke-hot);
  border-radius: var(--round);
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: var(--lift);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: ascend 0.5s var(--snap) both;
}
.gate__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--void);
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  animation: pulseRing 2.4s ease-in-out infinite;
}
.gate__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apricot);
  margin-bottom: 8px;
  font-weight: 600;
}
.gate__panel h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  margin-bottom: 10px;
  line-height: 1.2;
}
.gate__panel > p {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.gate__row {
  display: grid;
  gap: 10px;
}
.gate__ok,
.gate__ko {
  border-radius: var(--round-sm);
  padding: 13px 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--snap), background var(--snap), border-color var(--snap);
}
.gate__ok {
  border: none;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--void);
  box-shadow: 0 10px 28px var(--teal-glow);
}
.gate__ok:hover { transform: translateY(-2px); }
.gate__ko {
  background: transparent;
  border: 1px solid var(--stroke-hot);
  color: var(--mist);
}
.gate__ko:hover {
  color: var(--ice);
  border-color: var(--mist);
}
.gate__block {
  display: none;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--fog);
}
.gate__block.is-on { display: block; }

/* Compliance strip */
.strip {
  background: linear-gradient(90deg, var(--apricot-deep), var(--apricot) 55%, #f7b87a);
  color: #1a120c;
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.strip__badge {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #1a120c;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--display);
}
.strip__copy {
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.masthead__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 42px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(61, 214, 195, 0.18));
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(232, 238, 245, 0.04);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ice);
  transition: transform var(--snap), opacity var(--snap);
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu a {
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color var(--snap), background var(--snap), border-color var(--snap);
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--ice);
  background: rgba(61, 214, 195, 0.1);
  border-color: rgba(61, 214, 195, 0.28);
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 18px;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--stroke);
    display: none;
  }
  .menu.is-open { display: flex; animation: slideDown 0.25s ease; }
  .menu a { padding: 13px 14px; border-radius: 12px; }
}

/* Hero */
main { flex: 1; }

.spotlight {
  position: relative;
  text-align: center;
  padding: clamp(40px, 8vw, 84px) var(--gutter) clamp(28px, 4vw, 40px);
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(520px, 80vw);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--teal), var(--apricot), transparent);
  opacity: 0.7;
  animation: ascend 0.8s 0.2s both;
}
.spotlight__brand {
  width: min(460px, 86vw);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.5));
  animation: ascend 0.65s var(--snap) both;
}
.spotlight h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto 14px;
  animation: ascend 0.65s 0.08s var(--snap) both;
}
.spotlight__lead {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--mist);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 500;
  animation: ascend 0.65s 0.16s var(--snap) both;
}

/* Ranking */
.ranking {
  padding: 8px 0 52px;
}
.ranking__list {
  display: grid;
  gap: 24px;
}

.tile {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--round);
  overflow: visible;
  transition: border-color var(--snap), transform var(--snap), box-shadow var(--snap), background var(--snap);
}
.tile:hover {
  border-color: rgba(61, 214, 195, 0.35);
  background: var(--panel-hot);
  box-shadow: var(--lift);
  transform: translateY(-3px);
}
.tile--lead {
  border: 2px solid rgba(240, 199, 94, 0.55);
  box-shadow: 0 0 0 1px rgba(240, 199, 94, 0.1), 0 20px 44px rgba(240, 199, 94, 0.12);
}
.tile--silver { border-color: rgba(176, 196, 214, 0.48); }
.tile--bronze { border-color: rgba(244, 162, 97, 0.5); }

.tile__rank {
  position: absolute;
  top: -13px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 8px 15px 9px;
  border-radius: 999px 999px 999px 10px;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
}
.tile__rank em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.tile__rank--1 {
  font-size: 1.12rem;
  color: #1a1205;
  background: linear-gradient(135deg, #ffe8a3, var(--gold) 45%, #d4a42e);
  border: 1px solid rgba(255, 240, 190, 0.65);
  box-shadow: 0 10px 24px rgba(240, 199, 94, 0.38);
}
.tile__rank--2 {
  font-size: 1.02rem;
  color: #101820;
  background: linear-gradient(135deg, #f4f8fb, #b7c6d4 50%, #8ea3b6);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.tile__rank--3 {
  font-size: 1.02rem;
  color: #2a1408;
  background: linear-gradient(135deg, #ffc895, var(--apricot) 48%, var(--apricot-deep));
  border: 1px solid rgba(255, 220, 180, 0.55);
}

.tile__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.tile__body {
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "mark score"
    "blurb blurb"
    "action action"
    "fine fine";
  gap: 12px 14px;
  align-items: center;
  padding: 22px 16px 16px;
}
.tile__mark {
  grid-area: mark;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  width: fit-content;
}
.tile__mark img {
  width: 140px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}
.tile__score {
  grid-area: score;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-left: auto;
  border-radius: 50%;
  border: 2px solid rgba(61, 214, 195, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(61, 214, 195, 0.18), transparent 60%),
    rgba(7, 11, 20, 0.55);
}
.tile__score strong {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tile__score span {
  font-size: 0.65rem;
  color: var(--fog);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.tile__blurb {
  grid-area: blurb;
  text-align: center;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.55;
}
.tile__action {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--void);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px var(--teal-glow);
  transition: transform var(--snap), box-shadow var(--snap);
}
.tile:hover .tile__action {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(61, 214, 195, 0.45);
}
.tile__fine {
  grid-area: fine;
  text-align: center;
  font-size: 0.72rem;
  color: var(--fog);
}

@media (min-width: 769px) {
  .tile__body {
    grid-template-columns: 165px 100px 1fr auto;
    grid-template-areas:
      "mark score blurb action"
      "mark score fine fine";
    gap: 14px 20px;
    padding: 24px 26px 16px;
  }
  .tile__blurb {
    text-align: left;
    font-size: 0.95rem;
  }
  .tile__action {
    min-width: 220px;
    min-height: 54px;
    font-size: 0.84rem;
  }
  .tile__score {
    width: 100px;
    height: 100px;
    margin: 0;
  }
}

/* Inner pages */
.leaf {
  padding: clamp(42px, 8vw, 76px) var(--gutter) 28px;
  text-align: center;
}
.leaf h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.leaf p {
  color: var(--mist);
  max-width: 560px;
  margin: 0 auto;
}
.prose {
  padding: 12px 0 56px;
}
.prose-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stroke);
  border-radius: var(--round);
  padding: clamp(22px, 4vw, 36px);
  max-width: 820px;
  margin: 0 auto 18px;
}
.prose-card h2 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin: 0 0 10px;
}
.prose-card p {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.prose-card p:last-child { margin-bottom: 0; }
.prose-card ul {
  margin: 0 0 14px 1.1rem;
  color: var(--mist);
}
.prose-card li { margin-bottom: 6px; }
.prose-card a { color: var(--teal); }

.axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.axis__cell {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--round);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.axis__cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--apricot));
}
.axis__cell .tag {
  font-family: var(--display);
  color: var(--apricot);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.axis__cell h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.axis__cell p {
  color: var(--mist);
  font-size: 0.9rem;
}
@media (max-width: 800px) {
  .axis { grid-template-columns: 1fr; }
}

/* Footer */
.basement {
  margin-top: auto;
  padding: 44px 0 108px;
  border-top: 1px solid var(--stroke);
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(10px);
}
.basement__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.basement__brand {
  margin-bottom: 24px;
}
.basement__brand img {
  height: 50px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin: 0 auto;
}
.basement__title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin-bottom: 24px;
}
.basement__block {
  width: 100%;
  max-width: 880px;
  margin-bottom: 20px;
}
.basement__block h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.basement__block p {
  color: var(--mist);
  font-size: 0.9rem;
  line-height: 1.65;
}
.basement__block a {
  color: var(--teal);
  text-underline-offset: 2px;
}
.basement__rule {
  width: 100%;
  max-width: 880px;
  height: 1px;
  background: var(--stroke);
  margin: 10px 0 22px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 8px;
  padding: 16px 14px;
  width: 100%;
  max-width: 880px;
  background: #05080f;
  border: 1px solid var(--stroke);
  border-radius: var(--round);
}
.trust a,
.trust span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px 6px;
  min-height: 48px;
  transition: opacity var(--snap), transform var(--snap);
}
.trust a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.trust img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.trust__age img {
  height: 42px;
  width: 42px;
  max-width: 42px;
}
.basement__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 18px;
}
.basement__links a {
  text-decoration: none;
  color: var(--mist);
  font-size: 0.85rem;
}
.basement__links a:hover { color: var(--teal); }
.basement__copy {
  font-size: 0.78rem;
  color: var(--fog);
}

/* Dock */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 0.32s var(--snap);
}
.dock.is-visible { transform: translateY(0); }
.dock__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}
.dock__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.dock__meta strong {
  font-family: var(--display);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.dock__meta span {
  font-size: 0.65rem;
  color: var(--fog);
}
.dock__logo {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 6px 10px;
  flex-shrink: 0;
}
.dock__logo img {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}
.dock__score {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}
.dock__cta {
  flex-shrink: 0;
  text-decoration: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--void);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 20px var(--teal-glow);
}
@media (max-width: 640px) {
  .dock__meta { display: none; }
  .dock__cta { padding: 10px 12px; font-size: 0.66rem; }
  .dock__score { font-size: 1rem; }
}

/* Cookie toast */
.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 950;
  width: min(340px, calc(100vw - 24px));
  background: var(--panel-solid);
  border: 1px solid var(--stroke-hot);
  border-radius: var(--round);
  padding: 16px;
  box-shadow: var(--lift);
  display: none;
}
.toast.is-on { display: block; animation: ascend 0.35s ease; }
.toast p {
  font-size: 0.82rem;
  color: var(--mist);
  margin-bottom: 12px;
  line-height: 1.5;
}
.toast a { color: var(--teal); }
.toast button {
  width: 100%;
  border: none;
  border-radius: var(--round-sm);
  padding: 11px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--void);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
