:root {
  --bg: #090d14;
  --bg-soft: #111827;
  --panel: rgba(12, 18, 30, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f9ff;
  --muted: #a8b6cf;
  --accent-a: #00d2a2;
  --accent-b: #ff6b35;
  --accent-c: #1ecbff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(30, 203, 255, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 20%, #132035 0%, var(--bg) 46%),
    linear-gradient(145deg, #070b11 0%, #101724 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 75%);
  opacity: 0.28;
  z-index: 0;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particles::before,
.particles::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-c);
  border-radius: 50%;
  box-shadow: 
    100px 200px var(--accent-c),
    300px 100px var(--accent-a),
    500px 300px var(--accent-b),
    700px 150px var(--accent-c),
    900px 250px var(--accent-a),
    200px 400px var(--accent-b),
    400px 500px var(--accent-c),
    600px 350px var(--accent-a),
    800px 450px var(--accent-b);
  animation: float 20s ease-in-out infinite;
}

.particles::after {
  animation-delay: -10s;
  box-shadow: 
    150px 250px var(--accent-b),
    350px 150px var(--accent-c),
    550px 350px var(--accent-a),
    750px 200px var(--accent-b),
    950px 300px var(--accent-c),
    250px 450px var(--accent-a),
    450px 550px var(--accent-b),
    650px 400px var(--accent-c),
    850px 500px var(--accent-a);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.88);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5vw;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 12, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(30, 203, 255, 0.4));
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.65rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.2rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-c));
  transition: width 0.3s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  width: 100%;
}

