/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #0A0B0D; color: #fff; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; border: 0; cursor: pointer; background: transparent; color: inherit; }

/* === Tailwind-like utilities (minimal) === */
.bg-\[\#0A0B0D\] { background: #0A0B0D; }
.bg-\[\#5BFF8F\] { background: #5BFF8F; }
.text-\[\#5BFF8F\] { color: #5BFF8F; }
.text-white { color: #fff; }
.text-black { color: #000; }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.bg-\[\#0A0B0D\]\/80 { background: rgba(10,11,13,0.8); }
.bg-white\/\[0\.02\] { background: rgba(255,255,255,0.02); }
.border-y { border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.border-t { border-top: 1px solid rgba(255,255,255,0.05); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; } .left-0 { left: 0; } .right-0 { right: 0; }
.z-10 { z-index: 10; } .z-50 { z-index: 50; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.space-y-12 > * + * { margin-top: 3rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-\[0\.95\] { line-height: 0.95; }
.leading-\[1\] { line-height: 1; }
.leading-\[1\.05\] { line-height: 1.05; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.rounded-full { border-radius: 9999px; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.transition-colors { transition: color 200ms, background-color 200ms; }
.transition-transform { transition: transform 200ms; }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-white:hover { background: #fff; }
.hover\:scale-105:hover { transform: scale(1.05); }
.antialiased { -webkit-font-smoothing: antialiased; }
.backdrop-blur-lg { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.24em\] { letter-spacing: 0.24em; }
.text-\[11px\] { font-size: 11px; }
.text-\[10px\] { font-size: 10px; }
.opacity-70 { opacity: 0.7; }
.block { display: block; }
.text-\[clamp\(2\.5rem\,8vw\,6\.5rem\)\] { font-size: clamp(2.5rem, 8vw, 6.5rem); }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:py-40 { padding-top: 10rem; padding-bottom: 10rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* === Custom === */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #5BFF8F;
  border-radius: 50%;
  box-shadow: 0 0 12px #5BFF8F;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,255,143,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,255,143,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.ghost-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.ghost-orb.orb1 {
  width: 400px; height: 400px;
  background: #5BFF8F;
  top: -100px; right: -100px;
  opacity: 0.15;
}
.ghost-orb.orb2 {
  width: 500px; height: 500px;
  background: #4A6CFF;
  bottom: -200px; left: -200px;
  opacity: 0.12;
}

.feature-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.015);
  transition: border-color 300ms, transform 300ms, background 300ms;
}
.feature-card:hover {
  border-color: rgba(91,255,143,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.03);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  filter: grayscale(0.2);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: rgba(91,255,143,0.6);
  line-height: 0.9;
  min-width: 90px;
  letter-spacing: -0.02em;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 200ms, box-shadow 200ms;
}
.store-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(91,255,143,0.2);
}

.reveal { opacity: 0; transform: translateY(30px); }

/* Doc pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}
.prose h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 8px; color: #fff; letter-spacing: -0.02em; }
.prose .meta { color: rgba(255,255,255,0.4); font-size: 14px; margin-bottom: 48px; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 16px; color: #fff; }
.prose h3 { font-size: 1.15rem; margin: 32px 0 12px; color: #fff; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #5BFF8F; }
.prose a:hover { text-decoration: underline; }
.prose code { font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose strong { color: #fff; }

/* === Blog === */
.blog-hero {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; }
.blog-hero p { color: rgba(255,255,255,0.6); font-size: 1.15rem; max-width: 540px; margin: 0 auto; }

.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1100px;
  margin: 40px auto 120px;
  padding: 0 24px;
}
.post-card {
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: border-color 300ms, transform 300ms;
}
.post-card:hover {
  border-color: rgba(91,255,143,0.3);
  transform: translateY(-4px);
}
.post-card-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.post-card-body { padding: 22px 24px 28px; }
.post-card-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5BFF8F;
  margin-bottom: 10px;
}
.post-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; letter-spacing: -0.01em; }
.post-card-desc { color: rgba(255,255,255,0.55); font-size: 0.92rem; line-height: 1.55; }
.post-card-meta { color: rgba(255,255,255,0.35); font-size: 12px; margin-top: 14px; }

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}
.article-hero-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  margin-bottom: 36px;
}
.article-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5BFF8F;
  margin-bottom: 14px;
}
.article h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 16px; color: #fff; }
.article-meta { color: rgba(255,255,255,0.4); font-size: 14px; margin-bottom: 36px; }
.article-body { color: rgba(255,255,255,0.78); line-height: 1.75; font-size: 1.075rem; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 1.6rem; color: #fff; margin: 44px 0 16px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.2rem; color: #fff; margin: 32px 0 12px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; }
.article-body a { color: #5BFF8F; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: #fff; }
.article-body blockquote {
  border-left: 3px solid #5BFF8F;
  padding-left: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin: 28px 0;
}
.cta-box {
  margin-top: 60px;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,255,143,0.06), rgba(74,108,255,0.04));
  border: 1px solid rgba(91,255,143,0.15);
}
.cta-box h3 { margin: 0 0 8px; font-size: 1.25rem; }
.cta-box p { color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.cta-box a {
  display: inline-block;
  background: #5BFF8F;
  color: #000;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.related {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.related h3 { font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 20px; }

/* === Mobile nav fix === */
.nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  background: #5BFF8F;
  color: #000;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-blog-mobile {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 8px 4px;
  margin-right: 6px;
}
.nav-blog-mobile:hover { color: #fff; }
.mobile-only { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) {
  .mobile-only { display: none; }
}
