@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@400;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --background: 0 0% 7%;
  --foreground: 0 0% 100%;
  --text: 0 0% 100%;
  --card: 0 0% 12%;
  --card-foreground: 0 0% 100%;
  --popover: 0 0% 12%;
  --popover-foreground: 0 0% 100%;
  --primary: 3.5 78% 57%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 16%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 16%;
  --muted-foreground: 0 0% 53%;
  --accent: 3.5 78% 57%;
  --accent-foreground: 0 0% 100%;
  --destructive: 3.5 78% 57%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 23%;
  --input: 0 0% 16%;
  --ring: 3.5 78% 57%;
  --radius: 0.375rem;
  --success: 122 39% 49%;
  --warning: 36 100% 50%;
  --error: 3.5 78% 57%;
}

.prose {
  --tw-prose-body: hsl(var(--text));
  --tw-prose-headings: hsl(var(--text));
  --tw-prose-lead: hsl(var(--silver));
  --tw-prose-links: hsl(var(--primary));
  --tw-prose-bold: hsl(var(--text));
  --tw-prose-counters: hsl(var(--muted-foreground));
  --tw-prose-bullets: hsl(var(--border));
  --tw-prose-hr: hsl(var(--border));
  --tw-prose-quotes: hsl(var(--text));
  --tw-prose-quote-borders: hsl(var(--border));
  --tw-prose-captions: hsl(var(--muted-foreground));
  --tw-prose-kbd: hsl(var(--text));
  --tw-prose-kbd-shadows: 255 255 255;
  --tw-prose-code: hsl(var(--text));
  --tw-prose-pre-code: hsl(var(--muted-foreground));
  --tw-prose-pre-bg: 0 0% 12%;
  --tw-prose-th-borders: hsl(var(--border));
  --tw-prose-td-borders: hsl(var(--border));
  --tw-prose-invert-body: hsl(var(--text));
  --tw-prose-invert-headings: hsl(var(--text));
  --tw-prose-invert-lead: hsl(var(--muted-foreground));
  --tw-prose-invert-links: hsl(var(--primary));
  --tw-prose-invert-bold: hsl(var(--text));
  --tw-prose-invert-counters: hsl(var(--muted-foreground));
  --tw-prose-invert-bullets: hsl(var(--border));
  --tw-prose-invert-hr: hsl(var(--border));
  --tw-prose-invert-quotes: hsl(var(--text));
  --tw-prose-invert-quote-borders: hsl(var(--border));
  --tw-prose-invert-captions: hsl(var(--muted-foreground));
  --tw-prose-invert-kbd: hsl(var(--text));
  --tw-prose-invert-kbd-shadows: 255 255 255;
  --tw-prose-invert-code: hsl(var(--text));
  --tw-prose-invert-pre-code: hsl(var(--muted-foreground));
  --tw-prose-invert-pre-bg: 0 0% 0%;
  --tw-prose-invert-th-borders: hsl(var(--border));
  --tw-prose-invert-td-borders: hsl(var(--border));
  font-size: 1rem;
  line-height: 1.75;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: clamp(0.875rem, 0.25vw + 0.8125rem, 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: hsl(var(--foreground));
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.font-display {
  font-family: "Poppins", "Montserrat", "Segoe UI", sans-serif;
}

.font-mono,
.text-metric {
  font-family: "Space Grotesk", "Roboto Mono", "Consolas", monospace;
}

.text-metric {
  font-weight: 700;
  line-height: 1.1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.text-body {
  font-size: 1rem;
  line-height: 1.6;
}

.text-caption {
  font-size: 0.8125rem;
  font-weight: 500;
}

.text-small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background-color: hsl(3.6 66% 49%);
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid hsl(var(--foreground));
  color: hsl(var(--foreground));
}

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

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--primary));
}

.btn-ghost:hover {
  background-color: hsl(var(--primary) / 0.1);
}

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.input {
  width: 100%;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: hsl(var(--foreground));
  font-family: "Inter", sans-serif;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.divider {
  height: 1px;
  background-color: hsl(var(--border));
  width: 100%;
}

.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;
}

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

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.focus-ring {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 2.5rem; }
.gap-6 { gap: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.px-1 { padding-inline: 0.5rem; }
.px-2 { padding-inline: 1rem; }
.px-3 { padding-inline: 1.5rem; }
.px-4 { padding-inline: 2rem; }

.py-1 { padding-block: 0.5rem; }
.py-2 { padding-block: 1rem; }
.py-3 { padding-block: 1.5rem; }
.py-4 { padding-block: 2rem; }

.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

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

.grid { display: grid; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.hidden { display: none; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

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

.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }

.transition { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }