/* ============================================================
   BORG 360 — Home page + shared marketing section styles
   ============================================================ */

/* ---------------- HERO (morph video -> still) ---------------- */
.hero { position: relative; min-height: clamp(660px, 94vh, 940px); display: grid; align-items: center; overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__still { transform: scale(1.09); transition: transform 9s var(--ease-out); }
.hero__video { opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.hero.video-ready .hero__video { opacity: 1; }
.hero.is-morphed .hero__video { opacity: 0; transform: scale(1.1); }
.hero.is-morphed .hero__still { transform: scale(1); }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(130% 100% at 50% -10%, rgba(7,10,30,.25), rgba(7,10,30,.62) 58%, var(--ink) 100%),
    linear-gradient(90deg, rgba(7,10,30,.55), transparent 35%, transparent 65%, rgba(7,10,30,.55));
}

.hero__inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(6rem, 5rem + 6vw, 9rem); }
.hero__inner > * { opacity: 0; transform: translateY(22px); animation: heroRise .9s var(--ease-out) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: .05s; }
.hero__inner > *:nth-child(2) { animation-delay: .16s; }
.hero__inner > *:nth-child(3) { animation-delay: .27s; }
.hero__inner > *:nth-child(4) { animation-delay: .38s; }
.hero__inner > *:nth-child(5) { animation-delay: .49s; }
.hero__inner > *:nth-child(6) { animation-delay: .60s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__inner > * { opacity: 1; transform: none; animation: none; } }

.hero-orbit { position: relative; width: 132px; height: 132px; margin: 0 auto 1.6rem; display: grid; place-items: center; }
.hero-orbit::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: var(--grad-orbit);
  -webkit-mask: radial-gradient(closest-side, transparent 69%, #000 71%); mask: radial-gradient(closest-side, transparent 69%, #000 71%);
  animation: spin 16s linear infinite; opacity: .95;
}
.hero-orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; top: 4px; left: 50%; box-shadow: 0 0 14px 2px var(--brand-1); animation: spin 16s linear infinite; transform-origin: -2px 62px; }
.hero-orbit__mark { width: 86px; height: 86px; filter: drop-shadow(0 10px 34px rgba(123,63,228,.65)); }

.hero h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); margin-bottom: 1.2rem; }
.hero__lead { font-size: var(--fs-md); color: var(--text-dim); max-width: 56ch; margin: 0 auto 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.2rem; }

.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 1; display: grid; place-items: center; gap: .5rem; color: var(--text-faint); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue__mouse { width: 24px; height: 38px; border: 2px solid var(--hairline-strong); border-radius: 14px; position: relative; }
.scroll-cue__mouse::before { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 3px; background: var(--text-dim); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,10px)} }

/* ---------------- Trust marquee ---------------- */
.trust { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-block: 1px solid var(--hairline); background: rgba(7,10,30,.4); }
.trust__label { text-align: center; color: var(--text-faint); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.4rem; }

/* ---------------- Steps (how it works) ---------------- */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--hairline-strong); margin-bottom: 1.1rem; }
.step h3 { font-size: var(--fs-md); margin-bottom: .5rem; }
.step p { color: var(--text-dim); font-size: var(--fs-sm); }

