/* ==========================================================================
   FOTON HDT — showcase layer
   Model index + model detail rebuilt as an editorial product showcase,
   with real motion instead of a flat card grid.
   ========================================================================== */

/* ---------- page entrance -------------------------------------------------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main { animation: pageIn .5s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* header: frosted + condensed on scroll */
.site-header { transition: box-shadow .25s ease, background-color .25s ease, backdrop-filter .25s ease; }
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(10,16,32,.07), 0 10px 30px rgba(10,16,32,.07);
}
.site-header.is-scrolled .brand-logo { transform: scale(.94); }
.brand-logo { transition: transform .25s ease; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- model index hero ---------------------------------------------- */
.showcase-hero {
  position: relative; color: #fff; overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(31,111,224,.35), transparent 65%),
    linear-gradient(150deg, #070c17 0%, #101a2e 55%, #0b1322 100%);
}
.showcase-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 5vw, 4.4rem); line-height: 1.03;
  letter-spacing: -0.035em; font-weight: 800; margin: 0 0 1rem; color: #fff;
}
.showcase-hero p { color: #a9b8ce; max-width: 60ch; font-size: clamp(1rem, .95rem + .3vw, 1.16rem); line-height: 1.7; }
.showcase-hero .kicker { color: #7fb2f0; }
.showcase-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.2rem; }
.showcase-stats div { display: flex; flex-direction: column; }
.showcase-stats b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.showcase-stats span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #8296b0; margin-top: .35rem; }

/* ---------- filter bar ----------------------------------------------------- */
.filter-bar {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(251,252,254,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: .7rem;
}
.filter-row { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--steel);
  border-radius: 999px; padding: .46rem 1rem; font: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-btn:hover { transform: translateY(-1px); border-color: var(--brand-line); color: var(--brand); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- showcase grid -------------------------------------------------- */
.showcase-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}
.showcase-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-xl); overflow: hidden; background: #fff;
  border: 1px solid rgba(10,16,32,.07);
  box-shadow: 0 1px 2px rgba(10,16,32,.04);
  transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s ease, opacity .3s ease;
}
.showcase-card:hover { transform: translateY(-7px); box-shadow: 0 34px 70px rgba(10,16,32,.17); }
.showcase-card.is-hidden { display: none; }
.showcase-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef5;
}
.showcase-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.showcase-card:hover .showcase-media img { transform: scale(1.07); }
.showcase-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,10,20,.72) 0%, rgba(6,10,20,.12) 42%, transparent 70%);
  opacity: .85; transition: opacity .35s ease;
}
.showcase-card:hover .showcase-media::after { opacity: 1; }
.showcase-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .34rem .68rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.showcase-type {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(10,16,32,.55); color: #dbe6f5; backdrop-filter: blur(6px);
}
.showcase-power {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.showcase-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.showcase-body h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.25; }
.showcase-body h3 a { color: var(--ink); }
.showcase-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.showcase-body p { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--slate); }
.showcase-cta {
  margin-top: auto; padding-top: .9rem; display: flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 700; color: var(--brand);
}
.showcase-cta i { font-style: normal; transition: transform .25s cubic-bezier(.22,.61,.36,1); }
.showcase-card:hover .showcase-cta i { transform: translateX(5px); }

/* ---------- model detail: cinematic hero ---------------------------------- */
.mhero { position: relative; color: #fff; overflow: hidden; background: #060a12; }
.mhero-media { position: absolute; inset: 0; }
.mhero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62;
  transform: scale(1.04); animation: heroZoom 14s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@media (prefers-reduced-motion: reduce) { .mhero-media img { animation: none; transform: none; } }
.mhero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(5,8,16,.90) 0%, rgba(5,8,16,.66) 40%, rgba(5,8,16,.16) 100%);
}
.mhero-media img { opacity: .78; }
.mhero-inner { position: relative; z-index: 2; padding-block: clamp(3.4rem, 8vw, 6rem) clamp(2.6rem, 5vw, 4rem); }
.mhero h1 { font-size: clamp(2.1rem, 1.1rem + 4.4vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; margin: .8rem 0 .9rem; color: #fff; }
.mhero .mhero-tag { color: #9dc2f5; font-size: .95rem; max-width: 55ch; line-height: 1.6; }
.mhero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.mhero-badges span {
  font-size: .76rem; padding: .34rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #e4ecf8;
}
.mhero-key {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.mhero-key div { display: flex; flex-direction: column; }
.mhero-key b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.mhero-key span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8296b0; margin-top: .25rem; }

/* ---------- photo rail (right under the hero) ------------------------------ */
.photo-rail { background: #0b1322; padding-block: 1.1rem 1.3rem; }
.photo-rail-inner { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.photo-rail img {
  height: 132px; width: auto; aspect-ratio: 16/10; object-fit: cover; flex: 0 0 auto;
  border-radius: 12px; cursor: zoom-in; background: #162034;
  opacity: .82; transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}
.photo-rail img:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.45); }

/* ---------- sticky section nav -------------------------------------------- */
.anchors {
  position: sticky; top: 64px; z-index: 25;
  background: rgba(251,252,254,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-block: .6rem;
}
.anchors ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a {
  font-size: .84rem; font-weight: 600; color: var(--slate); white-space: nowrap;
  padding-bottom: .3rem; border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease;
}
.anchors a:hover, .anchors a.is-active { color: var(--brand); border-color: var(--brand); }

/* ---------- gallery with lightbox ----------------------------------------- */
.gallery--rich { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .85rem; }
.gallery--rich img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; cursor: zoom-in;
  background: #eef2f7; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.gallery--rich img:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 20px 44px rgba(10,16,32,.18); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4,7,14,.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 3vmin;
}
.lightbox.is-open { display: flex; animation: pageIn .25s ease both; }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1.3rem;
  transition: background-color .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 3vmin; }
.lightbox-next { right: 3vmin; }

/* ---------- editorial bands (less flat white) ----------------------------- */
.band-photo {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(6,10,20,.92) 0%, rgba(6,10,20,.7) 48%, rgba(6,10,20,.35) 100%);
}
.band-photo h2 { font-size: clamp(1.8rem, 1rem + 3vw, 3rem); letter-spacing: -0.03em; margin: 0 0 .8rem; color: #fff; }
.band-photo p { color: #c3d0e2; max-width: 58ch; line-height: 1.7; }
.band-photo .kicker { color: #7fb2f0; }

.alt-surface {
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(31,111,224,.05), transparent 60%),
    linear-gradient(180deg, #f6f8fc 0%, #fbfcfe 100%);
}

/* spec/option tables: easier to scan on long pages */
.spec-table tbody tr:hover, .spec-table--options tbody tr:hover { background: rgba(31,111,224,.04); }
.spec-table th[scope="row"] { color: var(--ink); }

@media (max-width: 900px) {
  .filter-bar, .anchors { top: 56px; }
  .photo-rail img { height: 104px; }
  .mhero-key { gap: 1.1rem; }
}
