/* Homepage-only styles. Loaded only by index.html so the accepted PI page baseline is unaffected. */

.home-hero { background: radial-gradient(ellipse at 72% 40%, #1f4a46 0, #142624 32%, #101413 70%); }
.home-hero::after { content: ''; position: absolute; width: 620px; height: 620px; right: 6vw; top: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 217, 221, .16), transparent 65%); filter: blur(20px); pointer-events: none; animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { transform: translate(0, 0) scale(1); opacity: .8; } to { transform: translate(-40px, 30px) scale(1.12); opacity: 1; } }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(0, 217, 221, .35); border-radius: 999px; background: rgba(0, 217, 221, .07); color: var(--accent-light); font-size: 12px; font-weight: 600; letter-spacing: .02em; animation: rise .75s both; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 217, 221, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 217, 221, .55); } 70% { box-shadow: 0 0 0 10px rgba(0, 217, 221, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 217, 221, 0); } }
.accent-word { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-light) 60%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-ticker { position: absolute; z-index: 1; left: clamp(22px, 5vw, 84px); right: clamp(22px, 5vw, 84px); bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.hero-ticker li { display: inline-flex; align-items: center; gap: 28px; }
.hero-ticker li + li::before { content: '→'; color: var(--accent); letter-spacing: 0; }
.home-hero .hero-inner { padding-bottom: 130px; }

.home-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin: 28px 0 55px; }
.home-heading .section-title { max-width: 760px; }
.home-heading .muted { max-width: 340px; margin: 0 0 6px; font-size: 15px; line-height: 1.7; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-card { position: relative; overflow: hidden; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--surface-soft), var(--surface) 70%); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.bento-card:hover { border-color: rgba(0, 217, 221, .45); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 217, 221, .08); }
.bento-wide { grid-column: span 2; }
.bento-index { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(0, 217, 221, .4); border-radius: 8px; color: var(--accent); font: 600 13px 'Space Grotesk', sans-serif; }
.bento-card h3 { margin: 26px 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.bento-card p { max-width: 460px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.doc-stack { position: absolute; right: 28px; bottom: 26px; width: 150px; height: 110px; }
.doc-stack span { position: absolute; inset: 0; border: 1px solid rgba(202, 227, 218, .22); border-radius: 6px; background: #1f2a27; }
.doc-stack span:nth-child(1) { transform: rotate(-8deg) translate(-18px, 6px); opacity: .5; }
.doc-stack span:nth-child(2) { transform: rotate(-3deg) translate(-8px, 2px); opacity: .75; }
.doc-stack span:nth-child(3) { background: repeating-linear-gradient(transparent 0 14px, rgba(202, 227, 218, .12) 14px 15px), #222f2c; }
.doc-stack em { position: absolute; left: 12px; bottom: -14px; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #071514; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.bento-card:has(.doc-stack) p { max-width: calc(100% - 200px); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tool-chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d2ddd7; font-size: 12px; }

.systems { background: linear-gradient(180deg, transparent, #111918 30%, #111918 80%, transparent); }
.tag { display: inline-flex; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.tag-live { border-color: rgba(0, 217, 221, .5); color: var(--accent-light); background: rgba(0, 217, 221, .08); }
.flagship-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.flagship { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 70px); padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(0, 217, 221, .28); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(0, 217, 221, .1), transparent 45%), var(--surface); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.flagship h3 { margin: 22px 0 14px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; }
.flagship-copy > p { margin: 0; max-width: 560px; color: #c7d3cd; font-size: 15px; line-height: 1.75; }
.flagship-points { margin: 24px 0 30px; padding: 0; list-style: none; display: grid; gap: 10px; }
.flagship-points li { display: flex; gap: 12px; color: #d9e3de; font-size: 14px; }
.flagship-points li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.flagship-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.pipeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; align-self: center; position: relative; }
.pipeline::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(var(--accent), rgba(0, 217, 221, .1)); }
.pipeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 10px 0; }
.pipeline li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(0, 217, 221, .4); border-radius: 50%; background: var(--bg); color: var(--accent); font-size: 11px; font-weight: 700; }
.pipeline strong { display: block; font: 500 16px 'Space Grotesk', sans-serif; }
.pipeline small { color: var(--muted); font-size: 12px; }
.pipeline-gate > div { padding: 10px 14px; border: 1px solid rgba(255, 200, 120, .3); border-radius: 10px; background: rgba(255, 200, 120, .06); }
.pipeline-gate > span { border-color: #f2c48a; color: #f2c48a; }
.pipeline-gate small { color: #f2c48a; }

.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.system-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s ease, transform .3s ease; }
.system-card:hover { border-color: rgba(0, 217, 221, .4); transform: translateY(-3px); }
.system-card h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.system-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.system-card-cta { border-style: dashed; border-color: rgba(0, 217, 221, .35); background: transparent; }
.system-arrow { position: absolute; right: 26px; top: 24px; color: var(--accent); font-size: 22px; }

.home-approach-title { margin-top: 28px; max-width: 800px; }
.process-four { grid-template-columns: repeat(4, 1fr); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

/* Scroll reveal: only when JavaScript is running, so content stays visible without it. */
html.js .home .reveal { opacity: 0; transform: translateY(22px); }
html.js .home .reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; }
  .flagship { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .system-card-cta { grid-column: span 2; }
  .process-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .home-heading { display: block; }
  .home-heading .muted { margin-top: 18px; }
  .bento, .system-grid { grid-template-columns: 1fr; }
  .bento-wide, .system-card-cta { grid-column: auto; }
  .doc-stack { display: none; }
  .bento-card:has(.doc-stack) p { max-width: none; }
  .process-four { grid-template-columns: 1fr; }
  .home-hero::after { width: 360px; height: 360px; right: -80px; }
  .hero-ticker { position: relative; left: auto; right: auto; bottom: auto; margin: 0 20px 30px; font-size: 10px; gap: 6px 16px; }
  .hero-ticker li { gap: 16px; }
  .home-hero .hero-inner { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .home .reveal { opacity: 1; transform: none; }
  .home-hero::after, .status-pill i { animation: none; }
}