/* ---------------- Mock site frame (template previews / placeholders) ---------------- */
.mockframe { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline-strong); background: var(--ink-2); box-shadow: var(--shadow); }
.mockframe__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: rgba(0,0,0,.3); border-bottom: 1px solid var(--hairline); }
.mockframe__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.mockframe__bar i:nth-child(1){ background:#ff5f57 } .mockframe__bar i:nth-child(2){ background:#febc2e } .mockframe__bar i:nth-child(3){ background:#28c840 }
.mockframe__url { margin-left: .6rem; font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.mockframe__body { aspect-ratio: 16/10; position: relative; overflow: hidden; }
/* abstract auto-generated "website" look using the template's own vars */
.mock-site { position: absolute; inset: 0; padding: 14px; display: grid; gap: 8px; grid-template-rows: auto 1fr auto; background:
   radial-gradient(80% 60% at 80% 0%, color-mix(in srgb, var(--m2,#7B3FE4) 30%, transparent), transparent), var(--m-bg, #0E1330); }
.mock-site__nav { display: flex; align-items: center; gap: 6px; }
.mock-site__nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--m-grad, var(--grad-brand)); }
.mock-site__nav span { height: 6px; width: 34px; border-radius: 3px; background: rgba(255,255,255,.18); }
.mock-site__nav span:last-child { margin-left: auto; width: 48px; background: var(--m-grad, var(--grad-brand)); }
.mock-site__hero { display: grid; gap: 7px; align-content: center; padding: 4px 2px; }
.mock-site__hero i { height: 10px; border-radius: 4px; background: var(--m-grad, var(--grad-brand)); width: 70%; }
.mock-site__hero u { height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); width: 90%; text-decoration: none; }
.mock-site__hero u + u { width: 60%; }
.mock-site__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.mock-site__cards div { height: 34px; border-radius: 7px; background: color-mix(in srgb, var(--m1,#2E7DF6) 24%, rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.08); }

/* ---------------- Template teaser card ---------------- */
.tpl-card { display: grid; gap: 1rem; }
.tpl-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tpl-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.tpl-card__cat { font-size: var(--fs-xs); color: var(--text-faint); }

/* ---------------- Shield / benefits ---------------- */
.shield-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit .icon-badge { flex: 0 0 auto; margin-bottom: 0; width: 48px; height: 48px; }
.benefit h3 { font-size: var(--fs-md); margin-bottom: .35rem; }
.benefit p { color: var(--text-dim); font-size: var(--fs-sm); }
.shield-panel { margin-top: 3rem; padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); border-radius: var(--radius-xl); background: var(--grad-soft); border: 1px solid var(--hairline-strong); }

/* ---------------- Pricing mini ---------------- */
.price-mini { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.price-card { display: flex; flex-direction: column; }
.price-card.is-featured { border-color: transparent; box-shadow: var(--glow-brand); }
.price-card.is-featured::before { opacity: .9; }
.price-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.price-card__price { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); line-height: 1.1; margin: .6rem 0 .2rem; }
.price-card__price small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-faint); }
.price-card__desc { color: var(--text-dim); font-size: var(--fs-sm); min-height: 2.6em; }
.price-card .check-list { margin: 1.3rem 0; flex: 1; }
.price-card__tag { position: absolute; top: 1.1rem; right: 1.1rem; }

/* ---------------- Assistant teaser ---------------- */
.assistant { position: relative; overflow: hidden; }
.assistant__panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem,1rem+3vw,3.5rem); align-items: center; padding: clamp(1.6rem,1rem+2vw,2.8rem); border-radius: var(--radius-xl); border: 1px solid var(--hairline-strong); background: linear-gradient(160deg, rgba(20,26,60,.7), rgba(7,10,30,.5)); backdrop-filter: blur(12px); }
@media (max-width: 820px){ .assistant__panel { grid-template-columns: 1fr; } }
.chat-demo { display: grid; gap: .7rem; }
.bubble { padding: .8rem 1.1rem; border-radius: 16px; font-size: var(--fs-sm); max-width: 88%; }
.bubble--user { justify-self: end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 5px; }
.bubble--bot { justify-self: start; background: rgba(255,255,255,.06); border: 1px solid var(--hairline); border-bottom-left-radius: 5px; }
.bubble--bot b { color: var(--text); }
.bubble__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.bubble__head img { width: 30px; height: 30px; }
.bubble__head span { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
.bubble__head em { font-style: normal; font-size: var(--fs-xs); color: #2ee6a6; display: flex; align-items: center; gap: .3rem; }
.bubble__head em::before { content:""; width:7px;height:7px;border-radius:50%;background:#2ee6a6;box-shadow:0 0 8px #2ee6a6; }

/* ---------------- Testimonials ---------------- */
.quote-card p { font-size: var(--fs-md); color: var(--text); line-height: 1.5; }
.quote-card__author { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.quote-card__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; }
.quote-card__who b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); }
.quote-card__who span { font-size: var(--fs-xs); color: var(--text-faint); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .8rem; }

/* ---------------- CTA band (reusable) ---------------- */
.cta-band { text-align: center; padding: clamp(2.5rem,2rem+4vw,5rem); border-radius: var(--radius-xl); background: var(--grad-brand); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(60% 120% at 50% 0%, rgba(255,255,255,.25), transparent 60%); }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 1rem auto 0; }
.cta-band .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn--light { background: #fff; color: var(--ink-1); }
