:root {
  color-scheme: dark;
  --black: #050507;
  --ink: #0b0b10;
  --paper: #f3f3ed;
  --muted: #a9a9b7;
  --pink: #ff149f;
  --cyan: #1bdfff;
  --lime: #b7ff19;
  --steel: #b9c1ca;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(12, 12, 16, 0.84);
  --accent: var(--pink);
  --accent-2: var(--cyan);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 68px
    ),
    linear-gradient(180deg, #030306 0%, #111114 48%, #060608 100%);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.ticker,
.meter-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  color: var(--paper);
  font-size: 0.93rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--paper);
  background: var(--pink);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--cyan);
}

.nav-links {
  gap: clamp(14px, 2.2vw, 30px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a,
.nav-cta,
.btn,
.select-product {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}

.nav-cta,
.btn,
.select-product {
  border: 2px solid var(--paper);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-cta {
  padding: 10px 14px;
  background: var(--lime);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--pink);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  padding: 118px clamp(18px, 6vw, 96px) 70px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.noise-layer {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.98) 0%, rgba(5, 5, 7, 0.86) 28%, rgba(5, 5, 7, 0.28) 62%, rgba(5, 5, 7, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.58), rgba(5, 5, 7, 0.12)),
    url("assets/aipi-catgirl-hero.png");
  background-position: center right;
  background-size: cover;
}

.noise-layer {
  z-index: -2;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 18px,
      rgba(255, 20, 159, 0.18) 18px,
      rgba(255, 20, 159, 0.18) 20px
    );
  mix-blend-mode: screen;
}

.hero-content {
  width: min(650px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 950;
  text-transform: uppercase;
}

.title-art {
  position: relative;
  width: min(610px, 92vw);
  aspect-ratio: 1738 / 905;
  margin: 0 0 18px;
  overflow: hidden;
}

.title-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.78))
    drop-shadow(0 0 18px rgba(255, 20, 159, 0.36));
}

.title-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 1000;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow:
    5px 5px 0 var(--pink),
    10px 10px 0 var(--cyan);
}

.hero-copy {
  max-width: 565px;
  margin: 0;
  color: #d9d9df;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 650;
  line-height: 1.58;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--paper);
}

.btn-primary {
  background: var(--pink);
  color: var(--black);
  box-shadow: 5px 5px 0 var(--cyan);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta:hover,
.btn:hover,
.select-product:hover {
  transform: translate(-2px, -2px);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.hero-stats div {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 5px solid var(--lime);
  background: rgba(5, 5, 7, 0.64);
}

.hero-stats dt,
.hero-stats dd {
  margin: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats dd {
  margin-top: 3px;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 900;
}

.ticker {
  position: relative;
  z-index: 2;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border-block: 2px solid var(--black);
  background: var(--paper);
  color: var(--black);
  box-shadow: 0 -10px 0 rgba(255, 20, 159, 0.55);
}

.ticker span {
  flex: 1 0 auto;
  min-width: max-content;
  padding: 12px clamp(22px, 5vw, 70px);
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.ticker span:nth-child(2n) {
  background: var(--lime);
}

.section {
  scroll-margin-top: 84px;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 96px);
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.1rem, 5.6vw, 5.4rem);
  line-height: 0.94;
  text-transform: uppercase;
}

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

.product-card,
.profile-card,
.spec-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 358px;
  padding: 24px;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 20, 159, 0.2), transparent 35%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 14px
    );
  opacity: 0.65;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card.active {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    7px 7px 0 rgba(27, 223, 255, 0.9);
}

.product-tag {
  display: inline-flex;
  padding: 7px 10px;
  border: 2px solid var(--black);
  background: var(--lime);
  color: var(--black);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-card h3,
.profile-card h3,
.spec-grid h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
  text-transform: uppercase;
}

.product-card p,
.profile-card p,
.spec-grid p {
  color: #c8c8d0;
  line-height: 1.55;
}

.product-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.product-card li {
  padding-left: 16px;
  color: var(--paper);
  font-weight: 760;
  position: relative;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.select-product {
  margin-top: auto;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--black);
  color: var(--paper);
}

.product-card.active .select-product {
  background: var(--accent);
  color: var(--black);
  box-shadow: 4px 4px 0 var(--accent-2);
}

.sound-section {
  background:
    linear-gradient(180deg, rgba(255, 20, 159, 0.12), transparent 28%),
    #0c0c11;
}

.sound-panel {
  border-block: 2px solid rgba(255, 255, 255, 0.18);
  padding-block: clamp(24px, 4vw, 44px);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 70px);
}

.earphone-render {
  --bud-scale: 1;
  position: relative;
  min-height: clamp(300px, 38vw, 480px);
  overflow: hidden;
}

.halo-ring {
  position: absolute;
  inset: 14% 10%;
  border: 5px solid var(--accent-2);
  border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow:
    0 0 28px rgba(27, 223, 255, 0.55),
    inset 0 0 28px rgba(255, 20, 159, 0.45);
}

.bud {
  position: absolute;
  width: clamp(130px, 18vw, 210px);
  aspect-ratio: 1;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background:
    linear-gradient(135deg, #252832, #050507 52%, #4e5661);
  box-shadow:
    inset -18px -22px 0 rgba(0, 0, 0, 0.45),
    0 0 0 14px rgba(255, 20, 159, 0.12),
    0 0 38px rgba(255, 20, 159, 0.52);
}

.bud::after {
  content: "";
  position: absolute;
  inset: 22%;
  border: 10px solid var(--accent);
  border-radius: inherit;
  background: var(--black);
  box-shadow: 0 0 20px var(--accent);
}

.bud-left {
  left: 10%;
  top: 19%;
}

.bud-right {
  right: 10%;
  bottom: 17%;
  transform: scale(0.86);
}

.cable-line {
  position: absolute;
  left: 20%;
  right: 14%;
  bottom: 22%;
  height: 62px;
  border: 5px solid var(--lime);
  border-top: 0;
  border-radius: 0 0 80px 80px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 0 12px rgba(183, 255, 25, 0.8));
}

.profile-card {
  min-height: 360px;
  padding: clamp(22px, 4vw, 42px);
}

.profile-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 1000;
  text-transform: uppercase;
}

.profile-card h3 {
  margin-top: 12px;
}

.meter-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.meter-row {
  gap: 14px;
}

.meter-row span:first-child {
  width: 72px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meter {
  flex: 1;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px,
      transparent 14px
    ),
    #050507;
}

.meter span {
  display: block;
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--lime));
  transition: width 220ms ease;
}

.specs-section {
  background:
    repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 34px
    ),
    #050507;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.spec-grid article {
  min-height: 230px;
  padding: 22px;
}

.spec-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--paper);
  background: var(--accent-2);
  color: var(--black);
  font-weight: 1000;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #020203;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
}

.footer p:first-child {
  color: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    align-items: flex-end;
    min-height: 86svh;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 7, 0.16) 0%, rgba(5, 5, 7, 0.88) 64%, rgba(5, 5, 7, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 5, 7, 0.78), rgba(5, 5, 7, 0.12)),
      url("assets/aipi-catgirl-hero.png");
    background-position: 62% center;
    background-size: cover;
  }

  .product-grid,
  .showcase,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 310px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 84svh;
    padding: 94px 16px 44px;
  }

  .title-art {
    width: min(100%, 520px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 16px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }

  .product-card,
  .profile-card,
  .spec-grid article {
    padding: 20px;
  }

  .earphone-render {
    min-height: 280px;
  }

  .bud-left {
    left: 4%;
  }

  .bud-right {
    right: 4%;
  }

  .footer {
    display: grid;
  }
}
