/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

input, button, textarea, select {
  font: inherit;
  background: transparent;
  border: none;
  color: inherit;
}

button {
  cursor: pointer;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

/* CSS Variables */
:root {
  --bg-base: #0a0a0a;
  --bg-elevated: rgba(20, 20, 20, 0.8);
  --bg-card: rgba(30, 30, 30, 0.6);
  --bg-card-hover: rgba(40, 40, 40, 0.7);
  --bg-input: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --accent-orange: #f97316;
  --accent-green: #22c55e;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --glass-blur: 20px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(6, 182, 212, 0.08), transparent),
    var(--bg-base);
  min-height: 100vh;
}

/* Glass card effect */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.glass-elevated {
  background: var(--bg-elevated);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

/* Glow effects */
.glow-orange {
  box-shadow: 0 0 40px -10px rgba(249, 115, 22, 0.4);
}

.glow-subtle {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Floating nav animation */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-float-in {
  animation: float-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Prose for blog content */
.prose {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p {
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--accent-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(249, 115, 22, 0.4);
}

.prose a:hover {
  color: #fb923c;
  text-decoration-color: var(--accent-orange);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--bg-input);
  border-radius: 4px;
  color: var(--accent-cyan);
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
}

.prose ul, .prose ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.5em 0;
  list-style-type: disc;
}

.prose ol li {
  list-style-type: decimal;
}

.prose blockquote {
  border-left: 3px solid var(--accent-orange);
  padding-left: 1em;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  border-radius: 12px;
  margin: 1.5em 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th, .prose td {
  border: 1px solid var(--border-subtle);
  padding: 0.5em 1em;
  text-align: left;
}

.prose th {
  background: var(--bg-input);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Selection */
::selection {
  background: rgba(249, 115, 22, 0.3);
  color: white;
}

/* View Transitions */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

::view-transition-old(root) {
  animation-name: fade-and-slide-out;
}

::view-transition-new(root) {
  animation-name: fade-and-slide-in;
}

@keyframes fade-and-slide-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes fade-and-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Utility Classes - Tailwind-like */
.min-h-screen { min-height: 100vh; }
.max-w-none { max-width: none; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.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-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-28 { padding-bottom: 7rem; }
.pl-3 { padding-left: 0.75rem; }
.pr-3 { padding-right: 0.75rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-1 { margin-top: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

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

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

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

.w-1 { width: 0.25rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-44 { width: 11rem; }
.w-full { width: 100%; }
.w-px { width: 1px; }

.h-1 { height: 0.25rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-full { height: 100%; }

.min-w-0 { min-width: 0; }

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

.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-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: #ffffff; }
.text-orange-400 { color: #fb923c; }
.text-green-400 { color: #4ade80; }
.text-cyan-400 { color: #22d3ee; }
.text-\[\#71717a\] { color: #71717a; }
.text-\[\#a1a1aa\] { color: #a1a1aa; }

.bg-white { background-color: #ffffff; }
.bg-orange-700 { background-color: #c2410c; }
.bg-\[\#0a0a0a\] { background-color: #0a0a0a; }
.bg-\[\#1a1a1a\] { background-color: #1a1a1a; }
.bg-\[\#22c55e\] { background-color: #22c55e; }
.bg-transparent { background-color: transparent; }
.bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.bg-\[rgba\(255\,255\,255\,0\.05\)\] { background-color: rgba(255, 255, 255, 0.05); }
.bg-\[rgba\(255\,255\,255\,0\.08\)\] { background-color: rgba(255, 255, 255, 0.08); }
.bg-\[rgba\(255\,255\,255\,0\.15\)\] { background-color: rgba(255, 255, 255, 0.15); }

.border { border-width: 1px; }
.border-4 { border-width: 4px; }
.border-\[\#0a0a0a\] { border-color: #0a0a0a; }
.border-\[rgba\(255\,255\,255\,0\.05\)\] { border-color: rgba(255, 255, 255, 0.05); }
.border-\[rgba\(255\,255\,255\,0\.08\)\] { border-color: rgba(255, 255, 255, 0.08); }
.border-\[rgba\(255\,255\,255\,0\.1\)\] { border-color: rgba(255, 255, 255, 0.1); }
.border-\[rgba\(255\,255\,255\,0\.15\)\] { border-color: rgba(255, 255, 255, 0.15); }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

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

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-\[0_8px_32px_rgba\(0\,0\,0\,0\.8\)\] { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8); }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.-bottom-1 { bottom: -0.25rem; }
.-right-1 { right: -0.25rem; }

.z-50 { z-index: 50; }

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

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; 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-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:text-orange-400 { color: #fb923c; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

.hover\:text-white:hover { color: #ffffff; }
.hover\:text-orange-400:hover { color: #fb923c; }
.hover\:text-orange-300:hover { color: #fdba74; }
.hover\:bg-orange-800:hover { background-color: #9a3412; }
.hover\:bg-\[rgba\(255\,255\,255\,0\.08\)\]:hover { background-color: rgba(255, 255, 255, 0.08); }
.hover\:bg-\[rgba\(255\,255\,255\,0\.1\)\]:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:border-\[rgba\(255\,255\,255\,0\.15\)\]:hover { border-color: rgba(255, 255, 255, 0.15); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-\[0_0_20px_rgba\(249\,115\,22\,0\.4\)\]:hover { box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }

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

.focus\:outline-none:focus { outline: none; }

.placeholder-\[\#71717a\]::placeholder { color: #71717a; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:text-left { text-align: left; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-64 { width: 16rem; }
}

@media (min-width: 768px) {
  .md\:p-8 { padding: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}
