/* ─────────────────────────────────────────
   ÉCLATLABS – style.css
   ───────────────────────────────────────── */

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── TOKENS ── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-400: #9a9a9a;
  --gray-600: #555;
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.22s ease;
  --max-w: 100%;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--black);
  opacity: 1;
}

.btn--sm {
  font-size: 11px;
  padding: 8px 16px;
  width: 100%;
  justify-content: center;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────────────────────
   HEADER
   ───────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 12px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__logo {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--black);
  flex-shrink: 0;
  margin-left: 20px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: rgba(0, 0, 0, 0.65);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--black);
}

.header .btn {
  font-size: 13px;
  padding: 10px 22px;
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #b7d5ed;
}

.hero__img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero__characters {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 85%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 10;
}

.hero__char-img {
  height: 100%;
  width: auto;
  max-width: 19%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.3));
  cursor: pointer;
  transform-origin: bottom center;
  margin: 0 -0.5%;
}

.hero__char-img:hover {
  transform: scale(1.08) translateY(-2%);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.45));
  z-index: 15;
}

.hero__glow {
  position: absolute;
  top: -15%;
  right: -15%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(
    circle,
    rgba(255, 235, 160, 0.45) 0%,
    rgba(255, 190, 80, 0.2) 35%,
    rgba(255, 220, 100, 0.05) 60%,
    rgba(255, 255, 255, 0) 80%
  );
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
  animation: sunGlow 12s infinite ease-in-out;
  filter: blur(10px);
}

@keyframes sunGlow {
  0% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15) translate(-3%, 3%);
  }
  100% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
  }
}

/* ─────────────────────────────────────────
   COLLECTION INTRO
   ───────────────────────────────────────── */
.collection-intro {
  text-align: center;
  padding: 72px 12px 48px;
}

.collection-intro__title {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--black);
  margin-bottom: 12px;
}

.collection-intro__sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────
   CHARACTERS GRID
   ───────────────────────────────────────── */
.characters {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 12px 80px;
}

.characters__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.char-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.char-card__img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.char-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.char-card__name {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0px;
}

.char-card__price {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────
   PACKS
   ───────────────────────────────────────── */
.packs {
  background: var(--gray-50);
  padding: 64px 12px;
}

.packs__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pack-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--gray-100);
  cursor: pointer;
}

.pack-card__header {
  text-align: center;
}

.pack-card__title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.pack-card__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
}

.pack-card__img-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pack-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pack-card__price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black);
}

/* ─────────────────────────────────────────
   INFO STRIP
   ───────────────────────────────────────── */
.info-strip {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 40px 12px;
}

.info-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.info-item__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--black);
  margin-bottom: 8px;
}

.info-item__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.info-item__text {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   FAQ
   ───────────────────────────────────────── */
.faq {
  padding: 72px 12px;
}

.faq__inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq__title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item__q {
  font-size: 15px;
  font-weight: 400;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--transition);
}

.faq-item__q:hover {
  color: var(--gray-600);
}

.faq-item__q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(45deg);
}

.faq-item__a {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.75;
  overflow: hidden;
  transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  box-sizing: border-box;
}

/* ─────────────────────────────────────────
   CTA — JOIN THE LIST
   ───────────────────────────────────────── */
.cta {
  background: var(--black);
  color: var(--white);
  padding: 48px 12px;
}

.cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.cta__title {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.16em;
  margin-bottom: 5px;
}

.cta__sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.cta__form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  min-width: 340px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition);
}

.cta__form:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
}

.cta__input {
  flex: 1;
  padding: 13px 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
}

.cta__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta__submit {
  padding: 13px 18px;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.cta__submit:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta__right {
  text-align: right;
}

.cta__follow-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.cta__socials {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.social-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  padding: 20px 12px 24px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  flex-shrink: 0;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.footer__nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.footer__legal {
  max-width: var(--max-w);
  margin: 12px auto 0;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   MODAL
   ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--black);
}

.modal__close:hover {
  background: var(--gray-200);
}

.modal__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.modal__sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--black);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-input:focus {
  border-color: var(--black);
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.modal__legal {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.modal__success {
  text-align: center;
  padding: 20px 0;
}

.modal__success[hidden] {
  display: none;
}

.modal__success svg {
  margin: 0 auto 20px;
  color: #111;
}

.modal__success h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__success p {
  font-size: 13.5px;
  color: var(--gray-600);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 100px;
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 900px) {
  .characters__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta__form {
    min-width: 0;
    width: 100%;
  }

  .cta__right {
    text-align: left;
  }

  .cta__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header__nav {
    display: none;
  }

  .characters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packs__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .info-strip__inner {
    grid-template-columns: 1fr;
  }
}