/* Root landing page — a polished entry point for the three sections. */

.root-page {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; padding: 26px 22px 34px;
}

/* ── hero panel ─────────────────────────────────────────────────── */

.root-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: 34px;
  padding: 38px 44px;
  border-radius: 26px;
  border: 1px solid rgba(72, 216, 255, .18);
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(29, 140, 255, .3), transparent 58%),
    radial-gradient(90% 130% at 96% 100%, rgba(72, 216, 255, .12), transparent 62%),
    linear-gradient(135deg, #071022 0%, #0a1a37 52%, #081226 100%);
  box-shadow: 0 28px 74px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.root-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .32; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 165, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 255, .07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 26% 36%, #000 16%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 26% 36%, #000 16%, transparent 72%);
}
.root-hero.no-art { grid-template-columns: 1fr; }

.root-hero-copy { position: relative; z-index: 2; max-width: 660px; }
.root-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(72, 216, 255, .32);
  background: rgba(72, 216, 255, .09);
  color: var(--brand); font-size: 12.5px; font-weight: 800;
}
.root-hero h1 {
  margin: 15px 0 0; color: #f3f7ff;
  font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.35;
  letter-spacing: -.4px;
}
.root-hero h1 span {
  background: linear-gradient(100deg, #a9edff 0%, var(--brand) 45%, #1d8cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.root-hero p {
  margin: 12px 0 0; max-width: 520px;
  color: var(--muted); font-size: 15px; line-height: 1.9;
}

.root-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.root-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800; transition: .2s;
}
.root-btn.primary {
  background: linear-gradient(260deg, #a9edff, var(--brand) 52%, #1d8cff);
  color: #04182e; box-shadow: 0 10px 28px rgba(72, 216, 255, .28);
}
.root-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(72, 216, 255, .4); }
.root-btn.ghost {
  border: 1px solid rgba(72, 216, 255, .42); color: var(--cyan);
}
.root-btn.ghost:hover { background: rgba(72, 216, 255, .1); transform: translateY(-2px); }
.root-btn.ghost.help { border-color: rgba(63, 169, 255, .55); color: #9dd8ff; }
.root-btn.ghost.help:hover { background: rgba(63, 169, 255, .12); }
.root-btn span { transition: transform .2s; }
.root-btn:hover span { transform: translateX(-4px); }

.root-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px dashed rgba(120, 165, 255, .22);
}
.root-stat b {
  display: block; font-size: 22px; font-weight: 800; color: var(--cyan);
  line-height: 1.3;
}
.root-stat span { font-size: 11.5px; color: var(--muted); }

.root-hero-art {
  position: relative; z-index: 2; justify-self: center;
  display: grid; grid-template-columns: 1.55fr .75fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 16px 14px;
  width: 100%; max-width: 780px;
  padding: 16px 12px;
}
.root-hero-art::before {
  content: ""; position: absolute; inset: -14% -8%; pointer-events: none;
  background:
    radial-gradient(circle at 62% 42%, rgba(72, 216, 255, .3), transparent 58%),
    radial-gradient(circle at 30% 78%, rgba(72, 216, 255, .2), transparent 62%);
  filter: blur(26px);
}

.root-art-link {
  display: block; align-self: start; text-decoration: none;
}
.root-art-link.main { grid-row: 1 / 3; align-self: center; }
.root-art-link.small { align-self: start; }
.root-art-link:focus-visible { outline: none; }
.root-art-link:focus-visible .root-art-tile {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 22px 50px rgba(0, 0, 0, .55);
}

