* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0c111d;
  --text: #f7f8fb;
  --muted: #a7adbb;
  --line: rgba(255, 255, 255, 0.11);
  --accent-a: #ff5b86;
  --accent-b: #7657ff;
  --accent-c: #3c8dff;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(65, 94, 255, 0.14), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 88px);
}

.logo,
.footer-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.nav {
  display: flex;
  gap: 30px;
  color: #dce1eb;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: 180ms ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  padding: 110px 24px 55px;
  background:
    linear-gradient(180deg, rgba(3, 6, 13, 0.06), rgba(3, 6, 13, 0.48)),
    radial-gradient(circle at 50% 38%, rgba(151, 86, 255, 0.08), transparent 34rem),
    url("assets/images/hero-bg.webp") center center / cover no-repeat,
    linear-gradient(120deg, #07101e 0%, #111c3c 45%, #1d102b 75%, #070b12 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 46%, rgba(5, 8, 16, 0.72) 47%),
    linear-gradient(195deg, transparent 50%, rgba(3, 5, 11, 0.8) 51%);
  content: "";
  opacity: 0.12;
}

.hero__glow {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.hero__glow--one {
  top: 5%;
  left: -12rem;
  background: #3f4fff;
}

.hero__glow--two {
  right: -12rem;
  bottom: 8%;
  background: #ff3d81;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero h1 span,
.hero h1 strong {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 strong { font-weight: 800; }

.hero p {
  margin: 24px 0 0;
  color: #cbd0dc;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.scroll-button {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 30px auto 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: 180ms ease;
}

.scroll-button:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(4px);
}

.collections {
  padding: 42px clamp(18px, 4vw, 70px) 120px;
}

.section-heading {
  max-width: 1500px;
  margin: 0 auto 36px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8ba2ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
}

.wallpaper-grid {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.wallpaper-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(96, 72, 255, 0.25), rgba(255, 58, 123, 0.12)),
    #101522;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wallpaper-card:hover {
  z-index: 2;
  border-color: rgba(146, 123, 255, 0.8);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  transform: translateY(-6px);
}

.wallpaper-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.wallpaper-card:hover .wallpaper-card__image { transform: scale(1.045); }

.wallpaper-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.04) 25%, rgba(3, 5, 12, 0.92) 100%);
  content: "";
}

.wallpaper-card__content {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 19px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallpaper-card__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.wallpaper-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(4, 6, 12, 0.4);
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
}

.about {
  padding: 28px 24px 90px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 38px clamp(24px, 5vw, 88px);
  border-top: 1px solid var(--line);
  background: #080b12;
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  color: #d3d7df;
  font-size: 0.82rem;
}

.footer-right p {
  flex-basis: 100%;
  text-align: right;
}

@media (max-width: 1400px) {
  .wallpaper-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .wallpaper-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 22px;
  }

  .nav {
    gap: 16px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6.4vw, 3.4rem);
  }

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

  .wallpaper-card { min-height: 220px; }

  .site-footer { flex-direction: column; }

  .footer-right { justify-content: flex-start; }

  .footer-right p { text-align: left; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }

  .logo { font-size: 1.05rem; }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .hero {
    min-height: 540px;
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.6rem);
  }

  .collections {
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .wallpaper-card { min-height: 245px; }
}
