/* VEILWATCH home page — product hub grid and home-specific layouts */

/* ===== Home hero ===== */
.home-hero {
  margin-top: calc(var(--header-height) + 32px);
  position: relative;
  color: #fff;
  padding: 140px 0 120px;
  overflow: hidden;
  background: #010d15;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,13,21,0.55) 0%, rgba(1,13,21,0.92) 100%);
  z-index: 1;
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero-content { max-width: 820px; }
.home-hero .subtitle {
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 30px;
  letter-spacing: -0.012em;
}
.home-hero h1 span { color: var(--primary-blue); }
.home-hero .lede {
  font-size: 1.22rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 720px;
}
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Product hub ===== */
.product-hub { padding: 100px 0; }
.hub-cat {
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hub-cat:first-of-type { margin-top: 16px; }
.hub-cat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin: 0;
}

.hub-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.hub-card {
  display: block;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  min-height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-color: rgba(46,163,242,0.4);
  color: #fff;
}
.hub-card-tag {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.82rem;
  color: var(--primary-blue);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 600;
}
.hub-card h3 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.hub-card p {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  line-height: 1.58;
  margin-bottom: 20px;
}
.hub-link {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.85rem;
  color: var(--primary-blue);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.hub-card:hover .hub-link { color: #fff; }
.hub-card-wide {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 720px) {
  .hub-card-wide { grid-template-columns: 1fr; }
}

/* ===== Sectors table ===== */
.sectors-section { background: var(--bg-warm); }
.sector-grid {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-light);
}
.sector-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.sector-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  font-size: 1rem;
}
.sector-apps {
  color: var(--text-body);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .sector-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* ===== Foundation cards ===== */
.foundation-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}
.foundation-card {
  display: block;
  background: linear-gradient(135deg, rgba(2,48,71,0.8) 0%, rgba(1,30,50,0.9) 100%);
  border: 1px solid rgba(46,163,242,0.2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
.foundation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,163,242,0.5);
  color: #fff;
  background: linear-gradient(135deg, rgba(2,58,85,0.9) 0%, rgba(2,40,65,0.95) 100%);
}
.foundation-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 14px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(46,163,242,0.4);
  border-radius: 3px;
}
.foundation-card h3 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.foundation-card p {
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 22px;
  font-size: 0.98rem;
}

/* Hide the old ZEN-tagline if it ever rendered */
.zen-tagline { display: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .home-hero { padding: 90px 0 80px; }
  .product-hub { padding: 70px 0; }
  .hub-card { padding: 30px 24px; min-height: 240px; }
}
