:root {
  --background: 210 33% 98%;
  --foreground: 224 27% 12%;
  --primary: 258 85% 60%;
  --secondary: 174 58% 46%;
  --muted: 215 22% 92%;
  --destructive: 0 78% 56%;
  --border: 220 19% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px hsla(258, 60%, 40%, 0.08);
  --shadow-md: 0 16px 40px hsla(258, 60%, 30%, 0.14);
  --shadow-lg: 0 28px 80px hsla(258, 60%, 20%, 0.22);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 224 30% 8%;
  --foreground: 210 20% 96%;
  --primary: 262 92% 68%;
  --secondary: 174 62% 54%;
  --muted: 223 17% 18%;
  --destructive: 0 78% 62%;
  --border: 222 16% 24%;
  --card: 224 26% 12%;
  --shadow-sm: 0 6px 18px hsla(0, 0%, 0%, 0.28);
  --shadow-md: 0 16px 40px hsla(0, 0%, 0%, 0.38);
  --shadow-lg: 0 28px 80px hsla(0, 0%, 0%, 0.48);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

/* Prevent iOS auto-zoom on form controls (keeps typing smooth on mobile). */
@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

button {
  touch-action: manipulation;
}

a[aria-label*="Built with GenMB"],
a[title*="Built with GenMB"] {
  display: none !important;
}

.card-surface {
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.96), hsla(0, 0%, 100%, 0.9));
}

.dark .card-surface {
  background: linear-gradient(180deg, hsla(224, 24%, 16%, 0.95), hsla(224, 24%, 12%, 0.94));
}

.token-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px hsla(var(--primary), 0.18);
}

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gradient-hero {
  background:
    radial-gradient(circle at top left, hsla(var(--primary), 0.24), transparent 32%),
    radial-gradient(circle at top right, hsla(var(--secondary), 0.22), transparent 28%),
    linear-gradient(135deg, hsla(var(--primary), 0.07), hsla(var(--secondary), 0.08));
}

.mesh-card {
  background:
    radial-gradient(circle at 15% 15%, hsla(var(--primary), 0.16), transparent 30%),
    radial-gradient(circle at 85% 20%, hsla(var(--secondary), 0.12), transparent 28%),
    hsl(var(--card));
}

.soft-border {
  border: 1px solid hsl(var(--border));
}

.shadow-token-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-token-md {
  box-shadow: var(--shadow-md);
}

.shadow-token-lg {
  box-shadow: var(--shadow-lg);
}

.hover-lift {
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), border-color var(--transition-fast), background-color var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.fade-in {
  animation: fadeIn 0.35s ease;
}

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

.skeleton {
  background: linear-gradient(90deg, hsla(var(--muted), 0.7), hsla(var(--muted), 0.95), hsla(var(--muted), 0.7));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* Tailwind CDN doesn't ship the line-clamp plugin by default. */
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: hsla(var(--primary), 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: hsla(var(--muted), 0.6);
}
