/* ============================================================
   VYNIRIONAI HUB — hub.css

   The hub shares its design system with Vynirion Forge
   (vynirion-forge/style.css and vynirion-forge/script.js). This file only
   holds the parts that exist on the hub: the ecosystem cards, status tags,
   and a few small hero and footer touches.
   ============================================================ */

/* ── Hero panel (Live with Vynirion Forge) ── */
.hero-work-card { text-decoration: none; }
.hwc-thumb { object-fit: cover; object-position: top center; display: block; }
.hwc-info h4 { color: var(--white); }
.hwc-info span { display: block; font-size: .75rem; color: rgba(255,255,255,.62); }
.hero-panel-label { margin-bottom: 8px; }
.hero-panel-sub { display: block; font-size: .82rem; line-height: 1.55; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.hwc-ext { margin-left: auto; font-size: .78rem; color: rgba(255,255,255,.45); flex-shrink: 0; }
.hero-work-card:hover .hwc-ext { color: var(--emerald); }
.hero-panel-link {
  font-size: .86rem; font-weight: 700; color: var(--emerald);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.hero-panel-link:hover { gap: 10px; }

/* ── Ecosystem cards ── */
.eco-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.eco-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 2px 12px rgba(47,79,79,.10), 0 1px 3px rgba(0,0,0,.07);
  border: 1.5px solid #b8cbc8; border-bottom: 3px solid transparent;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.eco-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.eco-top .svc-icon { margin-bottom: 0; }
.eco-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--slate); margin-bottom: 8px; }
.eco-card p { font-size: .87rem; color: var(--gray-500); line-height: 1.65; }

.eco-tag {
  font-size: .7rem; font-weight: 800; padding: 4px 11px;
  border-radius: 100px; letter-spacing: .03em; white-space: nowrap;
}
.tag-live { background: rgba(80,200,120,.18); color: var(--emerald); }
.tag-soon { background: var(--gray-100); color: var(--gray-500); }
.tag-dev  { background: rgba(212,220,90,.28); color: #5c6600; }

.eco-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--emerald); font-size: .85rem; font-weight: 700;
  margin-top: auto; padding-top: 20px; transition: gap .2s;
}
.eco-card:hover .eco-link { gap: 10px; }

