/* =========================================================
   COMPLETE STYLE.CSS
   Based on your custom design system + full React/Tailwind utility merge
========================================================= */

/* =========================
   GLOBAL THEME TOKENS
========================= */
:root {
  --radius: .875rem;

  --background: oklch(13% .01 20);
  --foreground: oklch(98% .005 250);

  --surface: oklch(17% .012 25);
  --surface-2: oklch(21% .015 25);

  --card: oklch(18% .012 25);
  --card-foreground: oklch(98% .005 250);

  --popover: oklch(16% .012 25);
  --popover-foreground: oklch(98% .005 250);

  --primary: oklch(62% .22 25);
  --primary-foreground: oklch(99% .005 250);
  --primary-glow: oklch(70% .24 25);

  --accent: oklch(78% .16 70);
  --accent-foreground: oklch(13% .01 20);

  --secondary: oklch(22% .012 25);
  --secondary-foreground: oklch(98% .005 250);

  --muted: oklch(22% .012 25);
  --muted-foreground: oklch(70% .015 250);

  --destructive: oklch(60% .22 27);
  --destructive-foreground: oklch(99% .005 250);

  --border: oklch(100% 0 0 / .08);
  --input: oklch(100% 0 0 / .12);
  --ring: oklch(62% .22 25);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;

  --spacing: .25rem;

  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --container-xs: 20rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --tracking-tight: -.025em;
  --tracking-wider: .05em;
  --tracking-widest: .1em;

  --leading-tight: 1.25;
  --leading-relaxed: 1.625;

  --ease-in-out: cubic-bezier(.4, 0, .2, 1);

  --blur-sm: 8px;
  --blur-xl: 24px;
  --blur-2xl: 40px;
  --blur-3xl: 64px;

  --aspect-video: 16 / 9;

  --transition: .15s cubic-bezier(.4, 0, .2, 1);

  --gradient-hero:
    radial-gradient(60% 80% at 70% 20%, oklch(62% .22 25 / .35), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, oklch(78% .16 70 / .18), transparent 70%),
    linear-gradient(180deg, oklch(13% .01 20), oklch(10% .01 20));

  --gradient-radial:
    radial-gradient(circle at center, oklch(62% .22 25 / .25), transparent 65%);

  --gradient-text:
    linear-gradient(
      110deg,
      oklch(99% .005 250),
      oklch(78% .16 70) 60%,
      oklch(62% .22 25)
    );

  --shadow-glow: 0 0 60px -10px oklch(62% .22 25 / .6);
  --shadow-elegant: 0 30px 80px -20px oklch(0% 0 0 / .6);
}

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after,
::backdrop {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
}

html {
  font-family: var(--font-sans);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas,
iframe,
audio {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select,
optgroup {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

::file-selector-button {
  font: inherit;
  color: inherit;
  background: transparent;
}

textarea {
  resize: vertical;
}

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

ul,
ol,
menu {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-color: inherit;
}

::placeholder {
  opacity: 1;
  color: color-mix(in oklab, currentColor 50%, transparent);
}

::selection {
  color: #f9fcff;
  background: #ee343b66;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.15;
}

h1 {
  line-height: 1.05;
}

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-display { font-family: var(--font-display); }

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

/* =========================
   LAYOUT
========================= */
.container {
  width: 100%;
  max-width: var(--container-7xl);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

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

/* =========================
   FLEXBOX
========================= */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-1 { flex: 1; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

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

/* =========================
   GRID
========================= */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-4 { grid-column: span 4 / span 4; }
.col-span-8 { grid-column: span 8 / span 8; }

/* =========================
   GAP
========================= */
.gap-0 { gap: 0; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* =========================
   POSITIONING
========================= */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.static { position: static; }

.inset-0 { inset: 0; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

.rotate-45 { transform: rotate(45deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }

/* =========================
   Z-INDEX
========================= */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* =========================
   WIDTH / HEIGHT
========================= */
.w-full { width: 100%; }
.h-full { height: 100%; }

.w-auto { width: auto; }
.h-auto { height: auto; }

.w-fit { width: fit-content; }
.w-screen { width: 100vw; }

.h-screen { height: 100vh; }

.min-h-screen { min-height: 100vh; }

.max-w-xs { max-width: var(--container-xs); }
.max-w-md { max-width: var(--container-md); }
.max-w-lg { max-width: var(--container-lg); }
.max-w-4xl { max-width: var(--container-4xl); }
.max-w-7xl { max-width: var(--container-7xl); }

.mx-auto {
  margin-inline: auto;
}

/* =========================
   SPACING
========================= */
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.px-4 {
  padding-inline: 1rem;
}

.py-2 {
  padding-block: .5rem;
}

.py-4 {
  padding-block: 1rem;
}

/* =========================
   SURFACES
========================= */
.surface,
.card,
.glass {
  border: 1px solid var(--border);
}

.surface {
  background: var(--surface);
}

.surface-2 {
  background: var(--surface-2);
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-elegant);
}

.glass {
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  backdrop-filter: blur(24px);
}

/* =========================
   BORDER RADIUS
========================= */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-3xl { border-radius: calc(var(--radius) + 12px); }
.rounded-full { border-radius: 9999px; }

/* =========================
   BORDERS
========================= */
.border { border: 1px solid var(--border); }
.border-2 { border: 2px solid var(--border); }

.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }

.border-dashed { border-style: dashed; }

/* =========================
   BACKGROUNDS
========================= */
.bg-transparent { background: transparent; }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-card { background: var(--card); }
.bg-surface { background: var(--surface); }
.bg-muted { background: var(--muted); }

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-radius: calc(var(--radius) - .2rem);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
}

/* =========================
   FORMS
========================= */
.input,
textarea,
select {
  width: 100%;
  padding: .9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - .25rem);
  color: var(--foreground);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 30%, transparent);
}

/* =========================
   UTILITIES
========================= */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

.pointer-events-none { pointer-events: none; }

.object-cover { object-fit: cover; }
.object-center { object-position: center; }

.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   ACCESSIBILITY
========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes pulse {
  50% {
    opacity: .5;
  }
}

@keyframes caret-blink {
  0%, 70%, 100% { opacity: 1; }
  20%, 50% { opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-pulse,
.pulse {
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.animate-caret-blink {
  animation: caret-blink 1.25s ease-out infinite;
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}
