/* ============================================================
   Block Builder — playful toy-brand design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand + play palette */
  --brand:      #ff3d3d;   /* Block Builder red */
  --brand-dark: #e4002b;
  --sun:        #ffc21c;   /* yellow */
  --sky:        #23b5ff;   /* blue   */
  --grass:      #35c46b;   /* green  */
  --grape:      #8b5cf6;   /* purple */
  --coral:      #ff7a4d;   /* orange */
  --amazon:     #ff9900;
  --amazon-dark:#f08600;

  /* Neutrals */
  --ink:    #241c3b;
  --muted:  #6c6486;
  --line:   #ece6f5;
  --paper:  #fffaf2;   /* warm page background */
  --cream:  #fff3e0;
  --cloud:  #eef3ff;
  --white:  #ffffff;

  /* Type */
  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(36, 28, 59, .08);
  --shadow:    0 14px 30px rgba(36, 28, 59, .12);
  --shadow-lg: 0 26px 60px rgba(36, 28, 59, .16);
  --pop:       6px 6px 0 rgba(36, 28, 59, .14);

  --wrap: 1180px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
  color: var(--brand); background: #ffe4e4; padding: .35em .9em; border-radius: 999px; margin-bottom: 1rem;
}
.lead { font-size: 1.16rem; color: var(--muted); max-width: 46ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: .85em 1.5em; border-radius: 999px; border: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, filter .16s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); filter: brightness(1.04); }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn--lg { font-size: 1.14rem; padding: 1em 1.8em; }
.btn--amazon { --btn-bg: var(--amazon); --btn-fg: #241c3b; }
.btn--amazon:hover { --btn-bg: var(--amazon-dark); }
.btn--sky   { --btn-bg: var(--sky); }
.btn--ink   { --btn-bg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn .ic { width: 1.15em; height: 1.15em; }

/* ---------- Stud motifs ---------- */
.studs { display: flex; gap: 12px; justify-content: center; }
.studs span {
  width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}
.studs span:nth-child(5n+1){ background: var(--brand); }
.studs span:nth-child(5n+2){ background: var(--sun); }
.studs span:nth-child(5n+3){ background: var(--sky); }
.studs span:nth-child(5n+4){ background: var(--grass); }
.studs span:nth-child(5n+5){ background: var(--grape); }

.dotted { background-image: radial-gradient(var(--line) 2px, transparent 2px); background-size: 26px 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,250,242,.82); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.brand svg { flex: none; }
.brand b { color: var(--brand); }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-logo--footer { height: 58px; }
@media (max-width: 720px) { .brand-logo { height: 42px; } }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; padding: .5em .9em; border-radius: 999px; color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: #fff; box-shadow: var(--shadow-sm); }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 2px solid var(--line); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: 1.22rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  padding: .4em 1em; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: .4em;
}
.pill i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Hero visual */
.hero-stage { position: relative; min-height: 400px; }
.blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; filter: blur(2px); opacity: .9; }
.blob-1 { width: 340px; height: 340px; background: #ffe0e0; top: 4%; left: 8%; }
.blob-2 { width: 240px; height: 240px; background: #d9f2ff; bottom: 2%; right: 6%; }
.blob-3 { width: 180px; height: 180px; background: #e6ffe9; top: 40%; left: 44%; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite;
}
.float-card img { border-radius: var(--r); }
.float-card .tag {
  position: absolute; top: -12px; left: 14px; background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; padding: .25em .7em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.fc-1 { width: 300px; top: 6%; left: 2%; transform: rotate(-4deg); z-index: 3; }
.fc-2 { width: 170px; top: 2%; right: 4%; transform: rotate(6deg); animation-delay: .6s; z-index: 2; }
.fc-3 { width: 190px; bottom: 0; right: 12%; transform: rotate(-7deg); animation-delay: 1.1s; z-index: 4; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--rot,0)); } 50% { transform: translateY(-16px) rotate(var(--rot,0)); } }
.fc-1 { --rot: -4deg; } .fc-2 { --rot: 6deg; } .fc-3 { --rot: -7deg; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { background: #fff; border-radius: var(--r-lg); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); text-align: center; transition: transform .18s; }
.feature:hover { transform: translateY(-5px); }
.feature .emoji { font-size: 2.1rem; display: block; margin-bottom: .5rem; }
.feature h3 { margin-bottom: .2rem; font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.sec-head p { color: var(--muted); margin: .3rem 0 0; }
.sec-head .link { font-family: var(--font-display); font-weight: 600; color: var(--brand); white-space: nowrap; }
.sec-head .link:hover { text-decoration: underline; }

/* ---------- Product grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
  transition: transform .2s cubic-bezier(.34,1.4,.64,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sun); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #fff 0%, #f7f2ff 100%); padding: 1rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.06) rotate(-1deg); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: .76rem;
  padding: .3em .75em; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-sm);
}
.badge[data-b="Biggest Set"], .badge[data-b="Remote Control"] { background: var(--brand); }
.badge[data-b="2-in-1"] { background: var(--grape); }
.badge[data-b="Mini"] { background: var(--sky); }
.badge[data-b="Fan Favorite"] { background: var(--grass); }
.badge[data-b="New"] { background: var(--coral); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card .series-tag { font-family: var(--font-display); font-weight: 600; font-size: .78rem; color: var(--grape); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 1.18rem; margin: .15rem 0 .35rem; }
.card .desc { color: var(--muted); font-size: .93rem; margin: 0 0 1rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.chip { font-family: var(--font-display); font-weight: 600; font-size: .8rem; background: var(--cloud); color: var(--ink); padding: .28em .7em; border-radius: 999px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.card .btn { width: 100%; justify-content: center; }

/* ---------- Card actions ---------- */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.card-view { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--grape); }
.card-view:hover { text-decoration: underline; }
.card-view .ic { width: .9em; height: .9em; vertical-align: -1px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--muted); margin-bottom: 1.6rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs b { color: var(--ink); }
.crumbs span { opacity: .45; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.8rem; align-items: start; }
.product-media { position: relative; background: linear-gradient(160deg, #fff, #f4ecff); border-radius: var(--r-xl); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.product-media img { width: 100%; height: auto; object-fit: contain; border-radius: var(--r); }
.product-media .badge { top: 18px; left: 18px; font-size: .84rem; }
.product-info h1 { margin: .3rem 0 .5rem; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.product-price { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.product-price .price { font-size: 2.1rem; }
.feature-bullets { list-style: none; padding: 0; margin: .3rem 0 1.7rem; display: grid; gap: .6rem; }
.feature-bullets li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.feature-bullets li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.3rem; height: 1.3rem; background: #e6ffe9; color: #1c9d4d; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; font-family: var(--font-display); }
.product-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.support-line { background: #fff7e6; border: 2px dashed var(--sun); border-radius: var(--r); padding: .9rem 1.15rem; font-weight: 700; color: var(--ink); margin: 0; }
.support-line a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Product gallery thumbnails ---------- */
.product-gallery { display: grid; gap: .85rem; }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumb { width: 78px; height: 68px; border-radius: 12px; border: 2.5px solid var(--line); background: #fff; padding: 4px; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { transform: translateY(-2px); border-color: var(--sun); }
.thumb.active { border-color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; border: 2px solid transparent; transition: border-color .15s; }
.faq details[open] { border-color: var(--sun); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact highlight ---------- */
.box--highlight { background: #fff7e6; border: 2px solid var(--sun); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.filter {
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .55em 1.15em; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.filter:hover { transform: translateY(-2px); border-color: var(--sun); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Series cards ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.3rem; }
.series-card {
  position: relative; border-radius: var(--r-lg); padding: 1.5rem; min-height: 180px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.series-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.series-card .emoji { font-size: 2.4rem; position: absolute; top: 1.1rem; right: 1.2rem; }
.series-card h3 { font-size: 1.35rem; margin: 0; }
.series-card p { font-size: .9rem; color: rgba(36,28,59,.7); margin: .2rem 0 0; }
.series-card:nth-child(5n+1){ background: #ffe1e1; }
.series-card:nth-child(5n+2){ background: #fff0cf; }
.series-card:nth-child(5n+3){ background: #d9f0ff; }
.series-card:nth-child(5n+4){ background: #dcffe6; }
.series-card:nth-child(5n+5){ background: #ece0ff; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), #ff6a5e 60%, var(--coral));
  border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.4rem); color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 44ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1rem; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14);
}
.cta-band::before { width: 220px; height: 220px; top: -70px; left: -50px; }
.cta-band::after  { width: 160px; height: 160px; bottom: -60px; right: -30px; }

/* ---------- Showcase gallery ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.showcase .sc { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #fff 0%, #f4ecff 100%); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; transition: transform .2s cubic-bezier(.34,1.4,.64,1), box-shadow .2s; }
.showcase .sc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.showcase .sc img { width: 100%; height: 100%; object-fit: contain; padding: 1.4rem; transition: transform .3s; }
.showcase .sc:hover img { transform: scale(1.05); }
.showcase .sc span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.1rem .8rem; font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: #fff; background: linear-gradient(transparent, rgba(36,28,59,.78)); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.showcase .sc:hover span { opacity: 1; transform: none; }
@media (max-width: 720px) { .showcase { grid-template-columns: 1fr 1fr; gap: 1rem; } .showcase .sc span { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: #fff; border-radius: var(--r-lg); padding: 1.6rem 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--brand); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- About ---------- */
.prose { max-width: 62ch; }
.prose p { font-size: 1.08rem; }
.quote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; font-weight: 500;
  border-left: 6px solid var(--sun); padding-left: 1.2rem; margin: 1.5rem 0; color: var(--ink);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-list li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; padding: 1.1rem 1.2rem; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.value-list .vi { font-size: 1.6rem; line-height: 1; }
.value-list b { font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form { background: #fff; padding: 1.8rem; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .8em 1em; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(35,181,255,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.note { font-size: .88rem; color: var(--muted); }
.alert { padding: 1em 1.2em; border-radius: var(--r); font-weight: 600; margin-bottom: 1.2rem; }
.alert--ok { background: #e6ffe9; color: #1c7a3d; }
.alert--err { background: #ffe6e6; color: #c0342b; }
.contact-aside { display: grid; gap: 1rem; }
.contact-aside .box { background: #fff; padding: 1.4rem 1.5rem; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.contact-aside .box h3 { margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d3ec; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 3.2rem 0 2.4rem; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #b6afce; font-size: .95rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin: 0 0 .8rem; }
.footer-col a { display: block; padding: .28em 0; color: #c9c2e0; transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--sun); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: #9990b8; }
.footer-bottom a { color: #c9c2e0; }
.footer-studs { display: flex; gap: 10px; }
.footer-studs span { width: 100%; height: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 40, .93); display: none; align-items: center; justify-content: center; padding: 4vmin; }
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); box-shadow: var(--shadow-lg); background: #fff; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: none; border-radius: 50%; width: 54px; height: 54px; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .3); transform: scale(1.06); }
.lb-close { top: 3vmin; right: 3vmin; }
.lb-prev { left: 3vmin; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vmin; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) { .lb-btn { width: 44px; height: 44px; font-size: 1.5rem; } .lb-prev { left: 1vmin; } .lb-next { right: 1vmin; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.4,.64,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 340px; order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 2px solid var(--line); padding: .8rem 1.25rem 1.2rem; gap: .2rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8em 1em; }
  .nav-cta { margin: .4rem 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .card h3 { font-size: 1.02rem; }
  .card .desc { display: none; }
  .card-body { padding: .9rem .9rem 1.1rem; }
  .value-list { grid-template-columns: 1fr !important; }
  /* Declutter the hero collage on phones: two tidy, un-clipped cards */
  .hero-stage { min-height: 300px; margin-bottom: 1rem; }
  .fc-1 { width: 66%; top: 6%; left: 0; }
  .fc-2 { display: none; }
  .fc-3 { width: 46%; right: 2%; bottom: 2%; }
  .blob-1 { width: 220px; height: 220px; }
  .blob-2 { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
