/* ==========================================================================
   Bclics — landing page
   Design system follows the Bclics mobile app theme (constants/theme.ts):
   tint #0a7ea4 · accent #2979ff / #4fc3f7 · sky surface #e6f4fe
   ========================================================================== */

:root {
  /* Brand (from app theme) */
  --brand:        #0a7ea4;
  --brand-deep:   #08607e;
  --brand-ink:    #0b3444;
  --accent:       #2979ff;
  --accent-soft:  #4fc3f7;
  --sky:          #e6f4fe;

  /* Neutrals */
  --ink:          #0f242e;
  --body:         #435a66;
  --muted:        #627d98;
  --line:         #e3eef4;
  --surface:      #ffffff;
  --surface-soft: #f4f9fc;
  --white:        #ffffff;

  /* Semantic */
  --success:      #2e7d32;
  --danger:       #d32f2f;

  /* Gradients */
  --grad:         linear-gradient(135deg, #0a7ea4 0%, #2979ff 100%);
  --grad-soft:    linear-gradient(160deg, #0a7ea4, #1e90cc 55%, #4fc3f7);

  /* Shape & motion */
  --radius:       20px;
  --radius-lg:    28px;
  --shadow:       0 20px 50px -20px rgba(11, 52, 68, 0.35);
  --shadow-sm:    0 10px 30px -14px rgba(11, 52, 68, 0.30);
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(10, 126, 164, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(41, 121, 255, 0.6); }

.btn-light {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.45);
}
.btn-light:hover { box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5); }

.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin-left: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  box-shadow: 0 6px 16px -6px rgba(10, 126, 164, 0.6);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--body); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

.nav-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(1000px 600px at 82% -10%, rgba(79, 195, 247, 0.18), transparent 60%),
    radial-gradient(800px 500px at 8% 10%, rgba(41, 121, 255, 0.10), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--surface) 100%);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,126,164,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,126,164,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(800px 500px at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 500px at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(10,126,164,0.18);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46,125,50,0.18); }

.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 22px 0 18px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { font-size: 18px; color: var(--body); max-width: 540px; margin: 0 0 26px; }

.hero-cta { margin-bottom: 26px; }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); font-size: 14.5px; }
.trust-list svg { flex: none; color: var(--success); margin-top: 2px; }
.trust-list strong { color: var(--ink); }

/* ---------- Phone mockups ---------- */
.phone {
  position: relative;
  display: block;
  width: 250px;
  aspect-ratio: 9 / 20;
  border-radius: 36px;
  background: #0c0f14;
  padding: 9px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.35);
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: var(--surface-soft);
}
.phone-notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 18px;
  background: #0c0f14;
  border-radius: 999px;
  z-index: 2;
}

/*
   Hero phone cluster.
   Phones are centered with translate(-50%,-50%) then fanned out via a
   per-phone --tf offset. --pw (phone width) + the offsets are the only
   things the media queries need to override, so it stays deterministic.
*/
.hero-phones {
  --pw: 240px;
  position: relative;
  height: 590px;
}
.hero-phones .phone {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--pw);
  transform: translate(-50%, -50%) var(--tf, none);
}
.phone-front { --tf: translateX(40px); z-index: 3; }
.phone-mid   { --tf: translateX(-78px) rotate(-7deg) translateY(12px); z-index: 2; opacity: .95; }
.phone-back  { --tf: translateX(-168px) rotate(-13deg) translateY(24px); z-index: 1; opacity: .82; }

.chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px; font-weight: 700;
  padding: 8px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 4;
  white-space: nowrap;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: pulse 1.8s infinite; }
