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

:root {
  --midnight-900: #060a14;
  --midnight-800: #0a0e1a;
  --midnight-700: #0d1228;
  --midnight-600: #111827;
  --midnight-500: #1a2540;
  --silver-100: #f0f4fa;
  --silver-200: #e2e8f0;
  --silver-300: #c0cfe0;
  --silver-400: #a8b2c8;
  --silver-500: #8898aa;
  --glow-blue: #3b82f6;
  --glow-bright: #60a5fa;
  --glow-soft: #93c5fd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--midnight-900);
  color: var(--silver-200);
}

/* Hero circles */
.hero-circles {
  overflow: hidden;
}

.circle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.12);
  animation: ringPulse 8s ease-in-out infinite;
}

.circle-ring-1 {
  width: 40vw;
  height: 40vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.circle-ring-2 {
  width: 65vw;
  height: 65vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
  border-color: rgba(59, 130, 246, 0.07);
}

.circle-ring-3 {
  width: 88vw;
  height: 88vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
  border-color: rgba(59, 130, 246, 0.04);
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marqueeScroll 30s linear infinite;
  display: flex;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Prose custom styles */
.prose-custom {
  color: var(--silver-300);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
}

.prose-custom h2 {
  color: var(--silver-100);
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.prose-custom h3 {
  color: var(--silver-200);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose-custom p {
  margin-bottom: 1.25rem;
  color: var(--silver-300);
}

.prose-custom strong {
  color: var(--silver-100);
  font-weight: 700;
}

.prose-custom em {
  color: var(--glow-soft);
  font-style: italic;
}

.prose-custom a {
  color: var(--glow-bright);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose-custom a:hover {
  color: var(--glow-soft);
  text-decoration-color: rgba(147, 197, 253, 0.7);
}

.prose-custom ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.prose-custom ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--silver-300);
}

.prose-custom ul li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--glow-blue);
  flex-shrink: 0;
}

.prose-custom ol {
  list-style: none;
  padding-left: 0;
  counter-reset: prose-counter;
  margin-bottom: 1.5rem;
}

.prose-custom ol li {
  counter-increment: prose-counter;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.6rem;
  color: var(--silver-300);
}

.prose-custom ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--glow-bright);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.prose-custom blockquote {
  border-left: 3px solid var(--glow-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(59, 130, 246, 0.07);
  border-radius: 0 0.75rem 0.75rem 0;
  color: var(--silver-200);
  font-style: italic;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(168, 178, 200, 0.15);
  display: block;
  margin: 1.5rem auto;
}

.prose-custom table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose-custom thead tr {
  background-color: var(--midnight-700);
}

.prose-custom th {
  padding: 0.75rem 1rem;
  text-align: left;
  color: var(--silver-200);
  font-weight: 600;
  border: 1px solid rgba(168, 178, 200, 0.15);
  white-space: nowrap;
}

.prose-custom td {
  padding: 0.65rem 1rem;
  color: var(--silver-400);
  border: 1px solid rgba(168, 178, 200, 0.1);
}

.prose-custom tr:nth-child(even) {
  background-color: rgba(13, 18, 40, 0.5);
}

.prose-custom tr:hover {
  background-color: rgba(26, 37, 64, 0.5);
}

.prose-custom code {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  font-family: monospace;
  font-size: 0.875em;
  color: var(--glow-soft);
}

.prose-custom pre {
  background: var(--midnight-800);
  border: 1px solid rgba(168, 178, 200, 0.15);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-custom pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--silver-300);
}

.prose-custom hr {
  border: none;
  border-top: 1px solid rgba(168, 178, 200, 0.15);
  margin: 2.5rem 0;
}

/* Burger animation helpers */
#burger-top.rotate-45 { transform: rotate(45deg) translateY(8px); }
#burger-bot.-rotate-45 { transform: rotate(-45deg) translateY(-8px); }
#burger-mid.opacity-0 { opacity: 0; }

@media (max-width: 640px) {
  .prose-custom h2 { font-size: 1.35rem; }
  .prose-custom h3 { font-size: 1.1rem; }
}
