@import "tailwindcss";

@layer base {
  :root {
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --mh-bg: #05050A;
    --mh-surface: #0C0C16;
    --mh-elevated: #141424;
    --mh-border: rgba(255, 255, 255, 0.08);
    --mh-purple: #9333EA;
    --mh-purple-bright: #A855F7;
    --mh-blue: #0EA5E9;
    --mh-blue-bright: #38BDF8;
    --mh-green: #10B981;
  }

  html {
    background-color: var(--mh-bg);
    color: #F4F5FA;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
  }

  body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background-color: var(--mh-bg);
    color: #F4F5FA;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    letter-spacing: 0.005em;
  }

  h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    text-wrap: balance;
  }

  .font-mono-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }

  button, a {
    transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, opacity 120ms ease-out;
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #A855F7;
    outline-offset: 2px;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mh-card {
  background: #0D0D18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  contain: layout style;
}

.mh-card:hover {
  border-color: rgba(168, 85, 247, 0.36);
}

/* Lightweight single radial backdrop for zero scroll repaint lag */
.mh-grid-bg {
  background-color: #05050A;
  background-image: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.14), transparent 52%);
}

/* Safe area bottom padding for Android gesture navigation bar */
.pb-safe {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

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