/* ============================================================
   GridAxon — Home page sections
   ============================================================ */

/* ---- Hero + animated grid ---- */
.hero { position: relative; min-height: calc(100dvh - 72px); display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0.04) 62%, transparent 80%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 80px; }
.hero-inner {
  max-width: 760px;
  margin: 0 auto;          /* centered hero column */
  text-align: center;
}
.hero-eyebrow { margin-bottom: 26px; }
/* symmetric flanking dash for the centered hero eyebrow (home only) */
.hero-eyebrow::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-ink);
  opacity: 0.7;
}

/* static hero: one headline + subtext */
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.hero-sub { margin: 22px auto 0; color: var(--text-dim); font-size: 1.15rem; max-width: 52ch; }

.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

/* scroll-down indicator styles live in styles.css (shared across pages) */

/* ---- Energy motif (grid-ecosystem illustration, full-bleed right of the text) ---- */
.hero-illus {
  position: absolute; z-index: 1;
  top: 50%; right: 0;
  /* grow with the viewport, but never crowd the text column, and cap on huge screens */
  width: min(54vw, calc(100vw - 700px), 1060px); height: auto;
  transform: translateY(-50%) translateY(14px);       /* vertically centered beside the text */
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
  /* transparent PNG floats on its own; soften the left edge nearest the text */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}
.hero-illus.ready { opacity: 1; transform: translateY(-50%); }
@media (max-width: 1024px) { .hero-illus { display: none; } }

/* ---- Stats bar ---- */
.stats { padding: clamp(44px, 5vw, 72px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
.stat { padding: 44px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; }
.stat .num span { color: #1ca360; }
.stat .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }

/* ---- Pillars (asymmetric bento) ---- */
.pillars-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.pillar {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-box);
  background: var(--surface); padding: 34px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
  display: flex; flex-direction: column;
}
.pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pillar.feature { grid-row: span 2; background:
  linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
.pillar .p-icon { width: 46px; height: 46px; border-radius: var(--r-int); background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.pillar .p-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 12px; }
.pillar.feature h3 { font-size: 2rem; }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }
.pillar .p-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; }
.pillar .p-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.pillar:hover .p-link svg { transform: translateX(4px); }
.pillar .p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pillar-mesh { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 80% 0%, #000, transparent 60%); }

/* ---- Platform / products ---- */
.platform { background: var(--bg-2); border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden; }
.product { background: var(--bg-2); padding: 30px; transition: background 0.3s; position: relative; }
.product:hover { background: var(--surface); }
.product .idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.product h4 { font-size: 1.2rem; margin: 16px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent-deep); }
.product h4 .soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 2px 8px; }
.product p { color: var(--text-dim); font-size: 0.92rem; }

/* ---- Markets (wordmark chips marquee) ---- */
.markets { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; background: var(--bg-2); }
.markets-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 28px; }
.marquee-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; align-items: center; width: max-content; will-change: transform; animation: scroll-x 48s linear infinite; }
.market-logo {
  height: 34px; width: auto; flex: none; margin: 0 28px;
  filter: grayscale(1); opacity: 0.5;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.market-logo:hover { filter: none; opacity: 1; }
@keyframes scroll-x { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-33.3333%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---- Why / differentiators (split) ---- */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.why-grid .section-title { color: #1ca360; }
.why-list { display: grid; gap: 4px; }
/* staggered reveal — items settle one after another (motion only, never hidden) */
.why-list.reveal, .reveal-ready .why-list.reveal:not(.in) { transform: none; transition: none; }
.why-list .why-item { transition: transform 0.8s var(--ease); }
.reveal-ready .why-list:not(.in) .why-item { transform: translateY(20px); }
.why-list.in .why-item:nth-child(1) { transition-delay: 0.15s; }
.why-list.in .why-item:nth-child(2) { transition-delay: 0.55s; }
.why-list.in .why-item:nth-child(3) { transition-delay: 0.95s; }
.why-list.in .why-item:nth-child(4) { transition-delay: 1.35s; }
.why-item { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 20px; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .n { font-family: var(--font-mono); color: var(--accent-ink); font-size: 0.9rem; }
.why-item h4 { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.why-item p { color: var(--text-dim); font-size: 0.96rem; }
.why-visual { position: relative; border: 1px solid var(--line); border-radius: var(--r-box); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); min-height: 420px; overflow: hidden; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; }
.why-visual .wv-mesh { position: absolute; inset: 0; opacity: 0.6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); }
.why-visual .wv-badge { position: relative; }
.why-visual .wv-num { position: relative; font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; letter-spacing: -0.03em; }
.why-visual .wv-num span { color: var(--accent-deep); }

/* ---- Founder ---- */
.founder { background: var(--bg-2); border-top: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.founder-card { border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); padding: 34px; text-align: center; }
.founder-mono { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: var(--r-pill); background: linear-gradient(150deg, var(--accent), var(--accent-deep)); color: #04140d; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.founder-card h4 { font-size: 1.25rem; }
.founder-card .role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.founder-card .cred { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; }
.founder-quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.founder-quote .q-mark { color: var(--accent-deep); font-size: 3rem; line-height: 0.5; }
.founder-quote .attrib { margin-top: 24px; color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; }

/* ============================================================
   Responsive — home
   ============================================================ */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar.feature { grid-row: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { min-height: 300px; }
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-card { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}
