/* ============================================================
   SHARD Team — Local Stylesheet (Tailwind-equivalent utilities)
   ============================================================ */

/* --- Font Face --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

/* --- Alpine.js: hide until initialized --- */
[x-cloak] { display: none !important; }

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; tab-size: 4; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: inherit; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img, svg { display: inline-block; vertical-align: middle; }

/* --- Scroll Behavior --- */
.scroll-smooth { scroll-behavior: smooth; }

/* --- Selection --- */
.selection\:bg-zinc-800 ::selection, .selection\:bg-zinc-800::selection { background-color: #27272a; }
.selection\:text-zinc-50 ::selection, .selection\:text-zinc-50::selection { color: #fafafa; }

/* ============================================================
   LAYOUT / DISPLAY
   ============================================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ============================================================
   SIZING
   ============================================================ */
.w-1\.5 { width: 0.375rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.h-1\.5 { height: 0.375rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-\[50vh\] { height: 50vh; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

/* ============================================================
   SPACING (padding / margin)
   ============================================================ */
.p-0\.5 { padding: 0.125rem; }
.p-8 { padding: 2rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.pr-12 { padding-right: 3rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ============================================================
   COLORS — Text
   ============================================================ */
.text-zinc-50 { color: #fafafa; }
.text-zinc-100 { color: #f4f4f5; }
.text-zinc-300 { color: #d4d4d8; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }
.text-zinc-950 { color: #09090b; }
.text-emerald-500 { color: #10b981; }

/* ============================================================
   COLORS — Background
   ============================================================ */
.bg-zinc-50 { background-color: #fafafa; }
.bg-zinc-100 { background-color: #f4f4f5; }
.bg-zinc-200 { background-color: #e4e4e7; }
.bg-zinc-800 { background-color: #27272a; }
.bg-zinc-900 { background-color: #18181b; }
.bg-zinc-950 { background-color: #09090b; }
.bg-emerald-500 { background-color: #10b981; }
.bg-zinc-800\/50 { background-color: rgba(39, 39, 42, 0.5); }
.bg-zinc-900\/40 { background-color: rgba(24, 24, 27, 0.4); }
.bg-zinc-900\/50 { background-color: rgba(24, 24, 27, 0.5); }
.bg-zinc-900\/80 { background-color: rgba(24, 24, 27, 0.8); }
.bg-zinc-900\/20 { background-color: rgba(24, 24, 27, 0.2); }
.bg-zinc-950\/80 { background-color: rgba(9, 9, 11, 0.8); }
.bg-zinc-950\/95 { background-color: rgba(9, 9, 11, 0.95); }
.bg-zinc-800\/80 { background-color: rgba(39, 39, 42, 0.8); }
.bg-zinc-800\/60 { background-color: rgba(39, 39, 42, 0.6); }

/* ============================================================
   COLORS — Border
   ============================================================ */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-zinc-700 { border-color: #3f3f46; }
.border-zinc-800 { border-color: #27272a; }
.border-zinc-800\/60 { border-color: rgba(39, 39, 42, 0.6); }
.border-zinc-800\/80 { border-color: rgba(39, 39, 42, 0.8); }
.border-zinc-700\/50 { border-color: rgba(63, 63, 70, 0.5); }

/* ============================================================
   BORDER RADIUS
   ============================================================ */
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================================
   EFFECTS
   ============================================================ */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-\[0\.15\] { opacity: 0.15; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

.grayscale { filter: grayscale(100%); }

/* ============================================================
   POSITIONING
   ============================================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

/* ============================================================
   OVERFLOW
   ============================================================ */
.overflow-hidden { overflow: hidden; }

/* ============================================================
   TRANSITIONS
   ============================================================ */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ============================================================
   POINTER EVENTS
   ============================================================ */
.pointer-events-none { pointer-events: none; }

/* ============================================================
   ALPINE.JS TRANSITION UTILITIES
   ============================================================ */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.opacity-100 { opacity: 1; }
.translate-y-0 { transform: translateY(0); }
.-translate-y-2 { transform: translateY(-0.5rem); }

/* ============================================================
   HOVER STATES
   ============================================================ */
.hover\:text-zinc-100:hover { color: #f4f4f5; }
.hover\:text-zinc-300:hover { color: #d4d4d8; }
.hover\:bg-zinc-200:hover { background-color: #e4e4e7; }
.hover\:bg-zinc-800:hover { background-color: #27272a; }
.hover\:border-zinc-700:hover { border-color: #3f3f46; }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:opacity-100:hover { opacity: 1; }

/* Group hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
  width: max-content;
}
.animate-marquee:hover { animation-play-state: paused; }

/* ============================================================
   MASK IMAGE
   ============================================================ */
.\[mask-image\:linear-gradient\(to_bottom\,white\,transparent\)\] {
  mask-image: linear-gradient(to bottom, white, transparent);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent);
}
.\[mask-image\:linear-gradient\(to_right\,transparent\,black_10\%\,black_90\%\,transparent\)\] {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ============================================================
   GRADIENT BACKGROUNDS
   ============================================================ */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-zinc-100 { --tw-gradient-from: #f4f4f5; --tw-gradient-to: rgba(244, 244, 245, 0); }
.to-zinc-500 { --tw-gradient-to: #71717a; }
.from-zinc-950 { --tw-gradient-from: #09090b; --tw-gradient-to: rgba(9, 9, 11, 0); }
.to-zinc-900 { --tw-gradient-to: #18181b; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* ============================================================
   BACKGROUND GRID PATTERN
   ============================================================ */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* ============================================================
   RESPONSIVE: sm (640px)
   ============================================================ */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:hidden { display: none; }
  .sm\:w-auto { width: auto; }
  .sm\:flex-row { flex-direction: row; }
}

/* ============================================================
   RESPONSIVE: md (768px)
   ============================================================ */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:pt-48 { padding-top: 12rem; }
  .md\:pb-32 { padding-bottom: 8rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:mb-24 { margin-bottom: 6rem; }
  .md\:text-left { text-align: left; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ============================================================
   ICON SIZING HELPERS
   ============================================================ */
.icon-sm { width: 1em; height: 1em; }
.icon-md { width: 1.5em; height: 1.5em; }
.icon-lg { width: 2em; height: 2em; }

svg[class*="text-2xl"] { width: 1.5rem; height: 1.5rem; }
