/* ==========================================================================
   components.css — Chedders Bootstrap Core DNA
   Buttons · Cards · Navbar · Footer · Feature Items · Progress Indicators
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-chedders {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
  user-select: none;
}

/* Primary */
.btn-chedders--primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-chedders--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-chedders--primary:active {
  transform: translateY(0);
}

/* Secondary */
.btn-chedders--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-chedders--secondary:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .btn-chedders--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .btn-chedders--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Ghost */
.btn-chedders--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-chedders--ghost:hover {
  background: var(--accent-subtle);
  color: var(--text);
  border-color: var(--border);
}

/* Size variants */
.btn-chedders--sm {
  font-size: 13px;
  padding: 8px 18px;
  min-height: 36px;
}

.btn-chedders--lg {
  font-size: 15px;
  padding: 14px 32px;
  min-height: 52px;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.2s ease;
  height: 60px;
}

.site-nav.is-scrolled {
  box-shadow: 0 2px 12px var(--shadow);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.site-nav__logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.site-nav__logo:hover .site-nav__logo-icon {
  background: var(--primary-light);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__links a:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

.site-nav__links a.active {
  color: var(--text);
  font-weight: 600;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--accent-subtle);
  color: var(--text);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.nav-hamburger:hover {
  background: var(--accent-subtle);
}

/* Mobile Drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: 0 8px 24px var(--shadow);
}

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

.nav-mobile-drawer ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-drawer ul a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-mobile-drawer ul a:hover {
  background: var(--accent-subtle);
}

.nav-mobile-drawer .nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-drawer .btn-chedders {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {}

.hero__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.hero__window-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__window-dot--red   { background: #ff5f57; }
.hero__window-dot--amber { background: #febc2e; }
.hero__window-dot--green { background: #28c840; }

.hero__window-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}

.hero__window-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__code-pane {
  padding: 20px;
  border-right: 1px solid var(--border);
  min-height: 260px;
}

.hero__code-pane pre {
  background: transparent;
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.code-tag    { color: #0b6e4f; }
[data-theme="dark"] .code-tag    { color: #6ee7b7; }

.code-attr   { color: #0b4e8a; }
[data-theme="dark"] .code-attr   { color: #7dd3fc; }

.code-string { color: #7c3aed; }
[data-theme="dark"] .code-string { color: #c4b5fd; }

.code-prop   { color: #b45309; }
[data-theme="dark"] .code-prop   { color: #fcd34d; }

.hero__preview-pane {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--code-bg);
}

.hero__preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__preview-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__preview-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.hero__preview-bar--wide  { width: 70%; }
.hero__preview-bar--med   { width: 50%; }
.hero__preview-bar--short { width: 35%; }
.hero__preview-bar--btn   {
  width: 80px;
  height: 22px;
  background: var(--primary);
  border-radius: 4px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(11, 31, 58, 0.15);
}

[data-theme="dark"] .feature-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-card__icon {
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Status / Progress Section
   -------------------------------------------------------------------------- */
.status-section {}

.status-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.status-group__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-2);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.status-item:last-child {
  border-bottom: none;
}

.status-item__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-item__dot--done    { background: #22c55e; }
.status-item__dot--active  { background: #f59e0b; }
.status-item__dot--planned { background: var(--border); }

.status-item__label {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.status-item__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.status-item__tag--done {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

[data-theme="dark"] .status-item__tag--done {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.status-item__tag--active {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

[data-theme="dark"] .status-item__tag--active {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.status-item__tag--planned {
  background: var(--badge-bg);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Why Section — Philosophy List
   -------------------------------------------------------------------------- */
.why-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.why-item__number {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 28px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.why-item__content {}

.why-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.why-item__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Ecosystem Cards
   -------------------------------------------------------------------------- */
.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-card:hover {
  border-color: rgba(11, 31, 58, 0.2);
  box-shadow: 0 2px 10px var(--shadow);
}

[data-theme="dark"] .eco-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.eco-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
}

[data-theme="dark"] .eco-card__icon {
  color: var(--muted);
}

.eco-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.eco-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Early Access / CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--primary);
  border-radius: 12px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-banner .btn-chedders--primary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.cta-banner .btn-chedders--primary:hover {
  background: #f0f4f8;
  border-color: #f0f4f8;
}

.cta-banner__list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.cta-banner__list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-banner__list li::before {
  content: '–';
}

/* --------------------------------------------------------------------------
   Founder Note
   -------------------------------------------------------------------------- */
.founder-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.founder-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
}

.founder-note__quote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.founder-note__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder-note__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.founder-note__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.founder-note__role {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  transition: background-color 0.25s ease;
}

.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand {}

.site-footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 12px;
}

.site-footer__brand-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.site-footer__tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 240px;
  margin-bottom: 20px;
}

.site-footer__social {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-footer__social a:hover {
  background: var(--accent-subtle);
  color: var(--text);
}

.site-footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--muted);
}

.site-footer__legal {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--text);
}

/* ==========================================================================
   Assets / Screenshot Section
   ========================================================================== */

.assets-section__header {
  margin-top: 0;
  text-align: center;
  margin-bottom: 40px;
}

.assets-screenshot {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px var(--shadow-md);
}

.assets-screenshot__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.assets-section__header .section-title {
  margin-top: 12px;
}
