/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 7.5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(12, 12, 14, 0.06), transparent),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 12, 14, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 14, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 840px; }
.hero-inner.center { margin: 0 auto; text-align: center; }
.hero h1 { color: var(--ink); margin-bottom: 1.3rem; }
.hero h1 .thin { color: var(--text-faint); font-weight: 500; }
.hero p.lead { font-size: 1.13rem; max-width: 640px; }
.hero-inner.center p.lead { margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-inner.center .hero-actions { justify-content: center; }

/* Page hero (interior pages) */
.page-hero { padding: 5.5rem 0 4rem; }
.page-hero .breadcrumbs { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.2rem; }
.page-hero .breadcrumbs a { color: var(--text-muted); }
.page-hero .breadcrumbs a:hover { color: var(--ink); }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat {
  padding: 1.9rem 1rem;
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; }
.stat .stat-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat .stat-sub { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.2rem; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split h2 { color: var(--ink); margin-bottom: 1rem; }
.split .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: 0 2px 12px rgba(12, 12, 14, 0.04);
}

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 3px solid var(--ink);
  padding: 0.4rem 0 0.4rem 1.8rem;
  margin: 1.5rem 0;
}
.quote-block p { font-size: 1.15rem; color: var(--text); font-style: italic; }
.quote-block cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.9rem; color: var(--text-faint); }

/* ---------- Founders ---------- */
.founder-card { text-align: left; }
.founder-card .founder-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.founder-card h3 { margin-top: 0.4rem; }

/* ---------- CTA band (black band for contrast) ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 60% 100% at 50% 130%, rgba(255, 255, 255, 0.12), transparent),
    var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
  text-align: center;
  padding: 5rem 0;
}
.cta-band h2 { color: #fff; margin-bottom: 0.9rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; color: var(--footer-text); }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e4e4e7; color: var(--ink); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- Product detail ---------- */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.detail-body h2 { color: var(--ink); margin: 2.6rem 0 1rem; font-size: 1.45rem; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body h3.feature-title { color: var(--ink); font-size: 1.05rem; margin-bottom: 0.4rem; }
.detail-body p + p { margin-top: 1rem; }
.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.3rem;
}
.side-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 2px 12px rgba(12, 12, 14, 0.04);
}
.side-box h4 {
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.side-box ul li { padding: 0.32rem 0; font-size: 0.92rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.side-box ul li:last-child { border-bottom: none; }
.side-box .btn { width: 100%; text-align: center; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.post-card .post-cover { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--surface-2); }
.post-card .post-cover-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 90% at 50% -20%, rgba(12, 12, 14, 0.07), transparent),
    var(--surface-2);
  color: var(--text-faint);
  font-family: var(--font-heading);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.post-card .post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 0.8rem; align-items: center; font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.7rem; }
.post-meta .post-cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--text-muted); }
.post-card .post-excerpt { font-size: 0.92rem; flex: 1; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.blog-filters a {
  font-size: 0.85rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
}
.blog-filters a:hover { border-color: var(--ink); color: var(--ink); }
.blog-filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.post-article { max-width: 780px; margin: 0 auto; }
.post-article .post-cover-full { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.post-article h1 { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.post-content { margin-top: 2rem; color: var(--text-muted); }
.post-content h2, .post-content h3 { color: var(--ink); margin: 2rem 0 0.8rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.post-content p { margin-bottom: 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.1rem 1.4rem; }
.post-content ul { list-style: disc; }
.post-content img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.post-content a { color: var(--accent); }
.post-content blockquote { border-left: 3px solid var(--ink); padding-left: 1.2rem; margin: 1.4rem 0; font-style: italic; }

.empty-state {
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  color: var(--text-faint);
}

/* ---------- Contact / Careers ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.info-line { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--text-muted); }
.info-line:last-child { border-bottom: none; }
.info-line strong { color: var(--text); min-width: 92px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--border); }
  .split, .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; }
  .section { padding: 4rem 0; }
}
