/* ════════════════════════════════════════════════════════════
   LUMIC — Native glass layer
   Loaded last: refines the existing design with translucent,
   Apple-style materials. Remove this file to restore the old look.
   ════════════════════════════════════════════════════════════ */

:root {
  --brand:        #D269E6;
  --brand-deep:   #B34FD0;
  --glass-light:  rgba(255, 255, 255, 0.58);
  --glass-light-strong: rgba(255, 255, 255, 0.78);
  --glass-edge:   rgba(255, 255, 255, 0.75);
  --glass-dark:   rgba(255, 255, 255, 0.05);
  --glass-dark-edge: rgba(255, 255, 255, 0.11);
  --blur:         saturate(180%) blur(24px);
  --radius-lg:    24px;
  --radius-md:    16px;
  --shadow-soft:  0 1px 0 rgba(255,255,255,0.9) inset,
                  0 12px 40px rgba(40, 20, 70, 0.08),
                  0 2px 6px rgba(40, 20, 70, 0.04);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

html { background: #F6F4FA; }

body {
  background: transparent;
  color: #0A0A0A;
  font-feature-settings: "ss01", "cv11";
}

/* ── Ambient light field: gives the glass something to refract ── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #F6F4FA;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.ambient span:nth-child(1) {
  width: 46vw; height: 46vw; left: -10vw; top: 10vh;
  background: #F3C4FF;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.ambient span:nth-child(2) {
  width: 40vw; height: 40vw; right: -8vw; top: 35vh;
  background: #C7DDFF;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.ambient span:nth-child(3) {
  width: 34vw; height: 34vw; left: 30vw; bottom: -12vh;
  background: #FFD9E8;
  animation: drift-a 36s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a { to { transform: translate3d(8vw, -6vh, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-10vw, 8vh, 0) scale(0.92); } }

/* ── Buttons: pill, with a lit top edge ── */
.btn-primary,
.btn-submit,
.interest-modal__submit {
  border-radius: 999px;
  background: linear-gradient(180deg, #DC7FEE 0%, var(--brand) 55%, var(--brand-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.45) inset,
              0 -1px 0 rgba(0,0,0,0.08) inset,
              0 8px 24px rgba(210, 105, 230, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.2s ease;
}

.btn-primary:hover,
.btn-submit:hover,
.interest-modal__submit:hover {
  background: linear-gradient(180deg, #DC7FEE 0%, var(--brand) 55%, var(--brand-deep) 100%);
  filter: brightness(1.05);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset,
              0 12px 32px rgba(210, 105, 230, 0.45);
}

.btn-primary:active,
.btn-submit:active { transform: scale(0.97); }

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: #0A0A0A;
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  background: var(--glass-light-strong);
  color: #0A0A0A;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ── Navigation: floating glass capsule ── */
.nav {
  top: 12px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  height: 60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--glass-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 16px 48px rgba(40, 20, 70, 0.12);
}

.nav .container { padding: 0 10px 0 24px; }

.nav__logo-img { height: 24px; }

.nav__links { gap: 6px; }

.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover { background: rgba(10, 10, 10, 0.05); }

.nav__cta { padding: 10px 18px; font-size: 13px; border-radius: 999px; }

@media (max-width: 768px) {
  .nav .container { padding: 0 14px 0 20px; }

  .nav__links {
    top: 68px;
    left: 0;
    right: 0;
    border-radius: 22px;
    border: 1px solid var(--glass-edge);
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: 0 20px 50px rgba(40, 20, 70, 0.14);
    padding: 8px;
  }

  .nav__links a { padding: 14px 16px; border-radius: 14px; }
}

/* ── Hero ── */
.hero { padding-top: 84px; }

.hero__eyebrow {
  text-align: center;
  margin: 468px auto 20px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #444;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.6s forwards;
}

.hero__eyebrow i {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(210, 105, 230, 0.18);
  vertical-align: 1px;
}

.hero__headline { margin-top: 0; }

.hero__footer {
  width: fit-content;
  max-width: 100%;
  margin: 72px auto 0;
  padding: 18px 18px 18px 32px;
  border-radius: 999px;
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  gap: 40px;
}

.hero__footer .btn-primary,
.hero__footer .btn-ghost { padding: 14px 28px; }

@media (max-width: 900px) {
  .hero__footer {
    border-radius: var(--radius-lg);
    padding: 24px;
    align-items: stretch;
  }
  .hero__actions { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .hero__eyebrow { margin-top: 372px; font-size: 11px; letter-spacing: 1px; }
  .hero__footer { margin-top: 40px; }
  .hero__actions > * { flex: 1 1 auto; text-align: center; }
}

/* ── Marquee: tinted glass band ── */
.marquee {
  background: linear-gradient(90deg, rgba(210,105,230,0.92), rgba(179,79,208,0.92));
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset;
}

.marquee__track span { color: rgba(255, 255, 255, 0.85); }

/* ── Section headings ── */
.label { color: #777; }

/* ── Use-case cards: frosted panels ── */
.card {
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  padding: 8px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 28px 70px rgba(40, 20, 70, 0.14);
}

.card__image { border-radius: calc(var(--radius-lg) - 8px); }

.card__body { padding: 18px 16px 12px; }

.card__footer {
  margin: 0 8px 8px;
  padding: 10px 8px 4px;
  border-top: 1px solid rgba(10, 10, 10, 0.06);
}

.card__text { color: #444; }

/* ── Product: dark glass on a lit stage ── */
.product {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(210, 105, 230, 0.22), transparent 70%),
    radial-gradient(50% 45% at 90% 70%, rgba(96, 165, 250, 0.18), transparent 70%),
    #07060A;
}

.product__header-right { color: #8A8A93; }
.product__header-left .label { color: #8A8A93; }

.product__hero-img img { border-radius: var(--radius-md); }

.product__grid {
  gap: 14px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.model-card {
  border-radius: var(--radius-lg);
  background: var(--glass-dark);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-dark-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 20px 50px rgba(0,0,0,0.35);
  transition: background 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.model-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.model-card__name { color: var(--brand); }

.model-card__specs {
  border-top-color: rgba(255,255,255,0.08);
  border-bottom-color: rgba(255,255,255,0.08);
}

.model-card__spec-label,
.model-card__best-for { color: #8A8A93; }

.model-card .btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: #ddd;
  box-shadow: none;
}

.product__common {
  gap: 14px;
  background: none;
  border: none;
  overflow: visible;
}

.product__common-item {
  border-radius: var(--radius-md);
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-edge);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

.product__common-icon svg * { stroke: #bbb; }
.product__common-icon svg circle[fill] { fill: #bbb; }
.product__common-title { color: #ccc; }

/* ── Why Lumic: glass tiles ── */
.why-lumic { background: transparent; }

.why-lumic__list {
  gap: 14px;
  border: none;
}

.feature {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 24px 60px rgba(40, 20, 70, 0.12);
}

.feature__icon {
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(210,105,230,0.16), rgba(96,165,250,0.12));
  border: 1px solid rgba(255,255,255,0.8);
}

.feature__icon svg { width: 30px; height: 30px; stroke: #3A2A44; }

.feature__title { font-size: 17px; }

@media (max-width: 768px) {
  .why-lumic__list { grid-template-columns: 1fr; }
  .feature__title { font-size: 16px; }
  .feature__body { font-size: 14px; }
}

/* ── FAQ ── */
.faq { padding: var(--section-py) 0; }

.faq__header { text-align: center; margin-bottom: 56px; }

.faq__header h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 12px;
}

.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border-radius: var(--radius-md);
  background: var(--glass-light);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 26px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq__item p {
  padding: 0 26px 24px;
  color: #444;
  font-size: 15.5px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq { padding: var(--section-py-mobile) 0; }
  .faq__item summary { font-size: 16px; padding: 18px 52px 18px 20px; }
  .faq__item p { padding: 0 20px 20px; }
}

/* ── Contact: glass form on a lit stage ── */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(210, 105, 230, 0.28), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(96, 165, 250, 0.16), transparent 70%),
    #07060A;
}

.cta__sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }

.cta__form {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-dark-edge);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 80px rgba(0,0,0,0.45);
}

.form-group label { font-size: 12px; color: #9A9AA3; }

.form-group input,
.form-group textarea,
.custom-select__trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.form-group input:focus,
.form-group textarea:focus,
.custom-select:focus-visible .custom-select__trigger {
  border-color: rgba(210, 105, 230, 0.8);
  box-shadow: 0 0 0 4px rgba(210, 105, 230, 0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.custom-select__label { color: #6E6E78; }

.custom-select.open .custom-select__trigger { border-color: rgba(255,255,255,0.25); }

.custom-select__list {
  top: calc(100% + 6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(30, 28, 36, 0.88);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.custom-select.open .custom-select__trigger {
  border-radius: 12px;
  border-bottom-color: rgba(255,255,255,0.25);
}

.custom-select__option { border-radius: 9px; }

.custom-select__option:hover,
.custom-select__option.active { background: rgba(255,255,255,0.08); }

.btn-submit { padding: 16px 40px; }

@media (max-width: 768px) {
  .cta__form { padding: 20px; border-radius: 22px; }
}

/* ── Interest modal: glass sheet ── */
.interest-modal {
  background: rgba(20, 12, 30, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.interest-modal__box {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 1px 0 #fff inset, 0 40px 100px rgba(40, 20, 70, 0.3);
}

.interest-modal__input {
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  border-color: rgba(10,10,10,0.08);
}

.interest-modal__submit { border-radius: 999px; }

/* ── Footer ── */
.footer { background: #07060A; border-top: 1px solid rgba(255,255,255,0.06); }

.footer__inner { align-items: flex-start; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #8A8A93;
  font-style: normal;
}

.footer__contact a { color: #ccc; transition: color 0.2s ease; }
.footer__contact a:hover { color: #fff; }

/* ── Accessibility & fallbacks ── */
@media (prefers-reduced-motion: reduce) {
  .ambient span { animation: none; }
  .card, .feature, .model-card { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .card, .feature, .faq__item, .btn-ghost, .hero__eyebrow,
  .hero__footer, .interest-modal__box, .nav__links {
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .model-card, .product__common-item, .cta__form { background: #141318; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .card, .feature, .faq__item, .hero__eyebrow, .hero__footer { background: rgba(255,255,255,0.92); }
}

/* ── Optimized hero image (WebP) + white base that melts into the ambient field ── */
.hero {
  background:
    url('../img/lumic-bar-display-cafe-hero.webp') center -140px / auto 972px no-repeat,
    linear-gradient(to bottom, #fff 0, #fff 800px, rgba(255,255,255,0) 1120px) 0 0 / 100% 100% no-repeat;
}

@media (max-width: 900px) {
  .hero {
    background:
      url('../img/lumic-bar-display-cafe-hero.webp') center 52% / cover no-repeat,
      linear-gradient(to bottom, #fff 0, #fff 70%, rgba(255,255,255,0) 100%) 0 0 / 100% 100% no-repeat;
  }
}

@media (max-width: 600px) {
  .hero {
    background:
      url('../img/lumic-bar-display-cafe-hero.webp') calc(50% - 5px) -40px / auto 700px no-repeat,
      linear-gradient(to bottom, #fff 0, #fff 640px, rgba(255,255,255,0) 920px) 0 0 / 100% 100% no-repeat;
  }
}

/* ── Product hero image keeps its true proportions ── */
.product__hero-img img { height: auto; }
.card__image img { height: 100%; }

/* ── Nav adapts to dark sections (toggled by js/nav.js) ── */
.nav.nav--dark {
  background: rgba(22, 20, 28, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 16px 48px rgba(0, 0, 0, 0.4);
}
.nav.nav--dark .nav__links a { color: #E6E6EA; }
.nav.nav--dark .nav__links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav.nav--dark .nav__burger span { background: #fff; }
.nav { transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }

@media (max-width: 768px) {
  .nav.nav--dark .nav__links { background: rgba(28, 26, 34, 0.9); border-color: rgba(255,255,255,0.12); }
}

/* ── Model cards: keep spec rows readable on narrow screens ── */
.model-card__spec { gap: 12px; }
.model-card__spec-value { white-space: nowrap; text-align: right; }

@media (max-width: 768px) {
  .product__grid { gap: 10px; }
  .model-card { padding: 22px 16px; gap: 12px; }
  .model-card__size { font-size: 32px; }
  .model-card__spec { flex-direction: column; gap: 0; font-size: 12.5px; }
  .model-card__spec-value { text-align: left; }
  .model-card .btn-ghost { padding: 10px 8px; font-size: 12.5px; white-space: nowrap; }
}
