/* ================================================
   CREWMERGEMINT.LIVE — PRIMAL LUXE JUNGLE
   ================================================ */

/* --- VARIABLES --- */
:root {
  --bg-primary: #050807;
  --bg-secondary: #0f1a14;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --surface-border: rgba(255,255,255,0.06);
  --glass-blur: 16px;

  --emerald-start: #065f46;
  --emerald-end: #10b981;
  --earth-start: #78350f;
  --earth-end: #b45309;
  --gold-start: #facc15;
  --gold-end: #fde68a;

  --grad-emerald: linear-gradient(135deg, #065f46, #10b981);
  --grad-earth: linear-gradient(135deg, #78350f, #b45309);
  --grad-gold: linear-gradient(135deg, #facc15, #fde68a);

  --glow-green: rgba(16,185,129,0.4);
  --glow-gold: rgba(250,204,21,0.4);
  --glow-earth: rgba(180,83,9,0.35);

  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;

  --font-primary: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1280px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --space-section: 120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 1024px) {
  :root { --space-section: 80px; }
}
@media (max-width: 640px) {
  :root { --space-section: 60px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; }

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

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

@media (hover: hover) {
  .cursor-glow { opacity: 1; }
}

/* --- FOG LAYERS --- */
.fog-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.fog-layer-1 {
  background: radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.06) 0%, transparent 60%);
  animation: fogDrift1 20s ease-in-out infinite;
}

.fog-layer-2 {
  background: radial-gradient(ellipse at 80% 30%, rgba(250,204,21,0.04) 0%, transparent 60%);
  animation: fogDrift2 25s ease-in-out infinite;
}

@keyframes fogDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 20px) scale(1.05); }
}

@keyframes fogDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -15px) scale(1.03); }
}

/* --- LEAVES CONTAINER --- */
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.leaf {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--emerald-end);
  opacity: 0.15;
  border-radius: 0 50% 50% 50%;
  animation: leafFall linear infinite;
}

@keyframes leafFall {
  0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(100px); opacity: 0; }
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(5,8,7,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-spacer { flex: 1; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-dot {
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .btn-header { display: none; }
}

/* --- SIDE NAVIGATION --- */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.side-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--text-muted);
  transition: all 0.35s var(--ease-out);
  position: relative;
}

.side-nav-item:hover {
  color: var(--text-primary);
  background: rgba(16,185,129,0.1);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(16,185,129,0.2);
}

.side-nav-item.active {
  color: var(--gold-start);
  background: rgba(250,204,21,0.08);
  box-shadow: 0 0 16px rgba(250,204,21,0.15);
}

.side-nav-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,8,7,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipIn 0.2s var(--ease-out);
}

@keyframes tooltipIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@media (max-width: 1024px) {
  .side-nav { display: none; }
}

/* --- MOBILE NAV --- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,7,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15,26,20,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-close {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 8px;
  transition: color 0.2s;
}

.mobile-nav-close:hover { color: var(--text-primary); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-links a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
}

.mobile-nav-links a:hover {
  background: rgba(16,185,129,0.08);
  color: var(--text-primary);
}

.mobile-nav-cta {
  margin-top: auto;
  text-align: center;
}

/* --- BOTTOM NAV (MOBILE) --- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(5,8,7,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  body { padding-bottom: 72px; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: rgba(167,243,208,0.5);
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
  border-radius: var(--radius-sm);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--emerald-end);
}

.bottom-nav-item.active svg,
.bottom-nav-item:hover svg {
  filter: drop-shadow(0 0 6px rgba(16,185,129,0.4));
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--grad-gold);
  color: #050807;
  box-shadow: 0 4px 24px rgba(250,204,21,0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(250,204,21,0.4);
}

.btn-gold:active { transform: scale(0.97) translateY(0); }

.btn-green {
  background: var(--grad-emerald);
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(16,185,129,0.2);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(16,185,129,0.35);
}

.btn-glass {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-glass:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 8px 32px rgba(16,185,129,0.1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-header {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-silhouettes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(6,95,70,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(120,53,15,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(16,185,129,0.08) 0%, transparent 40%);
}

.hero-fog {
  position: absolute;
  width: 150%;
  height: 100%;
  opacity: 0.4;
}

.hero-fog-1 {
  left: -25%;
  top: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(16,185,129,0.08) 0%, transparent 60%);
  animation: heroFog1 18s ease-in-out infinite;
}

.hero-fog-2 {
  left: -25%;
  top: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(250,204,21,0.05) 0%, transparent 60%);
  animation: heroFog2 22s ease-in-out infinite;
}

@keyframes heroFog1 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(50px) translateY(-20px); }
}

@keyframes heroFog2 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-40px) translateY(15px); }
}

.hero-rays {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(250,204,21,0.03) 45%, transparent 50%, transparent 90%, rgba(16,185,129,0.03) 95%, transparent 100%);
  animation: raysRotate 30s linear infinite;
}

@keyframes raysRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 20%),
    linear-gradient(to top, var(--bg-primary) 0%, transparent 30%),
    linear-gradient(to right, rgba(5,8,7,0.5) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-end);
  box-shadow: 0 0 8px var(--glow-green);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 8px var(--glow-green); }
  50% { box-shadow: 0 0 16px var(--glow-green), 0 0 32px rgba(16,185,129,0.2); }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-legal {
  font-size: 0.75rem;
  color: rgba(167,243,208,0.4);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--emerald-end), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- GAME SECTION --- */