.chip-live { left: -14px; top: 90px; }
.chip-top  { left: 50%; transform: translateX(-50%); bottom: -14px; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 40px 0 8px;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; }
.phone-mini { width: 132px; border-radius: 22px; padding: 5px; box-shadow: var(--shadow-sm); }
.phone-mini img { border-radius: 17px; }
.phone-mini .phone-notch { top: 9px; width: 52px; height: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-fade {
  position: absolute; top: 0; bottom: 0; width: 120px;
  pointer-events: none; z-index: 2;
}
.marquee-fade-l { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(-90deg, #fff, transparent); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.kicker-light { color: var(--accent-soft); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* ---------- Value cards ---------- */
.value { background: var(--surface-soft); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
.card-media { position: relative; }
.phone-card { width: 200px; box-shadow: var(--shadow-sm); }
.card-body h3 { font-size: 24px; font-weight: 800; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.card-body h3 span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feat-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--brand);
}
.card-shopper .feat-ico { background: #eef5ff; color: var(--accent); }
.feature-list strong { display: block; font-size: 15.5px; color: var(--ink); }
.feature-list p { margin: 3px 0 0; font-size: 14.5px; color: var(--body); }

/* ---------- Early seller CTA ---------- */
.early {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(79,195,247,0.28), transparent 55%),
    linear-gradient(135deg, #0a3344 0%, #0a7ea4 52%, #1e5fb8 100%);
  overflow: hidden;
}
.early-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.early-copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.early-copy .grad { background: linear-gradient(90deg, #7ed6ff, #b7e6ff); -webkit-background-clip: text; background-clip: text; }
.early-copy p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 540px; margin: 16px 0 28px; }

.early-phones {
  --pw: 230px;
  position: relative;
  height: 540px;
}
.early-phones .phone {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--pw);
  transform: translate(-50%, -50%) var(--tf, none);
}
.phone-early-a { --tf: translateX(-70px) rotate(-7deg) translateY(12px); }
.phone-early-b { --tf: translateX(70px) rotate(7deg); z-index: 3; }

/* ---------- Install steps ---------- */
.install { background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
}
.step-num {
  position: absolute; top: -16px; left: 26px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 8px 18px -8px rgba(10,126,164,0.6);
}
.step-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--sky); color: var(--brand); margin: 6px 0 14px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--body); }
.step strong { color: var(--ink); }

/* ---------- Final conversion ---------- */
.final { background: var(--surface-soft); }
.final-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.final-phone { display: flex; justify-content: center; }
.phone-final { width: 240px; }
.final-copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.final-copy p { color: var(--body); font-size: 17px; max-width: 560px; margin: 16px 0 26px; }
.final-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.footer {
  background: #0a3344;
  color: rgba(255,255,255,0.72);
  padding: 56px 0 40px;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 12px 0 0; font-size: 15px; }
.footer-meta p { margin: 6px 0; font-size: 14.5px; }
.footer-meta strong { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.5); margin-top: 20px; font-size: 13px; }

/* ---------- Reveal animation (JS-only; content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: collapse the 2-column layouts, switch nav to hamburger */
@media (max-width: 960px) {
  .hero-grid, .early-grid, .final-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }

  .hero-copy { text-align: center; max-width: 620px; margin-inline: auto; }
  .hero-copy .lede { margin-inline: auto; }
  .trust-list { text-align: left; margin-inline: auto; }
  .hero-cta { display: flex; justify-content: center; }

  .early-copy { text-align: center; }
  .early-copy p { margin-inline: auto; }

  .final-copy { text-align: center; }
  .final-copy p { margin-inline: auto; }
  .final-phone { order: -1; }

  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    display: none;
    flex-direction: column;
    padding: 8px 24px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 0; font-weight: 600; color: var(--body); border-bottom: 1px solid var(--line); }
  .nav-mobile .btn { margin-top: 16px; justify-content: center; }
}

/* Phone: shrink the phone clusters + pull the fan in, stack the cards */
@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .hero { padding-top: 44px; }
  .lede { font-size: 16px; }
  .trust-list li { font-size: 14px; }

  .hero-phones { --pw: 190px; height: 470px; }
  .phone-front { --tf: translateX(24px); }
  .phone-mid   { --tf: translateX(-58px) rotate(-7deg) translateY(10px); }
  .phone-back  { --tf: translateX(-126px) rotate(-13deg) translateY(20px); }

  .early-phones { --pw: 180px; height: 420px; }
  .phone-early-a { --tf: translateX(-50px) rotate(-6deg) translateY(8px); }
  .phone-early-b { --tf: translateX(50px) rotate(6deg); }

  .card { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .card-media { display: flex; justify-content: center; }
  .phone-card { width: 180px; }
  .phone-final { width: 190px; }

  .steps { gap: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Long CTA copy wraps instead of overflowing */
  .btn-lg { width: 100%; justify-content: center; text-align: center; white-space: normal; flex-wrap: wrap; padding: 14px 20px; font-size: 15px; }
}

/* Very small phones: tighter fan, drop the third hero phone */
@media (max-width: 400px) {
  .hero-phones { --pw: 170px; height: 400px; }
  .phone-front { --tf: translateX(18px); }
  .phone-mid   { --tf: translateX(-48px) rotate(-6deg) translateY(8px); }
  .phone-back  { display: none; }

  .early-phones { --pw: 160px; height: 380px; }
  .phone-early-a { --tf: translateX(-44px) rotate(-6deg) translateY(8px); }
  .phone-early-b { --tf: translateX(44px) rotate(6deg); }

  .btn-tag { display: none; }
  .marquee-fade { width: 60px; }
}
