/* ─── index.html — Home page ──────────────────────────────────────────────── */

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 60vh; display: flex; align-items: center;
  padding: 160px 0 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse at center,
    rgba(108,92,231,.1) 0%,
    rgba(139,127,245,.05) 40%,
    transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-logo {
  height: 96px; width: auto; margin-bottom: 32px;
  filter: drop-shadow(0 8px 24px rgba(108,92,231,.2));
  transition: transform .3s ease;
}
.hero-logo:hover { transform: scale(1.05); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin: 0 auto 40px;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: var(--indigo); color: #fff;
  padding: 12px 28px; font-size: .95rem;
}
.hero-cta .btn-primary:hover {
  background: #5b4bd6; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,92,231,.35);
}

/* ─── Products grid ───────────────────────────────────────────────────────── */
.products { padding: 0 0 120px; }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all .25s ease; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; opacity: 0; transition: opacity .25s;
}
.product-card:hover {
  border-color: var(--border2); background: var(--surface2);
  transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.product-card:hover::before { opacity: 1; }
.product-card-pap::before       { background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.product-card-papillon::before  { background: linear-gradient(90deg, var(--violet), #a78bfa); }
.product-card-chrysalis::before { background: linear-gradient(90deg, var(--teal), #5bdebe); }
.product-card-extension::before { background: linear-gradient(90deg, var(--amber), #f5c060); }
.product-card-consulting::before { background: linear-gradient(90deg, var(--indigo), var(--violet)); }

.product-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.product-icon-pap        { background: rgba(108,92,231,.12); border: 1px solid rgba(108,92,231,.2); }
.product-icon-papillon   { background: rgba(139,127,245,.12); border: 1px solid rgba(139,127,245,.2); }
.product-icon-chrysalis  { background: rgba(46,196,160,.12);  border: 1px solid rgba(46,196,160,.2); }
.product-icon-extension  { background: rgba(240,160,48,.12);  border: 1px solid rgba(240,160,48,.2); }
.product-icon-consulting { background: rgba(108,92,231,.12);  border: 1px solid rgba(108,92,231,.2); }
.product-icon-papillon img,
.product-icon-chrysalis img { width: 32px; height: 32px; object-fit: contain; }

.product-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
}
.product-tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; width: fit-content;
}
.product-tag-protocol  { background: rgba(108,92,231,.1); color: var(--indigo); border: 1px solid rgba(108,92,231,.2); }
.product-tag-app       { background: rgba(139,127,245,.1); color: var(--violet); border: 1px solid rgba(139,127,245,.2); }
.product-tag-registry  { background: rgba(46,196,160,.1);  color: var(--teal);   border: 1px solid rgba(46,196,160,.2); }
.product-tag-dev       { background: rgba(240,160,48,.1);  color: var(--amber);  border: 1px solid rgba(240,160,48,.2); }
.product-tag-extension { background: rgba(240,160,48,.1);  color: var(--amber);  border: 1px solid rgba(240,160,48,.2); }
.product-tag-consulting { background: rgba(108,92,231,.1); color: var(--violet); border: 1px solid rgba(108,92,231,.2); }

.product-desc  { font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.product-link  { font-size: .88rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.product-card:hover .product-link { color: var(--text); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ─── Two-layer section ───────────────────────────────────────────────────── */
.layers-section { padding: 64px 0 0; }

.section-eyebrow-center {
  text-align: center; margin-bottom: 32px;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

.layers-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px;
}
.layer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 28px 24px;
}
.layer-card-pap { box-shadow: inset 0 3px 0 var(--indigo); }
.layer-card-chr { box-shadow: inset 0 3px 0 var(--teal); }
.layer-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.layer-label-pap { color: var(--indigo); }
.layer-label-chr { color: var(--teal); }
.layer-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -.01em; color: var(--text);
}
.layer-card p {
  font-size: .9rem; color: var(--muted); line-height: 1.65; margin: 0;
}
.layer-card code {
  font-family: var(--font-mono); font-size: .82em;
  color: var(--violet); background: rgba(139,127,245,.08);
  padding: 1px 5px; border-radius: 4px;
}

.identity-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 0;
}
.identity-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.identity-chip-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.identity-chip-value {
  font-size: .88rem; color: var(--text); line-height: 1.55;
}

@media (max-width: 768px) {
  .layers-grid    { grid-template-columns: 1fr; }
  .identity-strip { grid-template-columns: 1fr; }
}
