/* ============================================
   Home Page Styles (Bento Grid Redesign)
   Mapped to kit.css design system
   ============================================ */

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.home-hero__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-wrap: balance;
}

/* Typewriter effect */
.typewriter-line {
  display: inline;
  min-width: 20ch;
}
.typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: -2px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
  text-wrap: balance;
}

.home-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.home-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.home-section__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-primary);
  text-wrap: balance;
}

.home-section__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-inline: auto;
  text-wrap: balance;
}

/* Problem Box */
.home-problem-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
}

.home-problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.home-problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #EF4444; /* Red accent for problems */
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.home-problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.home-problem-card:hover::before {
  opacity: 1;
}

.home-problem-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.home-problem-col p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-quote {
  text-align: center;
  font-size: 24px;
  font-style: italic;
  color: var(--text-secondary);
  padding: 40px;
  border-left: 4px solid var(--accent-purple);
  background: var(--bg-card);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin: 60px 0;
}

/* Team Grid uses personas__grid and persona-home-card from kit.css directly */

/* Comparison Table */
.home-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.home-table th, .home-table td {
  padding: 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.home-table th { font-size: 18px; color: var(--text-primary); background: rgba(0,0,0,0.2); }
.home-table td:first-child { font-weight: 600; color: var(--text-secondary); width: 25%; }
.home-table td.bad { color: var(--text-muted); opacity: 0.7; }
.home-table td.good { color: var(--text-primary); background: rgba(16, 185, 129, 0.05); }

/* Dashboard Mockup */
.app-window {
  max-width: 1000px; margin: 0 auto 60px;
  background: #1e1e2e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.5);
}
.app-window__bar {
  height: 38px; background: #E5E5EA;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid #d1d1d6;
}
.app-window__dots { display: flex; gap: 8px; }
.app-window__dot { width: 12px; height: 12px; border-radius: 50%; }
.app-window__dot--r { background: #ff5f56; }
.app-window__dot--y { background: #ffbd2e; }
.app-window__dot--g { background: #27c93f; }
.app-window__title {
  font-size: 13px; font-weight: 600; color: #333; font-family: -apple-system, sans-serif;
}
.app-window__right { width: 50px; }
\n
/* --- Dashboard Mockup Exact CSS --- */
.dash-body {
  --bg-sidebar:#09090b;--bg-card:#18181b;--bg-card-hover:#27272a;
  --bg-column:#141417;--bg-input:#09090b;--bg-modal:#18181b;
  --text-primary:#f4f4f5;--text-secondary:#a1a1aa;--text-muted:#71717a;
  --border:#27272a;--border-light:#27272a;
  --accent:#3b82f6;--accent-hover:#60a5fa;
  --col-backlog:#71717a;--col-in-progress:#3b82f6;--col-review:#eab308;--col-done:#22c55e;
  --danger:#ef4444;--radius:8px;--radius-sm:6px;
  --shadow:0 10px 30px rgba(0,0,0,.5);
  --card-agent-bg:rgba(255,255,255,.04);

  display: flex; height: 600px;
  background: var(--bg-sidebar); 
  color: var(--text-primary);
  font-family: -apple-system, sans-serif;
  overflow: hidden;
  text-align: left;
}

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

.dash-body .sidebar {
  width:240px;min-width:240px;background:var(--bg-sidebar);border-right:1px solid var(--border);
  display:flex;flex-direction:column;
}
.dash-body .sidebar-header { display:flex;align-items:center;padding:16px 16px 12px; }
.dash-body .sidebar-title { font-size:16px;font-weight:700;display:flex;align-items:center;gap:6px; color:#fff;}
.dash-body .sidebar-subtitle { font-size:10px;font-weight:600;text-transform:uppercase;color:var(--accent); }

.dash-body .sidebar-section { padding:0 12px 16px; }
.dash-body .sidebar-section-header { padding:0 4px 8px; }
.dash-body .sidebar-section-title { font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--text-secondary); }

.dash-body .project-list { display:flex;flex-direction:column;gap:2px; }
.dash-body .project-item { display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:var(--radius-sm); font-size:13px; color:var(--text-secondary);}
.dash-body .project-item.active { background:rgba(59,130,246,0.12);color:var(--accent); }
.dash-body .project-name { flex:1;overflow:hidden;text-overflow:ellipsis; white-space:nowrap; }
.dash-body .project-task-count { font-size:11px;background:var(--bg-card);padding:1px 6px;border-radius:10px; }

.dash-body .agent-list { display:flex;flex-direction:column;gap:6px;padding-top:8px; }
.dash-body .agent-badge { display:flex;align-items:center;gap:8px;font-size:13px;padding:4px 10px; color:var(--text-secondary);}
.dash-body .agent-dot { width:8px;height:8px;border-radius:50%; }
.dash-body .agent-task-count { margin-left:auto;font-size:11px;color:var(--text-secondary); }

.dash-body .main-wrapper { flex:1;display:flex;flex-direction:column;overflow:hidden; }
.dash-body .header { display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--border);background:var(--bg-sidebar); }
.dash-body .header-project-name { font-size:16px;font-weight:600; color:#fff;}

.dash-body .sync-status { display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:20px;background:rgba(34,197,94,0.1);border:1px solid rgba(34,197,94,0.15); }
.dash-body .sync-dot { width:7px;height:7px;border-radius:50%;background:var(--col-done);box-shadow:0 0 4px rgba(34,197,94,0.4); }
.dash-body .sync-label { font-size:11px;font-weight:500;color:var(--text-secondary); }

.dash-body .board { display:flex;gap:16px;padding:20px;flex:1;overflow-x:auto; }
.dash-body .column { background:var(--bg-column);border-radius:var(--radius);border:1px solid var(--border);display:flex;flex-direction:column;width:300px;min-width:300px; }
.dash-body .column-header { display:flex;align-items:center;gap:8px;padding:14px 16px 10px; }
.dash-body .column-indicator { width:8px;height:8px;border-radius:50%; }
.dash-body .column-indicator.backlog { background:var(--col-backlog); }
.dash-body .column-indicator.in-progress { background:var(--col-in-progress); }
.dash-body .column-indicator.review { background:var(--col-review); }
.dash-body .column-indicator.done { background:var(--col-done); }
.dash-body .column-title { font-size:13px;font-weight:600;color:#fff; }
.dash-body .column-count { margin-left:auto;font-size:11px;background:var(--bg-card);border-radius:10px;padding:1px 7px;color:var(--text-secondary); }
.dash-body .card-list { flex:1;overflow-y:auto;padding:6px 10px 10px;display:flex;flex-direction:column;gap:8px; }

.dash-body .task-card { background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:12px; }
.dash-body .card-top { display:flex;justify-content:space-between;align-items:flex-start;gap:8px; }
.dash-body .card-title { font-size:13px;font-weight:600;line-height:1.4;color:#fff; }
.dash-body .card-description { font-size:12px;color:var(--text-secondary);margin-top:6px;line-height:1.5; }

.dash-body .card-meta { display:flex;gap:6px;margin-top:8px; }
.dash-body .card-agent-badge { display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--text-secondary);background:var(--card-agent-bg);padding:2px 8px;border-radius:10px; }
.dash-body .card-agent-dot { width:6px;height:6px;border-radius:50%; }
.dash-body .card-footer { display:flex;justify-content:space-between;align-items:center;margin-top:8px; }
.dash-body .card-time { font-size:11px;color:var(--text-muted); }
.dash-body .priority-badge { font-size:10px;font-weight:600;padding:2px 8px;border-radius:4px; }
.dash-body .priority-high { background:rgba(248,81,73,.15);color:#f85149; }
.dash-body .priority-urgent { background:rgba(188,140,255,.2);color:#bc8cff; }

/* Mobile Reponsive for Mockup */
@media (max-width: 768px) {
  .dash-body .sidebar { display: none !important; }
  .dash-body .header { justify-content: flex-end; }
  .dash-body .header-left, .dash-body .header-project-name { display: none !important; }
  .dash-body .btn-icon.sidebar-toggle.mobile-only-flex { display: flex !important; background:none;border:none;color:var(--text-secondary);margin-right:8px; }
  .dash-body .board { scroll-snap-type: x mandatory; padding: 12px; padding-bottom: 24px; }
  .dash-body .column { min-width: 85vw; width: 85vw; max-width: 320px; scroll-snap-align: center; }
  .app-window { border-radius: 0; margin-left: -24px; margin-right: -24px; max-width: 100vw; overflow-x: hidden; }
}
\n

/* Features List */
.home-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-feature-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-feature-block:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.home-feature-block h3 {
  font-family: var(--font-display);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
}
.home-feature-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Lazy Check */
.home-lazy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px !important;
  margin: 0 auto;
}
.home-lazy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition-normal);
}
.home-lazy-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.home-lazy-card p { font-size: 16px; color: var(--text-primary); margin: 0; line-height: 1.5; }
.home-lazy-card i { color: #10B981; width:24px; height:24px; flex-shrink: 0; margin-top: 2px;}
.home-lazy-card .bad-icon { color: #EF4444; }

/* How It Works Workflow */
.home-workflow {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home-wf-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  transition: all var(--transition-normal);
  position: relative;
}
.home-wf-step:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.home-wf-step--final {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.home-wf-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-wf-body { flex: 1; }
.home-wf-icon { font-size: 28px; margin-bottom: 8px; }
.home-wf-body h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.home-wf-body p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }

.home-wf-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.home-wf-skills span {
  font-family: monospace;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.home-wf-arrow {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: var(--text-muted);
  opacity: 0.5;
}
.home-wf-arrow i { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .home-wf-step { flex-direction: column; gap: 12px; padding: 20px; }
  .home-wf-num { width: 36px; height: 36px; font-size: 15px; }
}

/* Install */
.home-supported {
  text-align: center;
  margin-bottom: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.home-supported__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}
.home-supported__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.home-supported__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.home-supported__item:hover {
  opacity: 1;
}
.home-supported__item.active {
  opacity: 1;
  color: var(--accent-lime);
  border-bottom: 2px solid var(--accent-lime);
  padding-bottom: 4px;
}
.home-supported__item.active i {
  color: var(--accent-lime);
}
.home-supported__item i {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.home-install-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.home-install-tab {
  padding: 10px 24px;
  border-radius: 30px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-size: 15px;
}
.home-install-tab:hover {
  color: var(--text-primary);
}
.home-install-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.home-install-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.home-install-content.active {
  display: block;
}

.home-install-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.home-install-block {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.home-install-code { color: #C4F82A; font-family: monospace; font-size: 16px; }

.home-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.home-manual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.home-manual-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.home-manual-card h4 i { width: 16px; height: 16px; color: var(--text-muted); }
.home-manual-card code {
  display: block;
  background: #000;
  padding: 12px 16px;
  border-radius: 6px;
  color: #C4F82A;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; width: 100%; position: relative; }
  .home-hero { padding: 100px 0 40px; }
  .home-hero__title { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; word-break: break-word; }
  .typewriter-line { min-width: unset; display: inline-block; max-width: 100%; }
  .home-hero__subtitle { font-size: 16px; padding: 0 10px; margin-bottom: 32px; }
  .home-hero__ctas { flex-direction: column; width: 100%; }
  .home-hero__ctas .btn { width: 100%; justify-content: center; }
  .home-section { padding: 60px 0; }
  .home-section__title { font-size: clamp(24px, 7vw, 28px); line-height: 1.25; margin-bottom: 12px; word-break: break-word; }
  .home-section__subtitle { font-size: 16px; margin-bottom: 40px; }
  .home-problem-item { grid-template-columns: 1fr; gap: 16px; }
  .home-team-grid { grid-template-columns: 1fr; }
  .home-feature-list { grid-template-columns: 1fr; }
  .home-install-block { flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
  .home-install-code { font-size: 13px; word-break: break-all; overflow-wrap: break-word; white-space: pre-wrap; display: block; overflow-x: auto; text-align: left; }
  .home-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  .home-table tr { margin-bottom: 0; border: none; padding: 0; }
  .home-table td, .home-table th { padding: 12px; }
  .home-supported__list { gap: 16px; justify-content: flex-start; }
  .home-manual-grid { grid-template-columns: 1fr; }
  
  .app-window { border-radius: 0; margin-left: -24px; margin-right: -24px; width: calc(100% + 48px); max-width: 100vw; overflow-x: hidden; }
  .dash-sidebar { display: none; }
  .kanban-column { width: 85vw; max-width: 320px; }
}
