/* Arrow Hunter — To Be Master
   Clay hub + neon cyber: #0F0F23 bg, purple/pink neon, Fredoka + Nunito */

:root {
  --ahtm-bg: #0f0f23;
  --ahtm-bg-2: #1a1a3e;
  --ahtm-surface: rgba(255, 255, 255, 0.88);
  --ahtm-surface-dim: rgba(255, 255, 255, 0.12);
  --ahtm-primary: #7c3aed;
  --ahtm-secondary: #a78bfa;
  --ahtm-cta: #f43f5e;
  --ahtm-neon-pink: #ec4899;
  --ahtm-neon-mint: #34d399;
  --ahtm-neon-cyan: #22d3ee;
  --ahtm-neon-orange: #fb923c;
  --ahtm-text: #e2e8f0;
  --ahtm-muted: #94a3b8;
  --ahtm-font-display: "Fredoka", system-ui, sans-serif;
  --ahtm-font-body: "Nunito", system-ui, sans-serif;
  --ahtm-radius: 20px;
  --ahtm-radius-lg: 28px;
  --ahtm-dock-h: 72px;
  --ahtm-max: 72rem;
  --ahtm-clay-shadow:
    0 8px 0 rgba(0, 0, 0, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

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

body.ahtm-body {
  margin: 0;
  font-family: var(--ahtm-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ahtm-text);
  background: var(--ahtm-bg);
  overflow-x: hidden;
  padding-bottom: calc(var(--ahtm-dock-h) + 1.5rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ahtm-neon-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--ahtm-secondary); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.25);
  color: var(--ahtm-secondary);
}

/* AOS fallback */
html:not(.aos-init) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

html.aos-init [data-aos] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ahtm-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ahtm-cta);
  color: #fff;
  font-weight: 700;
}

.ahtm-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Background —— */
.ahtm-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ahtm-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(236, 72, 153, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(124, 58, 237, 0.4), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.15), transparent 55%),
    linear-gradient(165deg, #1a0a2e 0%, var(--ahtm-bg) 45%, #0a0a18 100%);
}

.ahtm-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 10%, transparent 70%);
}

.ahtm-bg__arrows {
  position: absolute;
  inset: -20%;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='1.5'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: ahtm-drift 60s linear infinite;
}

@keyframes ahtm-drift {
  to { transform: translate(40px, 40px); }
}

.ahtm-bg__binary {
  position: absolute;
  bottom: 12%;
  right: 4%;
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(167, 139, 250, 0.35);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  user-select: none;
}

/* —— Brand chip —— */
.ahtm-brand-chip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ahtm-brand-chip.is-hidden {
  opacity: 0;
  transform: translateY(-120%);
  pointer-events: none;
}

.ahtm-brand-chip__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: var(--ahtm-surface);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #0f172a;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ahtm-brand-chip__link:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

.ahtm-brand-chip__link img {
  border-radius: 12px;
  width: 40px;
  height: 40px;
}

.ahtm-brand-chip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ahtm-brand-chip__text strong {
  font-family: var(--ahtm-font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.ahtm-brand-chip__text small {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

/* —— Typography blocks —— */
.ahtm-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ahtm-neon-cyan);
}

.ahtm-section-head {
  max-width: var(--ahtm-max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}

.ahtm-section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--ahtm-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 40px rgba(167, 139, 250, 0.4);
}

.ahtm-section-desc {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ahtm-muted);
}

/* —— Hero —— */
.ahtm-hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  padding: 11rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 900px) {
  .ahtm-hero {
    min-height: min(88vh, 720px);
    padding-bottom: 4rem;
  }
}

.ahtm-hero__inner {
  width: 100%;
  max-width: var(--ahtm-max);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ahtm-hero__inner {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 3rem;
  }
}

