:root {
  --purple: #9a39a8;
  --purple-bright: #d86ee7;
  --magenta: #ff4fd8;
  --cyan: #61e4ff;
  --amber: #ffd166;
  --amber-strong: #f6a800;
  --black: #120d13;
  --ink: #171018;
  --panel: #1b1420;
  --panel-soft: #221629;
  --panel-strong: #100b12;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 209, 102, 0.30);
  --text: #fbf7fc;
  --text-muted: #c8b9ca;
  --text-soft: #a99bac;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(154, 57, 168, 0.14), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(255, 209, 102, 0.08), transparent 30%),
    linear-gradient(180deg, #120d13 0%, #161019 48%, #100b12 100%);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::selection {
  background: rgba(216, 110, 231, 0.34);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 11, 18, 0.86);
  backdrop-filter: blur(16px);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: url("assets/wizart-logo.png") center / contain no-repeat;
  box-shadow: none;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  font-weight: 750;
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), var(--purple-bright), var(--cyan));
  transition: width 180ms ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 58px 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -24px;
  left: -24px;
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 13, 19, 0.62), rgba(18, 13, 19, 0.42)),
    radial-gradient(circle at 16% 20%, rgba(216, 110, 231, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.13), transparent 28%),
    url("assets/bg-texture.png") center / 340px repeat,
    linear-gradient(180deg, rgba(34, 22, 41, 0.72), rgba(18, 13, 19, 0.42));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 42px;
  left: 12%;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.72), rgba(216, 110, 231, 0.58), rgba(97, 228, 255, 0.42), transparent);
}

.logo {
  width: min(100%, 590px);
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 36px 78px rgba(0, 0, 0, 0.50)) drop-shadow(0 0 28px rgba(255, 209, 102, 0.10));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  background: linear-gradient(100deg, #ffffff 4%, #ffd166 33%, #f1b7ff 62%, #88efff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
}

h2::first-letter {
  color: var(--amber);
}

h3 {
  color: #fff;
  letter-spacing: -0.025em;
}

.hero-text p:not(.eyebrow),
.about-grid p,
.contact p,
.product p,
.product small,
.terms-grid p,
.section-title p:not(.eyebrow) {
  color: var(--text-muted);
}

.hero-text p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(255, 209, 102, 0.46);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.filters button:hover,
.pagination button:hover:not(:disabled),
.product button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber-strong), var(--purple-bright), var(--magenta));
  color: #fff;
  box-shadow: 0 14px 34px rgba(246, 168, 0, 0.18), 0 16px 40px rgba(154, 57, 168, 0.24);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section:nth-of-type(even) {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1120px) / 2));
  padding-right: max(18px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}

.catalog,
.terms {
  position: relative;
  isolation: isolate;
}

.catalog::before,
.terms::before {
  content: "";
  position: absolute;
  top: 28px;
  right: max(12px, calc((100% - 1180px) / 2));
  z-index: -1;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(18, 13, 19, 0.74), rgba(18, 13, 19, 0.58)),
    radial-gradient(circle at 8% 10%, rgba(154, 57, 168, 0.13), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 209, 102, 0.10), transparent 26%),
    url("assets/bg-texture.png") center / 310px repeat,
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 209, 102, 0.08);
}

.section-title {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.about-grid article,
.terms-grid article,
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.026));
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.about-grid article {
  border-top-color: var(--line-strong);
}

.about-grid h3,
.terms-grid h3 {
  color: #ffe2a0;
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

#searchInput {
  width: min(100%, 360px);
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

#searchInput::placeholder {
  color: rgba(200, 185, 202, 0.72);
}

#searchInput:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button,
.product button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filters button.active,
.product button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber-strong), var(--purple-bright), var(--magenta));
  color: #fff;
}

.product-grid {
  display: grid;
  gap: 34px;
}

.product-group {
  display: grid;
  gap: 16px;
}

.group-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.group-title span {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 950;
}

.group-title small {
  color: var(--amber);
  font-weight: 800;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 24px;
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-height: 100%;
  padding: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 209, 102, 0.34);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26);
}

.product img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #0c090d;
}

.product-body {
  padding: 22px 24px 0;
}