/* Forge: the live platform, dark and featured */
.eco-card.live { background: var(--slate); border-color: var(--emerald); }
.eco-card.live h3 { color: var(--white); }
.eco-card.live p { color: rgba(255,255,255,.72); }
.eco-card.live .svc-icon { background: rgba(80,200,120,.16); color: var(--emerald); }
.eco-card.live:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Labs: in development, outlined in yellow green */
.eco-card.in-dev { border-color: #c9d24a; background: #fbfce9; border-bottom-color: #c9d24a; }
.eco-card.in-dev .svc-icon { background: rgba(212,220,90,.3); color: #6b7600; }

/* Coming soon: calm, no hover lift */
.eco-card.soon .svc-icon { background: var(--gray-100); color: var(--gray-500); }

/* Closing card */
.eco-cta {
  justify-content: center; text-align: center; align-items: center;
  background: rgba(255,255,255,.55); border: 2px dashed rgba(0,128,128,.4);
  box-shadow: none;
}
.eco-cta:hover { transform: translateY(-3px); border-color: var(--teal); background: var(--white); }
.eco-cta-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 14px;
  background: var(--emerald-pale); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.eco-cta p { margin-bottom: 0; }
.eco-cta .eco-link { color: var(--teal); }

/* ── About ── */
.hub-note { font-size: .88rem; color: var(--gray-500); margin-bottom: 0; }
.about-stats {
  display: flex; gap: 30px; margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.about-card .hstat-label { color: rgba(255,255,255,.7); }

/* ── Contact page ── */
.contact-info-title { margin-bottom: 14px; }
.contact-light .contact-info-title { color: var(--slate); }
.contact-light .contact-bullets li { color: var(--gray-500); }
.contact-light .contact-bullets li i { color: var(--teal); }
.contact-light .contact-direct { border-top-color: var(--gray-200); }
.contact-light .contact-direct p { color: var(--gray-500); }
.contact-light .contact-direct a { color: var(--teal); }
.contact-client { margin-top: 10px; font-size: .82rem; }
.contact-light .form-box {
  background: var(--white); border: 1.5px solid #b8cbc8;
  box-shadow: 0 6px 28px rgba(47,79,79,.12);
}
.contact-light .fg label { color: var(--slate); }
.contact-light .fg input, .contact-light .fg select, .contact-light .fg textarea {
  background: var(--gray-50); border: 1px solid #b8cbc8; color: var(--gray-800);
}
.contact-light .fg input::placeholder, .contact-light .fg textarea::placeholder { color: #8a9a9a; }
.contact-light .fg select option { background: var(--white); color: var(--gray-800); }
.contact-light .fg input:focus, .contact-light .fg select:focus, .contact-light .fg textarea:focus {
  border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,128,128,.14);
}
.contact-light .form-note { color: var(--gray-500); }
.contact-light .form-success h3, .contact-light .form-error h3 { color: var(--slate); }
.contact-light .form-success p, .contact-light .form-error p { color: var(--gray-500); }
.contact-light .form-error a { color: var(--teal); }
.fg[hidden] { display: none; }

/* ── Footer ── */
.hub-footer-logo { width: 84px; height: 42px; object-fit: cover; object-position: center; flex-shrink: 0; }
.footer-soon { color: rgba(255,255,255,.5); font-size: .85rem; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .eco-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  /* contact page: the form comes first, the direct emails follow it */
  .contact-form-col { order: -1; }
}
@media (max-width: 768px) {
  .eco-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 12px; }

  /* Phones get compact rows for the platforms that are not live yet */
  .eco-card.soon, .eco-card.in-dev { flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; }
  .eco-card.soon .eco-top, .eco-card.in-dev .eco-top { display: contents; }
  .eco-card.soon .svc-icon, .eco-card.in-dev .svc-icon { order: 0; flex-shrink: 0; }
  .eco-card.soon h3, .eco-card.in-dev h3 { order: 1; flex: 1; margin: 0; }
  .eco-card.soon .eco-tag, .eco-card.in-dev .eco-tag { order: 2; font-size: .66rem; padding: 3px 9px; }
  .eco-card.soon, .eco-card.in-dev { gap: 11px; padding: 12px 14px; }
  .eco-card.soon .svc-icon, .eco-card.in-dev .svc-icon { width: 40px; height: 40px; font-size: 1rem; }
  .eco-card.soon h3, .eco-card.in-dev h3 { font-size: .95rem; }

  /* the sticky bottom bar is the phone CTA */
  .eco-cta { display: none; }

  /* About: keep the card short, the story above it already says the rest */
  .about-grid { gap: 28px; }
  .about-card { padding: 26px 22px; }
  .about-card i { font-size: 1.7rem; margin-bottom: 12px; }
  .about-card h3 { font-size: 1.12rem; margin-bottom: 0; }
  .about-card p { display: none; }
  .about-stats { gap: 20px; margin-top: 18px; padding-top: 18px; }

  /* Easier thumb targets */
  .hamburger { padding: 12px; margin-right: -12px; }
  .footer-legal a { display: inline-block; padding: 8px 0; }

  /* Keep the sticky bar and the back to top button clear of the home indicator */
  .mobile-cta-bar a { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .back-top { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  /* 16px fields stop iPhones from zooming the page when a field is tapped */
  .fg input, .fg select, .fg textarea { font-size: 16px; padding: 12px 13px; }
  .contact-light .form-box { padding: 20px 16px; }
  .contact-layout { gap: 24px; }
  .contact-direct { margin-top: 8px; padding-top: 18px; }
}