.btn-signup-nav {
  background: linear-gradient(100deg, var(--accent-b), #ff9f1c);
  border: none;
  color: #1e1208;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-signup-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.auth-area {
  position: relative;
}

.hidden {
  display: none !important;
}

.user-profile {
  position: relative;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.profile-toggle:hover {
  border-color: var(--accent-c);
  background: rgba(30, 203, 255, 0.08);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0a0f18;
  flex-shrink: 0;
}

.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: rgba(12, 18, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.profile-dropdown.open {
  display: block;
  animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem;
}

.dropdown-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.dropdown-email {
  color: var(--muted);
  font-size: 0.8rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 0.5rem 0;
}

.dropdown-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.dropdown-stats strong {
  color: var(--accent-c);
  display: block;
  font-size: 1.1rem;
}

.dropdown-item {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.logout-btn {
  color: var(--accent-b);
  font-weight: 600;
}

.logout-btn:hover {
  background: rgba(255, 107, 53, 0.12);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.menu-toggle:hover span {
  background: var(--accent-c);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.3rem;
  min-height: 72vh;
  align-items: stretch;
}

.hero-panel,
.city-card,
.market-card,
.stats article,
.timeline article,
.hotspot-grid article,
.join {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.hero-panel {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 30%), rgba(30, 203, 255, 0.3), transparent 48%);
  pointer-events: none;
}

.eyebrow {
  color: var(--accent-a);
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  background: linear-gradient(135deg, var(--accent-c), var(--accent-a));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.hero-copy {
  color: var(--muted);
  max-width: 62ch;
  margin: 1rem 0 1.6rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(100deg, var(--accent-b), #ff9f1c);
  color: #1e1208;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent-c);
  color: var(--accent-c);
  transform: translateY(-2px);
}

.countdown-wrap {
  margin-top: 1.2rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.countdown-wrap strong {
  color: var(--accent-c);
  font-size: 1.08rem;
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  position: relative;
}

.orb {
  position: absolute;
  filter: blur(16px);
  border-radius: 999px;
  opacity: 0.65;
  animation: drift 8s ease-in-out infinite alternate;
}

.orb-a {
  width: 220px;
  height: 220px;
  background: #00d2a2;
  top: 10%;
  right: 16%;
}

.orb-b {
  width: 180px;
  height: 180px;
  background: #ff6b35;
  bottom: 24%;
  left: 12%;
  animation-duration: 10s;
}

.city-card {
  padding: 1.1rem;
  margin-top: auto;
  backdrop-filter: blur(4px);
}

.city-card p {
  margin: 0;
  color: var(--muted);
}

.city-card h3 {
  margin-top: 0.3rem;
  font-size: 1.9rem;
}

.stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.stats article {
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats article:hover {
  transform: translateY(-5px);
  border-color: var(--accent-c);
  box-shadow: var(--glow);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(30, 203, 255, 0.5));
}

.counter {
  font-size: 2rem;
  color: var(--accent-c);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(30, 203, 255, 0.5);
}

.stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.section-head {
  margin: 4rem 0 1.2rem;
}

.filters {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-buttons {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(100deg, rgba(0, 210, 162, 0.28), rgba(30, 203, 255, 0.2));
}

.search-wrap input {
  width: min(280px, 70vw);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.market-toolbar {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.market-summary {
  margin: 0;
  color: var(--muted);
}

.clear-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.card-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.market-card {
  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.market-card:hover {
  border-color: rgba(30, 203, 255, 0.6);
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: var(--glow);
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-c), var(--accent-b));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.market-card:hover::before {
  transform: scaleX(1);
}

.market-card.hidden {
  display: none;
}

.card-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(30, 203, 255, 0.1), rgba(0, 210, 162, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.card-badge {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(30, 203, 255, 0.5));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-a);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.market-card h3 {
  margin-top: 0.65rem;
  font-size: 1.4rem;
  color: var(--text);
}

.market-card p {
  color: var(--muted);
  line-height: 1.5;
}

.card-foot {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-foot span {
  font-weight: 700;
}

.card-foot button,
.join-form button {
  background: linear-gradient(100deg, var(--accent-b), #ff9f1c);
  border: none;
  color: #140c05;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.card-foot button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.watchlist {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 10, 18, 0.6);
  padding: 1rem;
}

.watchlist h3 {
  font-size: 1.45rem;
}

.watchlist ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.watchlist li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
}

.watchlist strong {
  color: var(--text);
}

.market-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  border: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.9);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.market-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  padding: 1rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.timeline span {
  color: var(--accent-a);
  font-weight: 700;
}

.hotspot-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, 1fr);
}

.hotspot-grid article {
  padding: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

.hotspot-grid article:hover {
  border-color: var(--accent-a);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 210, 162, 0.3);
}

.hotspot-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 210, 162, 0.5));
}

.hotspot-grid h3 {
  color: var(--accent-a);
  margin-bottom: 0.5rem;
}

.hotspot-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.join {
  margin-top: 3rem;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.join-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.join-form input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  min-width: 220px;
  transition: all 0.3s ease;
}

.join-form input:focus {
  outline: none;
  border-color: var(--accent-c);
  box-shadow: 0 0 15px rgba(30, 203, 255, 0.3);
}

.join-form input::placeholder {
  color: var(--muted);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  width: min(500px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-b);
  transform: rotate(90deg);
}

.signup-form {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.signup-form input {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: all 0.3s ease;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent-c);
  box-shadow: 0 0 15px rgba(30, 203, 255, 0.3);
}

.signup-form input::placeholder {
  color: var(--muted);
}

.crypto-section {
  margin-top: 3rem;
}

.crypto-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.crypto-panel p {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.wallet-status {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: none;
}

.wallet-status.active {
  display: block;
  background: rgba(0, 210, 162, 0.1);
  color: var(--accent-a);
  border-color: var(--accent-a);
}

.bid-history {
  margin-top: 1.2rem;
}

.bid-history h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.bid-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.bid-history li {
  border: 1px solid var(--line);
  background: rgba(30, 203, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.bid-history li:hover {
  border-color: var(--accent-c);
  background: rgba(30, 203, 255, 0.1);
}

.form-message {
  margin: 0;
  color: var(--accent-c);
  font-weight: 500;
  min-height: 1.2em;
}

.form-message.error {
  color: var(--accent-b);
}

.form-message.success {
  color: var(--accent-a);
}

.modal-switch {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-c);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: var(--accent-a);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent-c);
  background: rgba(30, 203, 255, 0.12);
  color: var(--accent-c);
  transform: translateY(-2px);
}

.site-footer {
  margin: 2.4rem auto 1.2rem;
  width: min(1120px, 92vw);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent-c);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent-a);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-18px) translateX(12px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stats,
  .card-grid,
  .hotspot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.35rem;
    gap: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .btn-signup-nav {
    width: 100%;
  }

  .profile-toggle {
    width: 100%;
    justify-content: center;
  }

  .profile-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 18px 18px 0 0;
    min-width: unset;
  }

  .stats,
  .card-grid,
  .hotspot-grid,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
