/* ============================================================
   OpenClaw Skills Directory — Shared Stylesheet
   skills.vastaffer.com
   ============================================================ */

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

:root {
  --navy: #0E1532;
  --deep-blue: #1e3a5f;
  --lime: #B7EC60;
  --coral: #E77B61;
  --coral-dark: #d86b51;
  --off-white: #F7F7F9;
  --white: #FFFFFF;
  --soft-gray: #969FA6;
  --text: #2D3748;
  --light-gray: #E9EDF2;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo img { height: 36px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta {
  background: var(--coral) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--coral-dark) !important; }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(231,123,97,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(183,236,96,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb span { color: rgba(255,255,255,0.25); font-size: 13px; }
.breadcrumb .current { color: rgba(255,255,255,0.6); font-size: 13px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-revenue { background: rgba(231,123,97,0.15); border: 1px solid rgba(231,123,97,0.3); color: #f4a08e; }
.badge-scaler  { background: rgba(30,58,95,0.4);    border: 1px solid rgba(255,255,255,0.15); color: #93c5fd; }
.badge-killer  { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.badge-leverage{ background: rgba(183,236,96,0.12);  border: 1px solid rgba(183,236,96,0.3); color: var(--lime); }
.hero h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.55); }
.meta-item strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.meta-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 50%; }

/* ── LAYOUT ── */
.page-content { max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.content-section { margin-bottom: 64px; }

/* ── SECTION HEADER ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-body { font-size: 16px; color: var(--text); line-height: 1.75; }
.section-body p { margin-bottom: 16px; }
.section-body p:last-child { margin-bottom: 0; }

/* ── DARK BOX (funnel package, deliverable list) ── */
.dark-box {
  background: var(--navy);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.dark-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--lime));
}
.dark-box h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.d-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.d-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.d-desc { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.4; }
.dark-box-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.dark-box-footer strong { color: var(--lime); }

/* ── USE CASES / COMPARISON ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  border-top: 3px solid var(--coral);
}
.feature-card:nth-child(2) { border-top-color: var(--lime); }
.feature-card:nth-child(3) { border-top-color: var(--deep-blue); }
.card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.feature-card:nth-child(2) .card-tag { color: #4a7c1f; }
.feature-card:nth-child(3) .card-tag { color: var(--deep-blue); }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--soft-gray); line-height: 1.6; margin-bottom: 16px; }
.value-box {
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.value-box strong { color: var(--navy); font-weight: 700; }

/* ── BEFORE/AFTER ── */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.before-col, .after-col {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
}
.before-col { border-top: 3px solid #e53e3e; }
.after-col { border-top: 3px solid var(--lime); }
.ba-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.before-col .ba-label { color: #e53e3e; }
.after-col .ba-label { color: #3d7c19; }
.ba-list { list-style: none; }
.ba-list li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.ba-list li:last-child { border-bottom: none; }
.ba-list li::before { flex-shrink: 0; margin-top: 2px; }
.before-col .ba-list li::before { content: '✕'; color: #e53e3e; font-size: 12px; font-weight: 700; }
.after-col .ba-list li::before { content: '✓'; color: #3d7c19; font-size: 12px; font-weight: 700; }

/* ── STEPS ── */
.steps { display: grid; gap: 16px; margin-top: 24px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--lime);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--soft-gray); line-height: 1.6; }
.step-time {
  display: inline-block;
  background: rgba(183,236,96,0.15);
  color: #3d6b19;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 8px;
}
.steps-total {
  background: var(--navy);
  border-radius: 10px;
  padding: 16px 24px;
  margin-top: 12px;
}
.steps-total p { font-size: 15px; color: rgba(255,255,255,0.7); }
.steps-total strong { color: var(--lime); }

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  margin-top: 24px;
}
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
th {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #fafbfd; }
td strong { color: var(--navy); font-weight: 600; }
.tag-required   { background: rgba(231,123,97,0.1);  color: var(--coral-dark); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 100px; }
.tag-recommended{ background: rgba(14,21,50,0.07);   color: var(--deep-blue);  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 100px; }
.tag-included   { background: rgba(183,236,96,0.18); color: #3d6b19;           font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 100px; }
.tag-optional   { background: rgba(150,159,166,0.15);color: var(--soft-gray);  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 100px; }

/* ── LIMITATIONS ── */
.limitations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.limitation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.limitation-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(231,123,97,0.1);
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.limitation-text { font-size: 14px; color: var(--text); line-height: 1.5; }

/* ── MATH CARDS ── */
.math-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.math-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}
.math-card-header { background: var(--navy); padding: 18px 22px; }
.math-card-header h3 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 2px; }
.math-card-header p { font-size: 12px; color: rgba(255,255,255,0.4); }
.math-rows { padding: 8px 0; }
.math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
}
.math-row:last-child { border-bottom: none; }
.math-row-label { color: var(--soft-gray); }
.math-row-value { font-weight: 600; color: var(--navy); }
.math-row.highlight { background: rgba(183,236,96,0.08); }
.math-row.highlight .math-row-label { color: var(--text); font-weight: 600; }
.math-row.highlight .math-row-value { color: #3d6b19; font-weight: 800; font-size: 16px; }

/* ── PLATFORM PILLS ── */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.platform-pill {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── STYLES GRID ── */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.style-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
  border-top: 3px solid var(--coral);
}
.style-card:nth-child(2) { border-top-color: var(--deep-blue); }
.style-card:nth-child(3) { border-top-color: var(--lime); }
.style-card:nth-child(4) { border-top-color: #e2e8f0; }
.style-card:nth-child(5) { border-top-color: #2d3748; }
.style-icon { font-size: 24px; margin-bottom: 8px; }
.style-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.style-desc { font-size: 12px; color: var(--soft-gray); }

/* ── BOTTOM CTA ── */
.bottom-cta {
  background: var(--navy);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 72px;
}
.bottom-cta::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(231,123,97,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.bottom-cta h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.bottom-cta h2 em { font-style: normal; color: var(--lime); }
.bottom-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.trust-line { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 24px 32px;
  margin-top: 72px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-brand img { height: 30px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .deliverable-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .math-cards { grid-template-columns: 1fr; }
  .limitations-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .bottom-cta { padding: 48px 24px; }
  .step { grid-template-columns: 42px 1fr; gap: 14px; }
}
