/* Product Hub + Vice-Principal (Завуч) Page Styles */

/* ===== Homepage hub: shared quicklinks under hero ===== */
.hero-quicklinks {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-quicklinks a { color: var(--text-secondary); text-decoration: none; }
.hero-quicklinks a:hover { color: var(--primary); }

/* ===== Products grid ===== */
.products-section {
  padding: 2rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.product-card.available { border-color: rgba(14, 165, 233, 0.4); }
.product-card.available:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.product-card.dev { border-style: dashed; }
.product-card.dev:hover { transform: translateY(-4px); border-color: var(--text-muted); }

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.product-status.dev {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.product-status.dev .status-dot,
.dev-badge .status-dot { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }

.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.15));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.product-icon svg { width: 30px; height: 30px; stroke: var(--primary); fill: none; }
.product-card.dev .product-icon svg { stroke: var(--warning); }

.product-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.product-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.2rem; }

.product-mini { list-style: none; margin-bottom: 1.8rem; }
.product-mini li {
  display: flex; gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.product-mini li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.product-mini.muted li { color: var(--text-muted); }
.product-mini.muted li::before { content: '•'; color: var(--warning); }

.product-cta { display: flex; gap: 0.8rem; margin-top: auto; flex-wrap: wrap; }
.product-cta .btn { font-size: 0.95rem; padding: 0.75rem 1.6rem; }

/* ===== Trust strip ===== */
.trust-section {
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.05), transparent);
  padding: 3.5rem 2rem;
}
.trust-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.trust-item { text-align: center; padding: 1rem; }
.trust-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.trust-item h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.trust-item p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Завуч: dev hero ===== */
.dev-hero {
  margin-top: 80px;
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(14, 165, 233, 0.05));
}
.dev-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0.6rem 0 0.8rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dev-hero-content p { color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.dev-hero-note { color: var(--text-muted) !important; font-size: 0.85rem !important; margin-top: 0.8rem !important; }
.dev-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.35rem 1rem; border-radius: 20px;
}

.dev-container { max-width: 1000px; margin: 0 auto; padding: 2rem; }

/* ===== Mockup window ===== */
.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}
.mockup-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #10b981; }
.mockup-title { margin-left: 0.8rem; color: var(--text-muted); font-size: 0.8rem; }
.mockup-body { padding: 1.5rem; }

.mock-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-bottom: 1.2rem; }
.mock-kpi {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.9rem; text-align: center;
}
.kpi-label { display: block; color: var(--text-muted); font-size: 0.7rem; margin-bottom: 0.3rem; }
.kpi-value { display: block; font-size: 1.3rem; font-weight: 700; }
.kpi-value.success { color: var(--success); }
.kpi-value.warning { color: var(--warning); }

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.mock-panel {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.mock-panel h4 { font-size: 0.9rem; margin-bottom: 0.8rem; color: var(--text-secondary); }

.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th, .mock-table td { padding: 0.4rem; text-align: center; font-size: 0.8rem; border-bottom: 1px solid var(--border); }
.mock-table th { color: var(--primary); font-weight: 600; }
.mock-table td { color: var(--text-secondary); }
.cell-good { color: var(--success) !important; font-weight: 600; }
.cell-mid { color: var(--warning) !important; font-weight: 600; }
.cell-low { color: #ef4444 !important; font-weight: 600; }

.mock-chart { width: 100%; height: auto; }

.heat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.heat-cell {
  aspect-ratio: 2 / 1;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; color: #0f172a;
}
.heat-cell.h5 { background: #10b981; }
.heat-cell.h4 { background: #84cc16; }
.heat-cell.h3 { background: #f59e0b; }
.heat-cell.h2 { background: #f97316; color: #fff; }

/* ===== Planned features ===== */
.planned-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.planned-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-bottom: 3rem;
}
.planned-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}
.planned-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.planned-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.planned-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.planned-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* ===== Dev CTA ===== */
.dev-cta-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center;
}
.dev-cta-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.dev-cta-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .products-section { padding: 1.5rem 1rem 3rem; }
  .products-grid { grid-template-columns: 1fr; }
  .dev-container { padding: 1rem; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .mock-grid { grid-template-columns: 1fr; }
}

.mockup-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -1.5rem 0 2.5rem;
}

/* ===== Smooth scroll + sticky section sub-nav ===== */
html { scroll-behavior: smooth; }

.subnav {
  position: sticky;
  top: 56px;
  z-index: 900;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { height: 0; }
.subnav-inner a {
  white-space: nowrap;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.subnav-inner a:hover { color: var(--primary); border-color: var(--primary); }

/* anchor offset so sticky bars don't cover headings */
#how, #features, #examples, #versions,
#requirements, #install, #faq, #pricing { scroll-margin-top: 112px; }

/* shields strip at top */
.shields-strip { max-width: 1000px; margin: 0 auto; padding: 2rem 2rem 0; }

/* placeholder "coming soon" block (завуч) */
.soon {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.soon strong { color: var(--text-secondary); display: block; margin-bottom: 0.4rem; font-size: 1.05rem; }

/* ===== "Скоро" teaser (завуч) ===== */
.teaser {
  max-width: 820px;
  margin: 3rem auto 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.teaser-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.teaser h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.teaser > .teaser-inner > p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.6rem;
}
.teaser-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.teaser-chips span {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  padding: 0.45rem 1rem;
  border-radius: 50px;
}
.teaser-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}