.product span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 18px 24px 24px;
}

.product-footer strong {
  color: var(--amber);
  font-size: 1.02rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pagination button.active,
.pagination button:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber-strong), var(--purple-bright), var(--magenta));
  color: #fff;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terms-grid article {
  min-height: 100%;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.contact strong {
  color: #fff;
}

.socials {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.16), transparent 34%),
    radial-gradient(circle at 100% 0, rgba(216, 110, 231, 0.14), transparent 38%),
    #0c090d;
  color: #fff;
  box-shadow: var(--shadow);
}

.socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.socials a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
  color: var(--amber);
}

.socials svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.socials a:nth-child(1) svg {
  color: #25d366;
}

.socials a:nth-child(2) svg {
  color: #ff5fc8;
}

.socials a:nth-child(3) svg {
  color: #61e4ff;
}

.socials a:nth-child(4) svg {
  color: #ffffff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: #0c090d;
  color: rgba(255, 255, 255, 0.62);
}

footer span:first-child {
  color: #fff;
  font-weight: 950;
}

footer a {
  color: var(--amber);
  font-weight: 850;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #053b1d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  font-weight: 950;
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .terms-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    text-align: center;
  }

  .hero::before {
    top: 0;
    right: -10px;
    bottom: 0;
    left: -10px;
  }

  .actions,
  .catalog-tools {
    justify-content: center;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  #searchInput {
    width: 100%;
  }

  .filters {
    justify-content: center;
  }

  .product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    width: min(100% - 28px, 1120px);
    min-height: auto;
    padding: 46px 0;
  }

  .logo {
    width: min(100%, 390px);
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 56px 0;
  }

  .catalog::before,
  .terms::before {
    top: 18px;
    right: 8px;
    bottom: 18px;
    left: 8px;
  }

  .product-row,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  .brand::before {
    width: 38px;
    height: 38px;
  }
}

[hidden] {
  display: none !important;
}

.featured-carousel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 32px;
  align-items: center;
  margin-top: 10px;
}

.featured-carousel::before {
  content: "";
  position: absolute;
  top: 28px;
  right: max(12px, calc((100% - 1180px) / 2));
  z-index: -1;
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(18, 13, 19, 0.78), rgba(18, 13, 19, 0.52)),
    radial-gradient(circle at 10% 10%, rgba(255, 209, 102, 0.14), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(216, 110, 231, 0.18), transparent 32%),
    url("assets/bg-texture.png") center / 310px repeat;
}

.carousel-copy {
  position: relative;
  z-index: 1;
}

.carousel-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--text-muted);
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 28px;
  background: #0c090d;
  box-shadow: var(--shadow);
}

.carousel-frame img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.carousel-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(12, 9, 13, 0.86));
  pointer-events: none;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 9, 13, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.carousel-control:hover {
  border-color: rgba(255, 209, 102, 0.45);
  color: var(--amber);
}

.carousel-control.prev {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 28px;
  background: linear-gradient(135deg, var(--amber), var(--purple-bright));
}

.product-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0c090d;
}

.product-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-bottom: 0;
}

.video-badge,
.product-video-button {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 950;
}

.video-badge {
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  background: rgba(12, 9, 13, 0.74);
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  backdrop-filter: blur(10px);
}

.product-video-button {
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  background: rgba(12, 9, 13, 0.76);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.product-video-button:hover {
  background: linear-gradient(135deg, var(--amber-strong), var(--purple-bright));
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 9, 0.78);
  backdrop-filter: blur(10px);
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.12), transparent 30%),
    #100b12;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.video-modal__content h2 {
  padding-right: 48px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.video-modal__content video {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 18px;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
}

.video-modal__close:hover {
  border-color: rgba(255, 209, 102, 0.46);
  color: var(--amber);
}

@media (max-width: 900px) {
  .featured-carousel {
    grid-template-columns: 1fr;
  }

  .featured-carousel::after {
    display: none;
  }

  .carousel-frame img {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .carousel-frame img {
    height: 260px;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }

  .featured-carousel::before {
    top: 18px;
    right: 8px;
    bottom: 18px;
    left: 8px;
  }
}
