/* Homepage v1.4 — the hub round: brain buttons, AI from earth banner slot, AI visit, live overview, crew.
   Islands rule kept: tinted cards, white inner panels, dark text. */

/* ---------- Two round brain buttons (the Customers "Start the full tour" button, copied locally) ---------- */
.door-btns { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0 max(16px, 6vw); width: min(760px, calc(100% - 32px)); }
.brain-btn { --s: 64px; --ring: 82, 182, 255; position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 10px 24px 10px 12px;
  border-radius: 999px; background: rgba(8, 14, 26, .86); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 50px -24px rgba(10, 16, 40, .8);
  color: #f4f7fb; text-decoration: none; transition: transform .25s; }
.brain-btn.bb-gold { --ring: 255, 194, 61; }
.brain-btn:hover { transform: translateY(-2px); }
.brain-btn:focus-visible { outline: 3px solid #ffc23d; outline-offset: 4px; }
.brain-btn .bb { position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #13285a 0%, #050a18 70%);
  box-shadow: 0 0 0 1px rgba(var(--ring), .5), 0 0 34px rgba(var(--ring), .45), inset 0 0 26px rgba(var(--ring), .35); animation: hb-pulse 3.2s ease-in-out infinite; }
.brain-btn.bb-gold .bb { background: radial-gradient(circle, #4a3410 0%, #0d0904 70%); }
.brain-btn .bb img { width: 78%; height: auto; filter: drop-shadow(0 0 10px rgba(255, 176, 90, .6)); }
.brain-btn .bb::before, .brain-btn .bb::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(34, 211, 238, .55); animation: hb-spin 14s linear infinite; }
.brain-btn .bb::after { inset: -13px; border: 1px solid transparent; border-top-color: #ffc23d; border-right-color: rgba(255, 194, 61, .3); animation-duration: 5s; animation-direction: reverse; }
.brain-btn .ping { position: absolute; top: calc(10px + var(--s) / 2); left: calc(12px + var(--s) / 2); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; border: 2px solid rgba(var(--ring), .6); animation: hb-ping 2.4s ease-out infinite; pointer-events: none; }
.brain-btn .bl { display: grid; font-weight: 750; font-size: 16px; letter-spacing: .01em; line-height: 1.25; }
.brain-btn .bl small { color: #c3cfe2; font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
@keyframes hb-pulse { 50% { box-shadow: 0 0 0 1px rgba(var(--ring), .8), 0 0 60px rgba(var(--ring), .7), inset 0 0 36px rgba(var(--ring), .5); } }
@keyframes hb-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes hb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brain-btn .bb, .brain-btn .bb::before, .brain-btn .bb::after { animation: none; } .brain-btn .ping { display: none; } .brain-btn:hover { transform: none; } }

/* ---------- Card tints for the new chapters ---------- */
.card-roots { background: #f7efe1; } .card-roots .kicker { color: #6b4423 !important; }
.card-visit { background: var(--peach); } .card-visit .kicker { color: #9a4a00 !important; }
.card-overview { background: var(--sky); } .card-overview .kicker { color: #0b5aa8 !important; }
.card-crew { background: var(--lav); } .card-crew .kicker { color: #4b2fb0 !important; }
.card-visit .tag-note { background: var(--lemon); } .card-overview .tag-note { background: #fff; }

/* ---------- AI from earth: the live banner slot ---------- */
.banner-slot { position: relative; margin: 4px 0 16px; border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 380; background: #1f140b; }
.roots-svg, .banner-slot .lb-layer, .banner-slot video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.banner-slot .lb-layer { will-change: transform; transform: scale(1.06); }
.rs-p { stroke-dasharray: 26 420; animation: rs-flow 3.6s linear infinite; }
.rs-p1 { stroke: #2fd6e0; } .rs-p2 { stroke: #ffc23d; animation-delay: -1.2s; } .rs-p3 { stroke: #7fe3a0; animation-delay: -2.4s; }
.rs-core { transform-box: fill-box; transform-origin: center; animation: rs-breathe 3.4s ease-in-out infinite; }
@keyframes rs-flow { from { stroke-dashoffset: 446; } to { stroke-dashoffset: 0; } }
@keyframes rs-breathe { 50% { transform: scale(1.35); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .rs-p { animation: none; stroke-dashoffset: 120; } .rs-core { animation: none; } }

/* ---------- AI visit ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.offer { background: #fff; border-radius: 14px; padding: 12px 14px; }
.offer h3 { margin: 0 0 6px !important; }
.offer p:not(.tag-note) { font-size: 15px; margin: 0 !important; }
.visit-facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.visit-facts li { background: rgba(255, 255, 255, .6); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); }
.visit-facts b { display: block; color: var(--ink); font-size: 14.5px; }
.btn-ghost { background: #fff; }
.btn-ghost:hover { background: var(--lemon); }

/* ---------- Live overview tiles (simulated) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; background: #0f1a2b; border-radius: 16px; padding: 12px; }
.tiles .sim-tag { grid-column: 1 / -1; justify-self: start; margin: 0; }
.tile { background: #16243a; border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.t-k { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #b9cbe4; }
.t-v { font: 700 22px var(--font); color: #f4f7fb; font-variant-numeric: tabular-nums; }
.t-bar { height: 6px; border-radius: 99px; background: #26364f; overflow: hidden; }
.t-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3c5, #7fe3a0); transition: width 1.2s ease; }
.t-amber i { background: linear-gradient(90deg, #ffc23d, #ff9f43); }
.related.two { grid-template-columns: 1fr 1fr; }

/* ---------- The crew ---------- */
.crew { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.crew li { background: #fff; border-radius: 14px; padding: 6px 6px 8px; display: grid; gap: 1px; text-align: center; }
.crew img { width: 100%; height: auto; aspect-ratio: 360 / 382; object-fit: cover; border-radius: 10px; margin-bottom: 5px; background: #e8e2f5; }
.crew b { font-size: 14.5px; color: var(--ink); }
.crew small { font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.card-crew .small a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) { .visit-facts, .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .door-btns { margin: 12px auto 0; width: calc(100% - 24px); gap: 8px; flex-wrap: nowrap; }
  .brain-btn { --s: 42px; flex: 1 1 0; min-width: 0; gap: 10px; padding: 7px 10px 7px 8px; }
  .brain-btn .ping { top: calc(7px + var(--s) / 2); left: calc(8px + var(--s) / 2); }
  .brain-btn .bb::after { inset: -6px; } .brain-btn .bb::before { inset: -4px; }
  .brain-btn .bl { font-size: 13.5px; } .brain-btn .bl small { font-size: 9.5px; letter-spacing: .06em; }
  main > .chapter:first-of-type .hint { display: none; }
  .offers, .related.two { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .t-v { font-size: 19px; }
}
@media (max-width: 360px) { .brain-btn .bl small { display: none; } }

/* ---------- v1.4 deeper round: the visit step by step, where it helps ---------- */
.card-onsite { background: var(--mint); } .card-onsite .kicker { color: #0a6b44 !important; }
.card-examples { background: var(--rose); } .card-examples .kicker { color: #a3134f !important; }
.card-examples .tag-note, .card-onsite .tag-note { background: #fff; }
.card-1 .cta-row { margin: 4px 0 2px; }
.card-1 .btn-ghost { background: #fff; }
@media (max-width: 760px) {
  .card-1 .cta-row .btn { padding: 10px 16px; font-size: 15px; }
}
.card-crew .tag-note { background: #fff; }
/* short laptop screens: keep the hero, its action and both brain buttons above the fold */
@media (min-width: 761px) and (max-height: 820px) {
  main > .chapter:first-of-type .hint { display: none; }
  .door-btns { margin-top: 12px; }
  .brain-btn { --s: 50px; padding: 8px 20px 8px 10px; }
  .brain-btn .ping { top: calc(8px + var(--s) / 2); left: calc(10px + var(--s) / 2); }
}
