/* =========================================================
   HERO — headline, showcase (live calculation + BIM), standards
   ========================================================= */

.hero {
  text-align: center;
  padding: 60px 16px 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #008c67;
  border-radius: 24px;
  color: var(--mint);
  font-size: 14px;
  padding: 9px 18px;
}

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0, 237, 189, .6);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(0, 237, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 237, 189, 0); }
}

.hero h1 {
  font-size: clamp(39px, 4.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -2px;
  margin: 22px 0 20px;
}
.hero h1 span { color: var(--aqua); }

.hero-lead {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.55;
  color: #c1c9c7;
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted-2);
  font-size: 13px;
}
.hero-facts li::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin: -2px 9px 0 0; border-radius: 50%; background: var(--mint); }
.hero-facts strong { color: var(--text); font-weight: 700; }

/* ---------- Showcase grid ---------- */
.showcase {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  height: 410px;
  margin: 0 auto;
}

/* Live calculation card (left) */
.calc-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--emerald);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  background:
    radial-gradient(ellipse 105% 78% at 97% 18%, rgba(0,235,168,.42) 0%, rgba(0,115,75,.3) 29%, rgba(0,25,17,.12) 62%, transparent 80%),
    linear-gradient(148deg, #020907 0%, #001b12 46%, #005c39 84%, #00170f 100%);
}
.calc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 70% at 2% 12%, rgba(0,0,0,.85), transparent 75%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 35%, rgba(0,0,0,.7) 100%);
}

.calc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.calc-kicker { letter-spacing: .5px; }
.calc-live { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-size: 11px; }
.calc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.calc-slide {
  position: absolute;
  inset: 58px 20px 54px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.calc-slide.active { opacity: 1; transform: none; pointer-events: auto; }

.calc-tag {
  align-self: flex-start;
  border: 1px solid rgba(49, 185, 150, .4);
  border-radius: 20px;
  padding: 5px 10px;
  color: #9debd6;
  font-size: 11px;
}
.calc-slide h2 { font-size: 22px; margin: 14px 0 12px; }

.calc-rows { margin: 0; display: grid; gap: 7px; }
.calc-rows div {
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 7px; border-bottom: 1px dashed rgba(255, 255, 255, .1);
  font-size: 13px;
}
.calc-rows dt { color: #a9c3b8; }
.calc-rows dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }

.calc-meter { margin-top: auto; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.calc-meter span { display: block; height: 100%; width: var(--u); background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.calc-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #a9c3b8; }
.calc-foot b { font-family: var(--mono); color: var(--text); font-weight: 400; }
.calc-ok { margin-top: 10px; color: var(--mint); font-size: 13px; }

.dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #23745c; cursor: pointer; transition: background .2s, box-shadow .2s; }
.dot[aria-current="true"] { background: var(--mint); box-shadow: 0 0 12px #00efba; }

/* BIM feature (right) */
.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-mint);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 72% 85% at 56% 45%, rgba(0,98,63,.48), transparent 82%),
    linear-gradient(105deg, #00140e, #00321f 40%, #000b08 100%);
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 120% at 94% 13%, rgba(0,0,0,.7), transparent 75%),
    radial-gradient(ellipse 55% 80% at 10% 8%, rgba(0,0,0,.65), transparent 78%),
    linear-gradient(180deg, rgba(0,0,0,.15), transparent 38%, rgba(0,0,0,.6) 100%);
}

.feature-top { position: absolute; top: 27px; left: 24px; z-index: 2; font-size: 13px; }
.feature-copy { position: absolute; left: 24px; top: 85px; max-width: 300px; z-index: 2; }
.feature-copy h2 { font-size: 35px; letter-spacing: -1px; line-height: 1.05; margin: 0 0 23px; }
.feature-copy p { font-size: 16px; line-height: 1.4; color: #b2c3bc; }

.bim {
  position: absolute;
  right: 0; top: 4%;
  width: 72%; height: 84%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.06);
  opacity: .96;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 76% 73% at 53% 49%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 76% 73% at 53% 49%, #000 48%, transparent 100%);
}

.explore {
  position: absolute; right: 24px; bottom: 20px; z-index: 2;
  color: var(--mint); text-decoration: none; font-size: 13px;
}
.explore:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sparkles */
.bim-sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #d7fff5;
  box-shadow: 0 0 4px 1px #e1fff8, 0 0 13px 3px #00ffcd;
  opacity: 0; transform: scale(.2);
  animation: twinkle 4.6s ease-in-out infinite;
}
.spark::before, .spark::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, #baffed, transparent); opacity: .9;
}
.spark::before { width: 27px; height: 1px; }
.spark::after { width: 1px; height: 27px; background: linear-gradient(180deg, transparent, #baffed, transparent); }
.s1 { left: 74%; top: 17%; }
.s2 { left: 57%; top: 29%; animation-delay: 1.5s; }
.s3 { left: 84%; top: 41%; animation-delay: 2.8s; }
.s4 { left: 65%; top: 57%; animation-delay: 3.5s; }
.s5 { left: 91%; top: 66%; animation-delay: 1s; }
.s6 { left: 49%; top: 48%; animation-delay: 4s; }
.s7 { left: 78%; top: 75%; animation-delay: 2.1s; }
.s8 { left: 70%; top: 34%; animation-delay: 3s; }
@keyframes twinkle {
  0%, 12%, 48%, 100% { opacity: 0; transform: scale(.15); }
  22% { opacity: .95; transform: scale(1.15); }
  29% { opacity: .45; transform: scale(.65); }
  35% { opacity: .9; transform: scale(1); }
}

/* ---------- Standards ticker ---------- */
.standards {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1260px;
  margin: 34px auto 0;
  text-align: center;
}
.standards-label { color: var(--muted-2); font-size: 13px; margin-bottom: 16px; }

.ticker { display: flex; align-items: center; gap: 14px; }
.ticker-window {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.ticker-item {
  border: 1px solid #007d5d;
  color: var(--mint);
  padding: 8px 16px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 13px;
}
.ticker-item small { color: var(--muted-2); margin-left: 6px; font-size: 11px; }
.ticker-btn {
  flex-shrink: 0;
  width: 35px; height: 35px;
  border: 1px solid #008e6c; border-radius: 50%;
  background: transparent; color: var(--mint);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.ticker-btn:hover { background: var(--mint-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .showcase { grid-template-columns: 270px minmax(0, 1fr); }
  .feature-copy { max-width: 240px; }
  .feature-copy h2 { font-size: 28px; }
  .bim { opacity: .75; }
  .hero-lead { font-size: 16px; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 16px 32px; }
  .hero h1 { letter-spacing: -1px; }
  .eyebrow { font-size: 12px; padding: 8px 14px; text-align: left; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { flex-direction: column; align-items: center; gap: 8px; }

  .showcase { grid-template-columns: 1fr; height: auto; }
  .calc-card { height: 400px; }

  /* BIM : text first, image below — no overlap on small screens */
  .feature { display: flex; flex-direction: column; padding: 26px 22px 22px; }
  .feature-top, .feature-copy, .explore { position: relative; inset: auto; }
  .feature-copy { max-width: none; margin-top: 22px; }
  .feature-copy h2 { font-size: 28px; margin-bottom: 14px; }
  .feature-copy p { font-size: 15px; }
  .bim { position: relative; width: 115%; max-width: none; height: auto; margin: 10px -7.5% 0; top: 0; opacity: .85; }
  .bim-sparkles { display: none; }
  .explore { align-self: flex-start; margin-top: 6px; }

  .ticker-btn { display: none; }
}
