/* ═══════════════════════════════════════════
   MyClaw Landing Page — Dark Premium Theme
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #09090b;
  --bg-raised: #111113;
  --fg: #fafafa;
  --muted: #18181b;
  --muted-fg: #71717a;
  --border: #27272a;
  --border-subtle: #1e1e21;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #a78bfa;
  --amber: #f59e0b;
  --radius: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted-fg);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; gap: 12px; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: none; font-family: inherit;
  justify-content: center;
}
.btn-ghost { background: transparent; color: var(--muted-fg); }
.btn-ghost:hover { color: var(--fg); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(167,139,250,0.3); }
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--muted-fg); background: var(--muted); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: 16px; font-weight: 700; }

/* ═══════════ HERO ═══════════ */
.hero {
  padding: 140px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 60px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
  color: var(--muted-fg);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted-fg);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
}
.hero-stat-value {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--fg), var(--muted-fg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--muted-fg); margin-top: 2px; }

/* ═══════════ HERO CHAT DEMO ═══════════ */
.hero-demo {
  max-width: 480px;
  margin: 60px auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.demo-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--muted);
}
.demo-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.demo-name { font-size: 14px; font-weight: 700; }
.demo-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.demo-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.demo-chat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.msg.user {
  background: var(--purple);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.agent {
  background: var(--muted);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg .agent-label {
  font-size: 11px; font-weight: 600; color: var(--purple);
  margin-bottom: 4px;
}
.msg-time { font-size: 11px; color: var(--muted-fg); margin-top: 4px; }

.demo-input {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}
.demo-input-field {
  flex: 1; background: var(--muted); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: var(--muted-fg); font-family: inherit;
}
.demo-send {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--purple); border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}

/* ═══════════ SOCIAL PROOF ═══════════ */
.social-proof {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.social-label { font-size: 13px; color: var(--muted-fg); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.social-logos { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; }
.social-logos span { font-size: 14px; color: var(--muted-fg); font-weight: 600; opacity: 0.5; letter-spacing: 1px; }

/* ═══════════ SECTION WRAPPER ═══════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--purple);
  margin-bottom: 12px;
}
.section-title {
  font-size: 40px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 16px; line-height: 1.15;
}
.section-sub {
  font-size: 16px; color: var(--muted-fg); max-width: 560px;
  line-height: 1.7; margin-bottom: 48px;
}
.section.center { text-align: center; }
.section.center .section-sub { margin-left: auto; margin-right: auto; }

/* ═══════════ HOW IT WORKS ═══════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.step-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

.step-number {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white;
  margin: 0 auto 20px;
}
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.step-time {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--green);
  background: rgba(34,197,94,0.1);
  padding: 6px 14px;
  border-radius: 99px;
}
.steps-grid .step-card:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: -18px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted-fg);
  z-index: 1;
}

/* ═══════════ PRESETS SHOWCASE ═══════════ */
.presets-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.preset-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  text-align: left;
}
.preset-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.preset-icon { font-size: 36px; margin-bottom: 12px; }
.preset-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.preset-tagline { font-size: 13px; color: var(--purple); font-weight: 500; font-style: italic; margin-bottom: 8px; }
.preset-desc { font-size: 13px; color: var(--muted-fg); line-height: 1.5; margin-bottom: 14px; }
.preset-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-skill-chip {
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
  background: var(--muted); color: var(--muted-fg);
}

/* ═══════════ SKILLS MARQUEE ═══════════ */
.skills-showcase {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.skills-label { text-align: center; font-size: 13px; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 24px; }

.skills-track {
  display: flex;
  gap: 14px;
  animation: scroll 30s linear infinite;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.skill-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.skill-pill .icon { font-size: 18px; }

/* ═══════════ FEATURES ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  text-align: left;
}
.feature-card:hover { border-color: var(--border); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--muted-fg); line-height: 1.6; }

/* ═══════════ TESTIMONIALS ═══════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}
.testimonial-text {
  font-size: 14px; color: var(--muted-fg); line-height: 1.7;
  margin-bottom: 16px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white;
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--muted-fg); }

/* ═══════════ PRICING ═══════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.price-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.price-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(167,139,250,0.06) 0%, var(--bg-raised) 100%);
}
.price-card.featured .popular-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: white;
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 99px;
}

.price-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--muted-fg); letter-spacing: 0; }
.price-desc { font-size: 14px; color: var(--muted-fg); margin-bottom: 24px; }

.price-features {
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.price-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted-fg);
}
.price-feature .check { color: var(--green); font-weight: 700; }

.price-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.price-btn.primary { background: linear-gradient(135deg, var(--purple), var(--blue)); color: white; }
.price-btn.primary:hover { opacity: 0.9; }
.price-btn.secondary { background: var(--muted); color: var(--fg); border: 1px solid var(--border); }
.price-btn.secondary:hover { border-color: var(--muted-fg); }

/* ═══════════ FAQ ═══════════ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
}
.faq-q { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.faq-a { font-size: 13px; color: var(--muted-fg); line-height: 1.7; }

/* ═══════════ FINAL CTA ═══════════ */
.final-cta {
  text-align: center;
  padding: 100px 32px;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(167,139,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.final-cta p { font-size: 17px; color: var(--muted-fg); margin-bottom: 36px; }

/* ═══════════ FOOTER ═══════════ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left { font-size: 13px; color: var(--muted-fg); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--muted-fg); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* ═══════════ LEGAL PAGES ═══════════ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 32px 80px;
}
.legal-header {
  text-align: center;
  margin-bottom: 64px;
}
.legal-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--fg), var(--muted-fg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-updated {
  font-size: 14px;
  color: var(--muted-fg);
}
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--fg);
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--fg);
}
.legal-section h3:first-of-type {
  margin-top: 0;
}
.legal-section p {
  font-size: 15px;
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section strong {
  color: var(--fg);
  font-weight: 600;
}
.legal-link {
  color: var(--purple) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.legal-link:hover {
  color: var(--blue) !important;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table thead {
  background: var(--muted);
}
.legal-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-table td {
  padding: 12px 16px;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border-subtle);
}
.legal-table tbody tr:last-child td {
  border-bottom: none;
}
.legal-table tbody tr:hover {
  background: var(--bg-raised);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .steps-grid, .features-grid, .presets-scroll, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .nav-links { display: none; }
  .step-card::after { display: none !important; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .legal-title { font-size: 36px; }
  .legal-page { padding: 120px 20px 60px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .section-title { font-size: 28px; }
  .final-cta h2 { font-size: 32px; }
}
