/* OpenClaw Basics — shared styles beyond Tailwind */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: "General Sans", "DM Sans", system-ui, sans-serif;
  background: #1A1A2E;
  color: #F5F5F7;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Clash Display", "Sora", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up   { animation: fadeUp 0.7s ease-out both; }
.fade-up-1 { animation: fadeUp 0.7s ease-out 0.1s both; }
.fade-up-2 { animation: fadeUp 0.7s ease-out 0.25s both; }
.fade-up-3 { animation: fadeUp 0.7s ease-out 0.4s both; }
.fade-up-4 { animation: fadeUp 0.7s ease-out 0.55s both; }

@keyframes softBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.soft-bounce { animation: softBounce 2.4s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.gradient-text {
  background: linear-gradient(90deg, #E94560 0%, #C9A84E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-scrolled {
  background: rgba(26, 26, 46, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(42, 42, 74, 0.7);
}

.card-hover { transition: all 0.3s ease; }
.card-hover:hover { border-color: rgba(233, 69, 96, 0.35); transform: translateY(-2px); }

.btn-primary {
  background: #E94560;
  color: #fff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  display: inline-block;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px -8px rgba(233, 69, 96, 0.5);
  transition: all 0.2s ease;
  border: 0;
}
.btn-primary:hover { background: #D63851; transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid #C9A84E;
  color: #C9A84E;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: rgba(201, 168, 78, 0.1); }

.label-pill {
  display: inline-block;
  background: rgba(233, 69, 96, 0.1);
  color: #E94560;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}

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

.blog-content { font-size: 1.0625rem; line-height: 1.8; color: #1A1A2E; }
.blog-content > * + * { margin-top: 1.25rem; }
.blog-content h2 { font-family: "Clash Display", system-ui, sans-serif; font-size: 1.875rem; font-weight: 600; margin-top: 2.5rem; line-height: 1.25; }
.blog-content h3 { font-family: "Clash Display", system-ui, sans-serif; font-size: 1.5rem; font-weight: 600; margin-top: 2rem; line-height: 1.3; }
.blog-content p { color: #1A1A2E; }
.blog-content a { color: #E94560; text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: #D63851; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li + li { margin-top: 0.5rem; }
.blog-content blockquote { border-left: 3px solid #E94560; padding-left: 1.25rem; color: #1A1A2E; font-style: italic; }
.blog-content code { background: #F5F5F7; padding: 0.15rem 0.4rem; border-radius: 0.35rem; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.92em; }
.blog-content pre { background: #1A1A2E; color: #F5F5F7; padding: 1.25rem 1.5rem; border-radius: 0.75rem; overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9rem; }
.blog-content pre code { background: transparent; padding: 0; color: inherit; }
.blog-content img { border-radius: 0.75rem; }
.blog-content hr { border: 0; border-top: 1px solid rgba(26,26,46,0.1); margin: 2rem 0; }

/* spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* mobile menu transition */
.mobile-menu { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
