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

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

:root {
  --bg: #0D0D0D;
  --bg2: #161616;
  --bg3: #1E1E1E;
  --border: rgba(255,255,255,0.08);
  --orange: #FF6B35;
  --orange-light: #FF8C5A;
  --white: #FFFFFF;
  --gray: #A0A0A0;
  --gray2: #666;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--white); }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--orange); color: var(--white); padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--orange-light); }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; font-size: 24px; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,107,53,0.15) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,107,53,0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.badge {
  display: inline-block; background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3);
  color: var(--orange); padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gray); max-width: 580px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary { background: var(--orange); color: var(--white); padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,53,0.3); }
.btn-secondary { background: var(--bg3); color: var(--white); padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: #252525; }
.social-proof { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.social-proof-item { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: 13px; }
.social-proof-item strong { color: var(--white); font-weight: 600; }

/* Sections */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-sub { color: var(--gray); font-size: 1.05rem; max-width: 560px; }

/* Pain Points */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.pain-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color 0.2s; }
.pain-card:hover { border-color: rgba(255,107,53,0.3); }
.pain-emoji { font-size: 32px; margin-bottom: 16px; }
.pain-problem { color: var(--gray2); font-size: 14px; margin-bottom: 8px; text-decoration: line-through; }
.pain-solution { color: var(--white); font-weight: 600; font-size: 15px; }
.pain-arrow { color: var(--orange); margin: 8px 0; }

/* How it works */
.steps-bg { background: var(--bg2); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,107,53,0.15); border: 2px solid rgba(255,107,53,0.4); color: var(--orange); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 14px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 48px; }
.trust-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.trust-icon { font-size: 28px; flex-shrink: 0; }
.trust-title { font-weight: 700; margin-bottom: 4px; }
.trust-desc { color: var(--gray); font-size: 13px; }

/* Pricing */
.pricing-bg { background: linear-gradient(180deg, var(--bg) 0%, rgba(255,107,53,0.04) 50%, var(--bg) 100%); }
.pricing-card { background: var(--bg2); border: 2px solid var(--orange); border-radius: var(--radius-lg); padding: 40px; max-width: 500px; margin: 48px auto 0; text-align: center; position: relative; }
.pricing-badge-top { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: var(--white); padding: 4px 20px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pricing-price { font-size: 3.5rem; font-weight: 900; margin: 16px 0 4px; }
.pricing-price span { font-size: 1.4rem; font-weight: 400; color: var(--gray); }
.pricing-renew { color: var(--gray2); font-size: 13px; margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--gray); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li span { color: var(--orange); font-weight: 700; }
.pricing-note { color: var(--gray2); font-size: 12px; margin-top: 16px; }

/* Avatar CTAs */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.avatar-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; color: var(--white); transition: all 0.2s; display: block; }
.avatar-card:hover { border-color: rgba(255,107,53,0.4); transform: translateY(-2px); }
.avatar-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.avatar-card p { color: var(--gray); font-size: 14px; margin-bottom: 16px; }
.avatar-card .link { color: var(--orange); font-size: 14px; font-weight: 600; }

/* FAQ */
.faq-list { max-width: 720px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; color: var(--white); font-family: inherit; font-size: 16px; font-weight: 600; padding: 20px 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-question:hover { color: var(--orange-light); }
.faq-chevron { font-size: 20px; color: var(--orange); transition: transform 0.3s; flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-answer p { color: var(--gray); font-size: 15px; padding-bottom: 20px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-answer { max-height: 200px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--gray2); font-size: 13px; }
footer a { color: var(--gray); text-decoration: none; margin: 0 12px; }
footer a:hover { color: var(--white); }

/* Installer guide */
.guide-step { display: flex; gap: 24px; margin-bottom: 40px; align-items: flex-start; }
.guide-step-num { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,107,53,0.15); border: 2px solid rgba(255,107,53,0.4); color: var(--orange); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.guide-step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.guide-step-content p { color: var(--gray); font-size: 15px; margin-bottom: 12px; }
.guide-step-content .tip { background: rgba(255,107,53,0.08); border-left: 3px solid var(--orange); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 13px; color: var(--gray); }

/* Avatar page hero */
.avatar-hero { padding: 140px 24px 80px; text-align: center; }
.use-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.use-case { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.use-case-icon { font-size: 28px; margin-bottom: 12px; }
.use-case h4 { font-weight: 700; margin-bottom: 6px; }
.use-case p { color: var(--gray); font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .social-proof { flex-direction: column; align-items: center; gap: 12px; }
  .guide-step { flex-direction: column; }
}
