/* Bucky landing — DARK, unified with the dashboard. Depends on tokens.css + public.css. */

/* Navbar/footer brand logo image (replaces the temporary "B" text mark). */
.brand .mark { object-fit: cover; overflow: hidden; }

/* ---------- Hero (cinematic — artwork visible, text readable) ---------- */
/* Top padding clears the fixed navbar (~64px) with breathing room so the
   heading never tucks under the nav on any viewport. */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 104px 0 48px; }
.hero-bg { position: absolute; inset: 0; background: url("assets/images/products/hero-bg.webp") center/cover no-repeat; opacity: 0.62; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 99%); mask-image: linear-gradient(180deg, #000 62%, transparent 99%); }
/* readability scrim — darkens the text side, lets the art breathe on the right */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,15,22,0.86) 0%, rgba(11,15,22,0.52) 42%, rgba(11,15,22,0.12) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bk-bg-2)); }
.hero-content { position: relative; z-index: 2; max-width: 1240px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--bk-red-300); background: rgba(139, 30, 63, 0.28); border: 1px solid rgba(139, 30, 63, 0.44); margin-bottom: 22px; backdrop-filter: blur(4px); }
.hero-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bk-green); box-shadow: 0 0 8px var(--bk-green); }
.hero-text h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 22px; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.hero-text h1 .grad { background: linear-gradient(120deg, #fff, var(--bk-red-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text p { font-size: 1.2rem; line-height: 1.75; color: #d6dbe6; max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img { width: 460px; max-width: 92%; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--bk-muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; z-index: 3; opacity: .7; }

/* Shared section furniture */
.eyebrow { color: var(--bk-red-300); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 14px; }
.section-head p { color: var(--bk-muted); font-size: 1.1rem; line-height: 1.7; margin: 0; }

/* ---------- Features overview strip ---------- */
.features { padding: 104px 24px 30px; max-width: 1200px; margin: auto; position: relative; z-index: 2; }
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { display: block; text-decoration: none; color: inherit; background: linear-gradient(160deg, var(--bk-panel), rgba(28, 36, 52, 0.7));
  border: 1px solid var(--bk-border); border-radius: 18px; padding: 26px 22px; transition: transform .25s var(--ease), border-color .25s var(--ease); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--bk-border-strong); }
.feature-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--bk-red-soft); color: var(--bk-red-300); }
.feature-card .ic svg { width: 23px; height: 23px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.feature-card p { color: var(--bk-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Horizontal flagship (Security) ---------- */
.flagship { position: relative; height: 100vh; overflow: hidden; }
.hwrap { display: flex; height: 100%; width: max-content; }
.hpanel { width: 100vw; height: 100vh; flex: 0 0 100vw; display: flex; align-items: center; justify-content: center; padding: 104px 6vw 60px; position: relative; }
.hpanel-inner { width: 100%; max-width: 1180px; }

/* Intro panel */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.intro-grid h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 10px 0 12px; }
.intro-grid .lead { font-size: 1.22rem; color: var(--bk-text); font-weight: 600; margin: 0 0 10px; }
.intro-grid p { color: var(--bk-muted); line-height: 1.72; margin: 0 0 8px; max-width: 540px; }
.feat-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.feat-list li { position: relative; padding-left: 28px; color: var(--bk-text); opacity: 0.92; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--bk-red); box-shadow: 0 0 10px rgba(139, 30, 63, 0.7); }
.intro-visual { position: relative; display: flex; justify-content: center; }

/* Dashboard showcase */
.showcase { display: grid; gap: 16px; justify-items: center; text-align: center; }
.showcase-head { max-width: 720px; }
.showcase-head h3 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; }
/* Constrain the description to a comfortable measure so it wraps to shorter,
   more readable lines instead of stretching the full head width. */
.showcase-head p { color: var(--bk-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 auto; max-width: 620px; }

/* Browser frame — aspect-preserving, viewport-fitted, never stretched/cropped */
.browser { display: inline-block; max-width: min(940px, 100%); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--bk-border-strong); background: var(--bk-panel); box-shadow: 0 50px 110px rgba(0, 0, 0, 0.6); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 15px; background: rgba(11, 15, 22, 0.7); border-bottom: 1px solid var(--bk-border); }
.browser-bar .b-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.browser-bar .b-dot.r { background: #ec6a5e; } .browser-bar .b-dot.y { background: #f4bf50; } .browser-bar .b-dot.g { background: #61c554; }
.browser-bar .url { margin-left: 12px; font-size: 12px; color: var(--bk-muted); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Screenshots trimmed ~12% so the image no longer dominates the panel and the
   heading/description above it read as balanced rather than top-heavy. */
.browser img { display: block; width: auto; height: auto; max-width: 100%; max-height: 51vh; }
.intro-visual .browser img { max-height: 58vh; }
.showcase-step { color: var(--bk-muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.showcase-step b { color: var(--bk-red-300); }

/* progress rail */
.hrail { position: fixed; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--bk-red), var(--bk-red-300)); width: 0; z-index: var(--z-topbar); }

/* ---------- Premium product sections (Economy / Adventures / Arcade) ---------- */
.product { position: relative; padding: 118px 24px; overflow: hidden; }
.product + .product { border-top: 1px solid rgba(255,255,255,0.04); }
.product-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; filter: blur(40px); opacity: .5; z-index: 0; pointer-events: none; }
.product-inner { max-width: 1200px; margin: auto; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 5rem; align-items: center; position: relative; z-index: 2; }
.product.reverse .product-media { order: -1; }
.product-text h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 14px; line-height: 1.1; }
.product-text .lead { font-size: 1.24rem; color: var(--bk-text); font-weight: 600; margin: 0 0 14px; }
.product-text p { color: var(--bk-muted); line-height: 1.8; margin: 0 0 22px; max-width: 520px; }
.product-feats { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.product-feats li { position: relative; padding-left: 30px; color: var(--bk-text); opacity: 0.94; }
.product-feats li svg { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--bk-red-300); }
.product-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }

/* Framed artwork (Adventures / Arcade scene) */
.art-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--bk-border-strong);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.55); width: 100%; }
.art-frame img { width: 100%; height: auto; display: block; }
.art-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); border-radius: 22px; }
.art-badge { position: absolute; bottom: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(11,15,22,0.72); border: 1px solid var(--bk-border-strong); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; }

/* Economy floating coin stage */
.coin-stage { position: relative; width: 100%; height: 440px; }
.coin { position: absolute; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55)); will-change: transform; }
.coin-1 { width: 210px; top: 34px; left: 10%; z-index: 3; }
.coin-2 { width: 150px; top: 200px; left: 44%; z-index: 4; }
.coin-3 { width: 168px; top: 12px; right: 6%; z-index: 2; }
.coin-4 { width: 132px; bottom: 6px; left: 26%; z-index: 3; }

/* Arcade game cards */
.arcade-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; }
.game-card { position: relative; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bk-border); border-radius: 16px;
  padding: 30px 18px; text-align: center; font-weight: 800; font-size: 1.05rem; backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.game-card .gic { display: block; font-size: 26px; margin-bottom: 10px; }
.game-card:hover { transform: translateY(-8px); border-color: rgba(139, 30, 63, 0.6); box-shadow: var(--bk-glow); }

/* CTA link with underline sweep */
.plink { display: inline-flex; align-items: center; gap: 8px; color: var(--bk-red-300); font-weight: 700; text-decoration: none; }
.plink:hover { color: #fff; }

/* ---------- Why Bucky (capability pillars) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.trust-grid .feature-card p { font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 120px 24px; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(139, 30, 63, 0.28), transparent 62%); z-index: 0; }
.final-inner { position: relative; z-index: 2; max-width: 760px; margin: auto; }
.final h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.final p { color: var(--bk-muted); font-size: 1.15rem; line-height: 1.7; margin: 0 0 32px; }
.final .hero-cta { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* Stacked/mobile layout: the hero grows with its content, so start it cleanly
     below the fixed navbar instead of vertically centring (which could tuck the
     heading under the nav on shorter screens). */
  .hero { min-height: auto; align-items: flex-start; padding-top: 100px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .hero::before { background: linear-gradient(180deg, rgba(11,15,22,0.55), rgba(11,15,22,0.82)); }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 280px; }
  .intro-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  .feat-list { justify-items: start; text-align: left; max-width: 340px; margin-inline: auto; }
  .intro-grid p { margin-inline: auto; }
  .product-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .product.reverse .product-media { order: 0; }
  .product-text .lead, .product-text p { margin-inline: auto; }
  .product-feats { justify-items: start; text-align: left; max-width: 380px; margin-inline: auto; }
  .product-feats { margin-bottom: 28px; }
  .coin-stage { height: 340px; max-width: 420px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .browser img { max-height: none; }
}
@media (max-width: 560px) {
  .feature-cards { grid-template-columns: 1fr; }
  .arcade-cards { grid-template-columns: 1fr 1fr; }
}
/* Tablets & below (≤1024): stack the flagship vertically — no horizontal pin,
   no sideways swiping. Desktop (≥1025) keeps the horizontal storytelling. */
@media (max-width: 1024px) {
  .flagship { height: auto; overflow: visible; }
  .hwrap { display: block; width: 100%; }
  .hpanel { width: 100%; height: auto; min-height: auto; padding: 84px 5vw; }
  .hrail { display: none; }
  .browser img, .intro-visual .browser img { max-height: none; }
}
/* ---- Mobile (≤820): a purpose-built, condensed vertical experience ----
   Security intro (with the Overview image) + ONE representative dashboard
   image (Recovery) + key features + CTA. No six-screenshot swipe. */
@media (max-width: 820px) {
  .hpanel { padding: 60px 22px; }
  .flagship .m-hide { display: none; }          /* hide Modules / SOC / Thresholds / Emergency panels */
  .showcase-step { display: none; }             /* drop the "0X / 06" tour markers */
  /* Economy: a single hero coin instead of the 4-piece desktop composition */
  .coin-2, .coin-3, .coin-4 { display: none; }
  .coin-stage { position: static; height: auto; max-width: none; text-align: center; }
  .coin-1 { position: static; width: 210px; max-width: 60%; margin: 0 auto; }
  /* Shorter copy: keep the lead + bullets, drop the longer paragraph */
  .product-text > p:not(.lead), .intro-text > p:not(.lead) { display: none; }
}
/* Reduced motion / no-JS-motion: stacked layout so all panels are reachable */
body.no-motion .flagship { height: auto; overflow: visible; }
body.no-motion .hwrap { display: block; width: 100%; }
body.no-motion .hpanel { width: 100%; height: auto; min-height: auto; padding: 70px 22px; }
body.no-motion .hrail { display: none; }
body.no-motion .browser img { max-height: none; }
