/* FitFuel Honest Capability & Feature Status Engine CSS */
:root {
  --bg-primary: #121214;
  --bg-surface: #18181b;
  --bg-card: #1f1f23;
  --bg-card-hover: #27272a;
  --border-color: #2e2e33;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #9ca3af;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-sky: #0284c7;
  --accent-sky-light: #38bdf8;
  --accent-cyan: #06b6d4;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

body.theme-gym {
  --bg-primary: #0b132b;
  --bg-surface: #1c2541;
  --bg-card: #223055;
  --bg-card-hover: #293a68;
  --border-color: #3a4d7d;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-sky: #0ea5e9;
  --accent-cyan: #06b6d4;
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(18, 18, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

body.theme-gym .site-header {
  background-color: rgba(11, 19, 43, 0.9);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #09090b;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: #52525b;
}

.nav-link-btn {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #10b981;
  color: #09090b;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
}

.nav-link-btn:hover {
  background: #34d399;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

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

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 580px;
  margin: 0 auto;
}

.metric-box {
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s;
}

.metric-num {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: monospace;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-num.emerald { color: #34d399; }
.metric-num.amber { color: #fbbf24; }
.metric-num.sky { color: #38bdf8; }

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tabs */
.tabs-nav-wrap {
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.tabs-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.tabs-list::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.tab-btn.active {
  background: #10b981;
  color: #09090b;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.tab-btn.active .tab-count {
  background: rgba(9, 9, 11, 0.2);
  color: #09090b;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

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

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #52525b;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-pills-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.available {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-badge.beta {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-badge.coming-soon {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.35);
}

.category-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-body {
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-notice {
  font-size: 0.74rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.card-notice strong {
  color: #fbbf24;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action-primary {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #10b981;
  color: #09090b;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-action-primary:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-action-beta {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #f59e0b;
  color: #09090b;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-action-beta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.btn-action-sandbox {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  background: #0284c7;
  color: #ffffff;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-action-sandbox:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

/* Roadmap Section */
.roadmap-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0.5rem auto 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.roadmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.roadmap-card.phase-1::before { background: #10b981; }
.roadmap-card.phase-2::before { background: #f59e0b; }
.roadmap-card.phase-3::before { background: #0284c7; }

.phase-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.phase-name {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-1 .phase-name { color: #34d399; }
.phase-2 .phase-name { color: #fbbf24; }
.phase-3 .phase-name { color: #38bdf8; }

.phase-status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.phase-1 .phase-status-pill { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.phase-2 .phase-status-pill { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.phase-3 .phase-status-pill { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }

.phase-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.phase-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.phase-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-main);
}

.phase-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.2s;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.modal-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.info-text {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.6;
}

.engineering-notice-box {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Sandbox Container */
.sandbox-box {
  background: #09090b;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sandbox-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #38bdf8;
}

.sandbox-subtitle {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 270px;
  background: #121214;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  color: #f4f4f5;
  font-weight: 600;
}

.canvas-badge-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid #3f3f46;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 700;
}

.sandbox-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-secondary {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: #3f3f46;
}

/* Modal Footer */
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(9, 9, 11, 0.5);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.waitlist-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.waitlist-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .waitlist-input-group {
    flex-direction: row;
  }
}

.waitlist-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  min-height: 44px;
}

.waitlist-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.waitlist-submit-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waitlist-submit-btn:hover {
  background: #0369a1;
}

.toast-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.toast-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.toast-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Mobile Bottom Navigation (Persistent <768px, >=48px touch targets) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  justify-content: space-around;
  align-items: stretch;
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

.bottom-nav-item {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  gap: 0.15rem;
  touch-action: manipulation;
  transition: color 0.15s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: #34d399;
}

.bottom-nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}
