/* OpenClaw — Shared Stylesheet */

:root {
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --border: #23232f;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --radius: 12px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ───────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────── */

.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav .logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ── Cards / Features ─────────────────────────────── */

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.features {
  padding: 72px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.2s, border-color 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Pricing ──────────────────────────────────────── */

.pricing {
  padding: 72px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.price-card.popular {
  border-color: var(--accent);
  position: relative;
}

.price-card.popular::before {
  content: "Best Value";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-card .period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.price-card .savings {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
}

/* ── Legal / Text pages ───────────────────────────── */

.page-header {
  padding: 64px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.content-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.content-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  color: var(--text-muted);
  margin: 0 0 16px 24px;
}

.content-body li {
  margin-bottom: 6px;
}

.content-body strong {
  color: var(--text);
}

/* ── FAQ ──────────────────────────────────────────── */

.faq {
  padding: 0 0 72px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Contact card ─────────────────────────────────── */

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-bottom: 64px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-card .email {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text);
}

.site-footer .copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }

  .features,
  .pricing {
    padding: 48px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .page-header {
    padding: 48px 0 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