.game-section {
  z-index: 10;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid rgba(16,185,129,0.1);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.game-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(250,204,21,0.3), rgba(16,185,129,0.3));
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
  transition: all 0.4s var(--ease-out);
}

.game-card:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 80px rgba(16,185,129,0.15), 0 0 60px rgba(250,204,21,0.08);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.game-card-inner {
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-primary);
}

.game-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.game-controls {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,7,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
}

.modal-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.modal-step h4 {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-legal {
  font-size: 0.8rem;
  color: rgba(167,243,208,0.4);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 8px;
}

/* --- FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.15);
  box-shadow: 0 16px 64px rgba(16,185,129,0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-card-lg {
  grid-column: span 2;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: box-shadow 0.4s var(--ease-out);
}

.feature-icon-green {
  background: rgba(16,185,129,0.1);
  color: var(--emerald-end);
}

.feature-card:hover .feature-icon-green {
  box-shadow: 0 0 24px rgba(16,185,129,0.2);
}

.feature-icon-gold {
  background: rgba(250,204,21,0.08);
  color: var(--gold-start);
}

.feature-card:hover .feature-icon-gold {
  box-shadow: 0 0 24px rgba(250,204,21,0.15);
}

.feature-icon-earth {
  background: rgba(180,83,9,0.1);
  color: var(--earth-end);
}

.feature-card:hover .feature-icon-earth {
  box-shadow: 0 0 24px rgba(180,83,9,0.15);
}

.feature-card h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-lg { grid-column: span 2; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-lg { grid-column: span 1; }
}

/* --- LEGAL BANNER --- */
.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(250,204,21,0.1);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.legal-banner-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,204,21,0.08);
  border-radius: 14px;
  color: var(--gold-start);
  flex-shrink: 0;
}

.legal-banner-text {
  flex: 1;
  min-width: 240px;
}

.legal-banner-text h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.legal-banner-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-banner-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.legal-banner-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s var(--ease-out);
}

.legal-banner-links a:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: rgba(16,185,129,0.2);
}

/* --- FOOTER --- */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
}

.footer-links-col h4 {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-links-col a:hover { color: var(--text-muted); }

.footer-legal-text {
  font-size: 0.85rem;
  color: rgba(167,243,208,0.5);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(167,243,208,0.35);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- PAGE HERO (INNER PAGES) --- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  z-index: 10;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(16,185,129,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(250,204,21,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  max-width: 640px;
}

.page-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CONTENT CARD --- */
.content-card {
  background: var(--surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  z-index: 10;
}

@media (max-width: 640px) {
  .content-card { padding: 28px 20px; }
}

.content-card h2 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 32px;
  letter-spacing: -0.02em;
}

.content-card h2:first-child { margin-top: 0; }

.content-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}

.content-card a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.content-card a:hover { color: var(--emerald-end); }

.legal-highlight {
  background: rgba(250,204,21,0.05);
  border: 1px solid rgba(250,204,21,0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
}

.legal-highlight p {
  color: var(--gold-start);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form { margin-top: 24px; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
  background: rgba(255,255,255,0.05);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236ee7b7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg { margin: 0 auto 16px; }

.form-success h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-info-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contact-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-item h4 {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- ANIMATIONS --- */
.anim-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.anim-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* --- GLASS SHIMMER --- */
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(200%) rotate(15deg); }
}

.game-card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  transform: translateX(-100%) rotate(15deg);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(16,185,129,0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16,185,129,0.4);
}

/* --- SELECTION --- */
::selection {
  background: rgba(16,185,129,0.2);
  color: var(--text-primary);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fog-layer, .leaves-container, .hero-rays { display: none; }
}