/* BossCrawAI Theme Styles */

:root {
  --brand-navy: #1b2a4a;
  --brand-orange: #e85d2c;
  --brand-green: #2ecc71;
  --brand-gray: #f5f7fa;
  --brand-gray-dark: #e8ecf1;
  --muted: #64748b;
  /* logo-2 字标色（页眉 / 页脚品牌字） */
  --logo-navy: #051e47;
  --logo-orange: #fb640b;
}

html {
  scroll-behavior: smooth;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brand-gray-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.site-logo .logo-boss,
.site-logo .logo-ai {
  color: var(--logo-navy);
}

.site-logo .logo-craw {
  color: var(--logo-orange);
}

@media (min-width: 768px) {
  .site-logo {
    font-size: 2rem;
  }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--brand-navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-orange);
}

.site-nav .btn-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--brand-orange);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.site-nav .btn-cta:hover {
  background: #d14f22;
  color: #fff !important;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--brand-navy);
  border-radius: 8px;
}

.nav-toggle:hover {
  background: var(--brand-gray);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--brand-gray-dark);
  background: #fff;
  padding: 1rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--brand-navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: rgba(232, 93, 44, 0.1);
  color: var(--brand-orange);
}

.mobile-nav .btn-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: var(--brand-orange);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ── Section utilities ── */
.is-style-section-gray {
  background: var(--brand-gray);
}

.is-style-section-navy {
  background: var(--brand-navy);
  color: #fff;
}

.is-style-section-navy h1,
.is-style-section-navy h2,
.is-style-section-navy h3,
.is-style-section-navy h4 {
  color: #fff;
}

.section-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-inner--sm {
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--brand-navy);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ── Hero ── */
.hero-section {
  background: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 6rem 1.5rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle p {
  margin: 0.25rem 0;
}

.hero-cta {
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--brand-orange);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #d14f22;
  color: #fff;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image__frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.25rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    #ffffff 0%,
    var(--brand-gray) 52%,
    #e8ecf1 100%
  );
  box-shadow:
    0 12px 40px rgba(27, 42, 74, 0.08),
    0 2px 8px rgba(27, 42, 74, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(232, 236, 241, 0.9);
}

.hero-image__frame::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 44, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-image__logo {
  position: relative;
  z-index: 1;
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(27, 42, 74, 0.12));
}

@media (min-width: 768px) {
  .hero-image__frame {
    padding: 2.5rem 2.75rem;
  }

  .hero-image__logo {
    max-width: 360px;
  }
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--brand-gray-dark);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.08);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Data table ── */
.data-table {
  border: 1px solid var(--brand-gray-dark);
  border-radius: 12px;
  overflow: hidden;
}

.data-table__head {
  display: none;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .data-table__head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }

  .data-table__head--4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.data-table__row {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--brand-gray-dark);
}

.data-table__row:last-child {
  border-bottom: none;
}

.data-table__row:nth-child(even) {
  background: var(--brand-gray);
}

@media (min-width: 768px) {
  .data-table__row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
  }

  .data-table__row--4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.data-table__cell-label {
  font-weight: 600;
  color: var(--brand-navy);
}

.data-table__cell-highlight {
  color: var(--brand-orange);
  font-weight: 500;
}

.data-table__cell-muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Comparison table ── */
.comparison-table {
  border: 1px solid var(--brand-gray-dark);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table__head {
  display: none;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .comparison-table__head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
}

.comparison-table__row {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--brand-gray-dark);
}

.comparison-table__row:last-child {
  border-bottom: none;
}

.comparison-table__row:nth-child(even) {
  background: var(--brand-gray);
}

@media (min-width: 768px) {
  .comparison-table__row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
  }
}

.comparison-table__dim {
  font-weight: 600;
  color: var(--brand-navy);
}

.comparison-table__generic {
  color: var(--muted);
  font-size: 0.9375rem;
}

.comparison-table__boss {
  color: var(--brand-orange);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
}

.stat-item__label {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ── CTA section ── */
.cta-section {
  text-align: center;
}

.cta-section__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.cta-section__qr {
  margin: 2rem auto;
  max-width: 200px;
}

.cta-section__qr img,
.cta-section__qr svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--brand-gray-dark);
}

.cta-section__note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Brand trust ── */
.brand-trust {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.brand-trust p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.brand-trust strong {
  color: var(--brand-navy);
}

/* ── About prose ── */
.prose-section {
  max-width: 720px;
  margin: 0 auto;
}

.prose-section p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.prose-section strong {
  color: var(--brand-navy);
}

.prose-section .prose-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-navy);
}

/* ── Tagline ── */
.tagline-block {
  text-align: center;
  margin-top: 2.5rem;
}

.tagline-block p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--brand-navy);
  margin: 0.25rem 0;
}

@media (min-width: 768px) {
  .tagline-block p {
    font-size: 1.25rem;
  }
}

.transition-text {
  text-align: center;
  max-width: 640px;
  margin: 2rem auto 0;
}

.transition-text p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0.25rem 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 1.5rem;
}

.site-footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__brand .logo-craw {
  color: var(--logo-orange);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  margin: 0 0.75rem;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--brand-orange);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Role cards (what-is page) ── */
.role-cards {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .role-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.role-card {
  background: #fff;
  border: 1px solid var(--brand-gray-dark);
  border-radius: 16px;
  padding: 2rem;
}

.role-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(232, 93, 44, 0.1);
  color: var(--brand-orange);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.role-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.role-card__solves {
  font-size: 1rem;
  color: var(--brand-orange);
  font-weight: 500;
  margin-bottom: 1rem;
}

.role-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.role-card__desc li {
  margin-bottom: 0.5rem;
}

/* ── Summary quote ── */
.summary-quote {
  text-align: center;
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  border-left: 4px solid var(--brand-orange);
  background: var(--brand-gray);
  border-radius: 0 12px 12px 0;
}

.summary-quote p {
  font-size: 1.0625rem;
  color: var(--brand-navy);
  line-height: 1.7;
  margin: 0.25rem 0;
  font-style: italic;
}

/* ── v3: Mobile fixed CTA bar ── */
.mobile-cta-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--brand-gray-dark);
  box-shadow: 0 -4px 16px rgba(27, 42, 74, 0.08);
}

.mobile-cta-bar__btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.875rem 1rem;
  text-align: center;
  background: var(--brand-orange);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }
}

body {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ── v3: Scenario funnel path ── */
.scenario-path {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.scenario-path p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0.35rem 0;
}

.scenario-path__arrow {
  color: var(--brand-orange);
  font-weight: 700;
}

.scenario-note {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.scenario-note p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0.5rem 0;
}

/* ── v3: Mission block (about page) ── */
.mission-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mission-block__item {
  margin-bottom: 2.5rem;
}

.mission-block__item:last-child {
  margin-bottom: 0;
}

.mission-block__label {
  display: inline-block;
  padding: 0.375rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--logo-orange);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.mission-block__text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .mission-block__label {
    font-size: 1rem;
    padding: 0.4375rem 1.75rem;
  }

  .mission-block__text {
    font-size: 1.875rem;
  }
}

/* ── v3: OpenClaw assistant placeholder ── */
.bosscrawai-assistant-root {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  z-index: 95;
}

@media (min-width: 768px) {
  .bosscrawai-assistant-root {
    bottom: 1.5rem;
  }
}

.bosscrawai-assistant-root:not(.bosscrawai-assistant-root--ready) {
  display: none;
}

.bosscrawai-assistant-fab {
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
}

.bosscrawai-assistant-fab:hover {
  background: var(--brand-orange);
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