.root-art-tile {
  --accent: #48d8ff; --accent-soft: rgba(72, 216, 255, .18);
  --float: 5px;
  position: relative; z-index: 1; margin: 0; overflow: hidden;
  align-self: start;
  border-radius: 15px; border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 30% 18%, rgba(29, 140, 255, .14), transparent 62%),
    #081326;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: center;
  animation: rootFloat 6s ease-in-out infinite;
}
.root-art-tile.main {
  border-radius: 18px; border-color: rgba(72, 216, 255, .3);
  animation-delay: -1.2s;
}
.root-art-tile.loyalty { --accent: #1d8cff; --accent-soft: rgba(29, 140, 255, .2); --float: 3px; animation-delay: -3.4s; }
.root-art-tile.help { --accent: #3fa9ff; --accent-soft: rgba(63, 169, 255, .2); --float: 3px; animation-delay: -2.2s; }
.root-art-tile img {
  display: block; width: 100%; height: auto;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.root-art-link:hover .root-art-tile img { transform: scale(1.035); }
.root-art-tile.fallback {
  display: grid; place-items: center; width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 22%, var(--accent-soft), transparent 62%),
    linear-gradient(135deg, #0b1830, #0a1224);
  color: var(--accent);
}
.root-art-ico { display: grid; place-items: center; opacity: .9; }
.root-art-ico svg { width: 34px; height: 34px; }
.root-art-tile.main .root-art-ico svg { width: 50px; height: 50px; }
.root-art-label {
  position: absolute; z-index: 2;
  inset-block-end: 9px; inset-inline-start: 9px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(5, 10, 20, .74);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #f3f7ff; font-size: 10.5px; font-weight: 700;
  backdrop-filter: blur(6px);
}

@keyframes rootFloat {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(calc(var(--float, 5px) * -1)) rotate(var(--tilt, 0deg)); }
}

/* ── section heading ────────────────────────────────────────────── */

.root-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 34px 0 16px;
}
.root-section-head h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 19px; font-weight: 800;
}
.root-bar {
  width: 4px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), #1d8cff);
  box-shadow: 0 0 14px rgba(72, 216, 255, .55);
}
.root-note { color: var(--muted); font-size: 12px; }

/* ── section cards ──────────────────────────────────────────────── */

.root-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.root-card {
  position: relative; display: flex; align-items: flex-start; gap: 18px;
  padding: 24px; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(120, 165, 255, .14);
  background: linear-gradient(180deg, rgba(17, 29, 52, .95), rgba(10, 18, 34, .96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1), border-color .26s, box-shadow .26s;
}
.root-card::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
.root-card:hover, .root-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .55);
  outline: none;
}

.root-ico {
  position: relative; flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
}
.root-ico svg { width: 27px; height: 27px; }

.root-body { flex: 1; min-width: 0; }
.root-body h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.6; }
.root-body p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.root-meta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 13px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); color: var(--accent);
  font-size: 11.5px; font-weight: 700;
}
.root-arrow {
  position: relative; margin-top: 2px;
  color: var(--accent); font-size: 20px; font-weight: 700;
  transition: transform .2s;
}
.root-card:hover .root-arrow { transform: translateX(-6px); }

/* ── footer ─────────────────────────────────────────────────────── */

.root-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 18px;
  border-top: 1px solid rgba(120, 165, 255, .12);
  color: var(--muted); font-size: 11.5px;
}

/* ── responsive ─────────────────────────────────────────────────── */

@media (max-width: 1060px) {
  .root-hero { grid-template-columns: 1fr; gap: 22px; padding: 30px 28px; }
  .root-hero.no-art { grid-template-columns: 1fr; }
  .root-hero-art { max-width: 720px; margin: 0 auto; }
  .root-hero-copy { max-width: 100%; }
}

@media (max-width: 640px) {
  .root-page { padding: 14px 14px 26px; }
  .root-hero { padding: 22px 18px; border-radius: 20px; gap: 18px; }
  .root-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .root-hero p { font-size: 13px; line-height: 1.8; }
  .root-actions { gap: 8px; margin-top: 18px; }
  .root-btn { padding: 10px 18px; font-size: 12.5px; }
  .root-stats { gap: 20px; margin-top: 22px; padding-top: 16px; }
  .root-stat b { font-size: 19px; }
  .root-stat span { font-size: 10.5px; }
  .root-hero-art {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto; gap: 12px 10px;
    padding: 12px 8px;
  }
  .root-art-link.main { grid-row: auto; grid-column: 1 / -1; align-self: start; }
  .root-art-tile.main { border-radius: 14px; }
  .root-art-tile.small { border-radius: 12px; }
  .root-art-label { inset-block-end: 7px; inset-inline-start: 7px; padding: 3px 8px; font-size: 9.5px; }
  .root-art-ico svg { width: 26px; height: 26px; }
  .root-art-tile.main .root-art-ico svg { width: 38px; height: 38px; }
  .root-section-head { margin: 26px 0 13px; }
  .root-note { display: none; }
  .root-grid { grid-template-columns: 1fr; gap: 13px; }
  .root-card { padding: 19px 17px; gap: 14px; border-radius: 17px; }
  .root-ico { width: 48px; height: 48px; border-radius: 13px; }
  .root-ico svg { width: 24px; height: 24px; }
  .root-body h2 { font-size: 16.5px; }
  .root-body p { font-size: 12px; }
  .root-foot { margin-top: 28px; font-size: 10.5px; }
}
