/*! Pixetia Showcase Site - Custom CSS with Design Tokens */
/*! Copyright 2026 Pixetia. All rights reserved. */

/* CSS Custom Properties (Design Tokens) - from analysis */
:root {
  --background: 0 0% 6.7%;        /* #111 */
  --foreground: 0 0% 100%;        /* #fff */
  --card: 0 0% 10.2%;             /* #1a1a1a */
  --card-foreground: 0 0% 100%;
  --popover: 0 0% 10.2%;
  --popover-foreground: 0 0% 100%;
  --primary: 0 0% 100%;           /* #fff */
  --primary-foreground: 0 0% 6.7%; /* #111 */
  --secondary: 0 0% 14.9%;        /* #262626 */
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 14.9%;            /* #262626 */
  --muted-foreground: 0 0% 64%;   /* #a3a3a3 */
  --accent: 0 0% 14.9%;           /* #262626 */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;       /* #ef4343 */
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 20%;             /* #333 */
  --input: 0 0% 14.9%;
  --ring: 0 0% 83.1%;
  --radius: 0.25rem;

  /* Brand Colors */
  --bg: #111;
  --surface: #1a1a1a;
  --red: #e63946;
  --yellow: #ffd166;
  --green: #06d6a0;
  --blue: #3a86ff;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-bar-width: auto;
}

body {
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-feature-settings: "rlig" on, "calt" on;
  line-height: calc(1 + 0.5 / 1);
  color: rgb(var(--foreground));
  background-color: rgb(var(--background));
  -webkit-tap-highlight-color: transparent;
}

/* Custom animations */
@keyframes enter { from { opacity: 0; transform: scale(95%); } to { opacity: 1; transform: scale(100%); } }
@keyframes exit { to { opacity: 0; transform: scale(90%); } }
@keyframesaccordion-down { from { height: 0; visibility: visible; } to { height: var(--radix-accordion-content-height); } }
@keyframesaccordion-up { to { height: 0; } }
@keyframespulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframespixel-blink { to { visibility: hidden; } }
@keyframesvaporize { 0% { transform: translateY(0); opacity: 1; } }
@keyframesvaporize-to { transform: translateY(-100px); opacity: 0; }
@keyframescrawl { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible */
.focus-visible\:outline-none:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Selection */
::selection { background: var(--red); color: #fff; }

/* Custom properties fallback */
:root { --radius: 0.25rem; }

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

/* Focus states */
.focus-visible\:outline-none:focus-visible { outline: none; }
.focus-visible\:ring-2:focus-visible { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width) + 2px) var(--tw-ring-color); }

/* Background image utilities */
.bg-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M32 0L32 32L0 32L0 0Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 32px 32px;
}

/* Marquee */
.marquee { overflow: hidden; -webkit-tap-highlight-color: transparent; }
.marquee__inner { display: inline-flex; align-items: center; animation: crawl 60s linear infinite; }

/* Toast */
.toast { position: fixed; bottom: 1rem; right: 1rem; z-index: 9999; animation: slide-in 300ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes slide-in { from { transform: translateY(100%) opacity: 0; } to { transform: translateY(0) opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none; }
  .toast { animation: none; }
}

/* Avatar / user */
.user-avatar { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; }

/* Card */
.card { background-color: rgb(var(--card)); border-color: rgb(var(--border)); }

/* Input */
.input {
  background-color: rgb(var(--input));
  border-color: rgb(var(--input));
  color: rgb(var(--foreground));
}

/* Button */
.btn {
  --bg: rgb(var(--primary));
  --fg: rgb(var(--primary-foreground));
  --acc: rgb(var(--accent));
  --acc-fg: rgb(var(--accent-foreground));
}

/* Text classes */
.font-heading { font-family: "Cabinet Grotesk", serif; }
.font-satoshi { font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
.font-mono { font-family: "JetBrains Mono", monospace; }
.font-pixel { font-family: "Press Start 2P", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.font-vt { font-family: "VT323", monospace; }

/* Text sizes */
.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-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }

/* Font weights */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Line height */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* Tracking */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Container */
.max-w-7xl { max-width: 1536px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Margin */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.-mt-px { margin-top: -1px; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-x-2 { gap-x: 0.5rem; }
.gap-y-2 { gap-y: 0.5rem; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Position */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.-top-1/2 { top: -50%; }
.-left-1/2 { left: -50%; }
.-bottom-1/2 { bottom: -50%; }
.-right-1/2 { right: -50%; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }

/* Opacity */
.opacity-5 { opacity: 0.05; }
.opacity-20 { opacity: 0.2; }
.opacity-60 { opacity: 0.6; }
.opacity-100 { opacity: 1; }
.opacity-0 { opacity: 0; }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-color, fill, stroke, opacity, box-shadow, transform; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Transform */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.transform-none { transform: none; }
.hover\:translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Aspect ratio */
.aspect-square { aspect-ratio: 1 / 1; }

/* Outline */
.outline-none:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Backdrop */
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur { backdrop-filter: blur(12px); }

/* Sizes */
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.max-w-7xl { max-width: 1536px; }
.max-w-full { max-width: 100%; }

/* Inset */
.inset-0 { inset: 0; }
.-inset-4 { inset: -1rem; }

/* Width */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-64 { width: 16rem; }
.w-\[30\%\] { width: 30%; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

/* Height */
.h-full { height: 100%; }
.h-\[calc_2vh_-_80px\] { height: calc(2vh - 80px); }
.h-\[100vh\] { height: 100vh; }

/* Flex basis */
.flex-1 { flex: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }

/* Border */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-0 { border-width: 0; }
.border-border { border-color: rgb(var(--border)); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }

/* Rounded */
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Min / Max heights */
.min-h-screen { min-height: 100vh; }
.min-h-[400px] { min-height: 400px; }
.min-h-[calc_2vh_-_80px] { min-height: calc(2vh - 80px); }

/* Inset */
.inset-0 { inset: 0; }

/* Width */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-64 { width: 16rem; }
.w-\[30\%\] { width: 30%; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

/* Height */
.h-full { height: 100%; }
.h-\[calc_2vh_-_80px\] { height: calc(2vh - 80px); }
.h-\[100vh\] { height: 100vh; }

/* Flex basis */
.flex-1 { flex: 1; }

/* Cursor */
.cursor-crosshair { cursor: crosshair; }
.cursor-help { cursor: help; }
}