/* Clay 3×3 grid */
.ahtm-clay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.65rem, 2vw, 1rem);
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.ahtm-clay-tile {
  position: relative;
  border-radius: 22%;
  box-shadow: var(--ahtm-clay-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ahtm-clay-tile:hover {
  transform: translateY(-3px) scale(1.03);
}

.ahtm-clay-tile--blue { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.ahtm-clay-tile--green { background: linear-gradient(145deg, #84cc16, #65a30d); }
.ahtm-clay-tile--orange { background: linear-gradient(145deg, #f97316, #ea580c); }
.ahtm-clay-tile--purple { background: linear-gradient(145deg, #a855f7, #7c3aed); }
.ahtm-clay-tile--cyan { background: linear-gradient(145deg, #22d3ee, #06b6d4); }
.ahtm-clay-tile--yellow { background: linear-gradient(145deg, #facc15, #eab308); }
.ahtm-clay-tile--red { background: linear-gradient(145deg, #ef4444, #dc2626); }
.ahtm-clay-tile--pink { background: linear-gradient(145deg, #f472b6, #ec4899); }
.ahtm-clay-tile--center {
  background: linear-gradient(145deg, #fff, #f1f5f9);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.1),
    0 14px 28px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 #fff;
}

.ahtm-clay-arrow {
  width: 42%;
  height: 42%;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.ahtm-clay-tile--blue .ahtm-clay-arrow { color: #fde047; transform: rotate(-90deg); }
.ahtm-clay-tile--green .ahtm-clay-arrow { color: #f472b6; }
.ahtm-clay-tile--orange .ahtm-clay-arrow { color: #67e8f9; transform: rotate(90deg); }
.ahtm-clay-tile--purple .ahtm-clay-arrow { color: #fde047; transform: rotate(180deg); }
.ahtm-clay-tile--cyan .ahtm-clay-arrow { color: #c084fc; transform: rotate(-90deg); }
.ahtm-clay-tile--yellow .ahtm-clay-arrow { color: #3b82f6; }
.ahtm-clay-tile--red .ahtm-clay-arrow { color: #86efac; transform: rotate(90deg); }
.ahtm-clay-tile--pink .ahtm-clay-arrow { color: #fde047; transform: rotate(180deg); }

.ahtm-clay-tile[data-dir="up"] .ahtm-clay-arrow { transform: rotate(-90deg); }
.ahtm-clay-tile[data-dir="right"] .ahtm-clay-arrow { transform: rotate(0deg); }
.ahtm-clay-tile[data-dir="down"] .ahtm-clay-arrow { transform: rotate(90deg); }
.ahtm-clay-tile[data-dir="left"] .ahtm-clay-arrow { transform: rotate(180deg); }

/* Center star hub */
.ahtm-clay-star {
  position: relative;
  width: 55%;
  height: 55%;
}

.ahtm-clay-star__arm {
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 30%;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.ahtm-clay-star__arm--n { top: 0; left: 50%; transform: translateX(-50%) rotate(-90deg); color: #ef4444; }
.ahtm-clay-star__arm--ne { top: 12%; right: 8%; transform: rotate(-45deg); color: #3b82f6; }
.ahtm-clay-star__arm--e { top: 50%; right: 0; transform: translateY(-50%); color: #22c55e; }
.ahtm-clay-star__arm--se { bottom: 12%; right: 8%; transform: rotate(45deg); color: #eab308; }
.ahtm-clay-star__arm--s { bottom: 0; left: 50%; transform: translateX(-50%) rotate(90deg); color: #a855f7; }

/* Glass hero copy */
.ahtm-hero__glass {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--ahtm-radius-lg);
  background: var(--ahtm-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(124, 58, 237, 0.15);
  color: #0f172a;
}

.ahtm-hero__glass .ahtm-kicker { color: var(--ahtm-primary); }

.ahtm-hero__glass h1 {
  margin: 0 0 1rem;
  font-family: var(--ahtm-font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.ahtm-hero__accent {
  background: linear-gradient(90deg, var(--ahtm-primary), var(--ahtm-cta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ahtm-lead {
  margin: 0 0 1.5rem;
  color: #475569;
  font-size: 1.05rem;
}

.ahtm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ahtm-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.ahtm-hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ahtm-hero__badges svg {
  width: 1rem;
  height: 1rem;
  color: var(--ahtm-primary);
}

/* —— Buttons —— */
.ahtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ahtm-btn:focus-visible {
  outline: 2px solid var(--ahtm-neon-cyan);
  outline-offset: 3px;
}

.ahtm-btn--neon {
  color: #fff;
  background: linear-gradient(135deg, var(--ahtm-primary), var(--ahtm-neon-pink));
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
}

.ahtm-btn--neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.45);
}

.ahtm-btn--clay {
  color: #0f172a;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  box-shadow: var(--ahtm-clay-shadow);
}

.ahtm-btn--clay:hover {
  transform: translateY(-2px);
}

.ahtm-btn--ghost {
  color: var(--ahtm-text);
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.ahtm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ahtm-secondary);
}

.ahtm-btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

/* —— Game modes horizontal track —— */
.ahtm-modes {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.ahtm-modes__track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 1.25rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ahtm-primary) transparent;
}

.ahtm-modes__track::-webkit-scrollbar {
  height: 6px;
}

.ahtm-modes__track::-webkit-scrollbar-thumb {
  background: var(--ahtm-primary);
  border-radius: 999px;
}

.ahtm-mode-card {
  flex: 0 0 min(88vw, 340px);
  scroll-snap-align: start;
  padding: 1.75rem;
  border-radius: var(--ahtm-radius-lg);
  background: var(--ahtm-surface);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.ahtm-mode-card:hover {
  transform: translateY(-4px);
}

.ahtm-mode-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ahtm-mode-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.ahtm-mode-card--tower .ahtm-mode-card__icon {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.ahtm-mode-card--rain .ahtm-mode-card__icon {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.ahtm-mode-card--cascade .ahtm-mode-card__icon {
  background: linear-gradient(135deg, #06b6d4, #34d399);
}

.ahtm-mode-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--ahtm-font-display);
  font-size: 1.35rem;
}

.ahtm-mode-card p {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.95rem;
}

.ahtm-mode-card__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.ahtm-mode-card__meta li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.ahtm-mode-card__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ahtm-primary);
}

.ahtm-modes__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ahtm-muted);
}

@media (min-width: 1024px) {
  .ahtm-modes__hint { display: none; }
  .ahtm-modes__track {
    max-width: var(--ahtm-max);
    margin: 0 auto;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
  }
  .ahtm-mode-card {
    flex: 1 1 280px;
    max-width: 360px;
  }
}

/* —— Bento framework —— */
.ahtm-framework {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 4rem;
  max-width: var(--ahtm-max);
  margin: 0 auto;
}

.ahtm-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ahtm-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ahtm-bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, auto);
  }
}

.ahtm-bento__cell {
  padding: 1.35rem;
  border-radius: var(--ahtm-radius);
  background: var(--ahtm-surface-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ahtm-bento__cell:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.ahtm-bento__cell svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ahtm-neon-cyan);
  margin-bottom: 0.65rem;
}

.ahtm-bento__cell h3 {
  margin: 0 0 0.35rem;
  font-family: var(--ahtm-font-display);
  font-size: 1.1rem;
  color: #fff;
}

.ahtm-bento__cell p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ahtm-muted);
}

@media (min-width: 900px) {
  .ahtm-bento__cell--wide { grid-column: span 2; }
  .ahtm-bento__cell--tall { grid-row: span 2; }
  .ahtm-bento__cell--accent {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(244, 63, 94, 0.25));
    border-color: rgba(236, 72, 153, 0.35);
  }
}

/* —— Gallery —— */
.ahtm-gallery {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
}

.ahtm-gallery__strip {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.25rem;
}

.ahtm-shot {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(167, 139, 250, 0.3);
  text-align: center;
}

.ahtm-shot img {
  width: 168px;
  height: auto;
  display: block;
}

.ahtm-shot figcaption {
  padding: 0.4rem 0.6rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ahtm-text);
  background: rgba(15, 15, 35, 0.85);
}

@media (min-width: 768px) {
  .ahtm-shot img { width: 190px; }
}

@media (min-width: 1024px) {
  .ahtm-gallery__strip {
    max-width: var(--ahtm-max);
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 1.1rem;
  }
  .ahtm-shot {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 200px;
  }
  .ahtm-shot img {
    width: 190px;
  }
}

/* —— Download —— */
.ahtm-download {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 3rem;
  max-width: var(--ahtm-max);
  margin: 0 auto;
}

.ahtm-download__panel {
  position: relative;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--ahtm-radius-lg);
  text-align: center;
  overflow: hidden;
  background: var(--ahtm-surface);
  color: #0f172a;
}

.ahtm-download__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 60%);
  pointer-events: none;
}

.ahtm-download__panel h2 {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--ahtm-font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.ahtm-download__panel p {
  position: relative;
  margin: 0 0 1.5rem;
  color: #475569;
}

.ahtm-download__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Footer —— */
.ahtm-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 1rem;
  border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.ahtm-footer__inner {
  max-width: var(--ahtm-max);
  margin: 0 auto;
  text-align: center;
}

.ahtm-footer__copy {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ahtm-muted);
}

.ahtm-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.ahtm-footer__links span {
  color: var(--ahtm-muted);
}

/* —— Bottom dock —— */
.ahtm-dock {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.2);
  max-width: calc(100vw - 2rem);
}

.ahtm-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  color: var(--ahtm-muted);
  font-size: 0.6rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
  min-width: 3rem;
  cursor: pointer;
}

.ahtm-dock__item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ahtm-dock__item:hover,
.ahtm-dock__item.is-active {
  color: #fff;
  background: rgba(124, 58, 237, 0.35);
}

.ahtm-dock__item--cta {
  color: #fff;
  background: linear-gradient(135deg, var(--ahtm-cta), var(--ahtm-neon-pink));
  margin-left: 0.15rem;
}

.ahtm-dock__item--cta:hover {
  background: linear-gradient(135deg, var(--ahtm-neon-pink), var(--ahtm-primary));
  transform: scale(1.04);
}

/* —— Modal —— */
.ahtm-modal[hidden] {
  display: none;
}

.ahtm-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.ahtm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 35, 0.75);
  backdrop-filter: blur(6px);
}

.ahtm-modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.75rem;
  border-radius: var(--ahtm-radius-lg);
  background: var(--ahtm-surface);
  color: #0f172a;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ahtm-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.2s ease;
}

.ahtm-modal__close:hover {
  background: #f1f5f9;
}

.ahtm-modal__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ahtm-primary), var(--ahtm-cta));
  color: #fff;
}

.ahtm-modal__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.ahtm-modal__card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--ahtm-font-display);
}

.ahtm-modal__card p {
  margin: 0 0 1.5rem;
  color: #475569;
}
