/*
Theme Name: ITEMPOWER Showcase
Theme URI: https://itempowersinc.com
Author: ITEMPOWER INC.
Description: Dark technology product showcase theme for ITEMPOWER INC. with editable product prices and component categories.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: itempower
*/

:root {
  --bg: #07090d;
  --panel: #10151b;
  --panel-2: #151c24;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9ba8b8;
  --cyan: #18d4e8;
  --amber: #d8aa67;
  --green: #68d391;
  --danger: #ef6f6c;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 212, 232, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(216, 170, 103, 0.12), transparent 28rem),
    linear-gradient(180deg, #080b10 0%, #07090d 58%, #0a0d11 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.86);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 204px;
  height: auto;
  display: block;
  background: transparent;
  border-radius: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(24, 212, 232, 0.46);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 800;
}

.brand-mark--logo {
  border: 0;
  background: transparent;
  overflow: hidden;
}

.brand-mark--logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-main {
  overflow: hidden;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 72px 0 54px;
}

.logo-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 72vw, 820px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #07090d;
}

.logo-hero__video,
.logo-hero__bg {
  position: absolute;
  inset: 0;
}

.logo-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.12) contrast(1.08);
}

.logo-hero__bg {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 48%, rgba(24, 212, 232, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(3, 6, 10, 0.78), rgba(3, 7, 12, 0.24) 46%, rgba(3, 6, 10, 0.72)),
    linear-gradient(180deg, rgba(3, 6, 10, 0.12), rgba(3, 6, 10, 0.74));
  opacity: 1;
}

.logo-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.82;
  background:
    radial-gradient(circle at 11% 43%, rgba(216, 170, 103, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 18% 66%, rgba(216, 170, 103, 0.78) 0 8px, transparent 9px),
    radial-gradient(circle at 74% 12%, rgba(216, 170, 103, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 42%, rgba(216, 170, 103, 0.86) 0 8px, transparent 9px),
    linear-gradient(28deg, transparent 0 35%, rgba(255, 255, 255, 0.42) 35.1% 35.26%, transparent 35.42%),
    linear-gradient(151deg, transparent 0 22%, rgba(255, 255, 255, 0.34) 22.1% 22.25%, transparent 22.42%),
    linear-gradient(104deg, transparent 0 62%, rgba(255, 255, 255, 0.3) 62.1% 62.24%, transparent 62.42%),
    linear-gradient(90deg, rgba(24, 212, 232, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 212, 232, 0.1) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, auto, 96px 96px, 96px 96px;
  animation: circuitShift 7s linear infinite;
}

.logo-hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(108deg, transparent 0 38%, rgba(24, 212, 232, 0.36) 48%, rgba(216, 170, 103, 0.22) 52%, transparent 62%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
  animation: scanPass 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.logo-hero::before,
.logo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo-hero::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(24, 212, 232, 0.18), transparent 22rem),
    linear-gradient(90deg, transparent 0 18%, rgba(24, 212, 232, 0.12) 36%, transparent 52% 100%);
  mix-blend-mode: screen;
  animation: energyPulse 3.4s ease-in-out infinite;
}

.logo-hero::after {
  background:
    linear-gradient(120deg, transparent 0 43%, rgba(255, 255, 255, 0.2) 44%, transparent 45%),
    linear-gradient(300deg, transparent 0 63%, rgba(24, 212, 232, 0.16) 64%, transparent 65%);
  opacity: 0.7;
  animation: lineSnap 4.2s steps(2, end) infinite;
}

.logo-hero__lockup {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: var(--radius);
  text-align: left;
}

.logo-hero__full-logo {
  width: min(650px, calc(100vw - 48px));
  height: auto;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.52));
  box-shadow: none;
}

@keyframes circuitShift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 96px 0, 0 96px;
  }
}

@keyframes scanPass {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  18%, 62% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes energyPulse {
  0%, 100% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes lineSnap {
  0%, 100% {
    transform: translate3d(-2%, 0, 0);
  }
  50% {
    transform: translate3d(2%, 0, 0);
  }
}

.hero-intro {
  padding: 54px 0 58px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 20%, rgba(24, 212, 232, 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(7, 9, 13, 0.98), rgba(9, 13, 18, 0.98));
}

.logo-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 34px;
  align-items: end;
}

.logo-hero h1 {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.82fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy,
.lead {
  max-width: 690px;
  color: #c7d0dc;
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
}

.button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #65f3cf);
  color: #061014;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d1219;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.signal-item {
  padding: 22px 18px;
  background: rgba(13, 18, 25, 0.82);
}

.signal-item strong {
  display: block;
  font-size: 22px;
}

.signal-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.category-card {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 180ms ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 28, 36, 0.92), rgba(12, 16, 22, 0.92));
  overflow: hidden;
}

.product-card__image {
  display: block;
  aspect-ratio: 16 / 11;
  background: #0f151d;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d4deea;
  font-size: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.price {
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
}

.availability {
  color: var(--muted);
  font-size: 13px;
}

.product-info {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.product-info div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.product-info dt,
.product-info dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.product-info dt {
  color: var(--muted);
}

.product-info dd {
  color: #e6edf6;
  font-weight: 700;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.about-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(24, 212, 232, 0.08), rgba(216, 170, 103, 0.08));
}

.section-dark {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 9, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.value-item,
.service-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(7, 9, 13, 0.52);
}

.value-item h3,
.service-item h3,
.contact-panel h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.value-item p,
.service-item p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.story-grid,
.contact-grid,
.split-media {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: center;
}

.story-grid h2,
.contact-grid h2,
.split-media h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.story-copy {
  display: grid;
  gap: 18px;
  color: #c7d0dc;
  font-size: 18px;
  line-height: 1.72;
}

.story-copy p {
  margin: 0;
}

.split-media--reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.media-frame,
.media-stack img,
.media-gallery figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.media-frame img,
.media-stack img,
.media-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  min-height: 420px;
}

.media-frame--tall img {
  aspect-ratio: 5 / 6;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 14px;
  align-items: end;
}

.media-stack img:first-child {
  aspect-ratio: 4 / 3;
}

.media-stack img:last-child {
  aspect-ratio: 4 / 5;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(24, 212, 232, 0.28);
  border-radius: 999px;
  color: #d9f9ff;
  background: rgba(24, 212, 232, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.media-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.media-gallery figure {
  position: relative;
  margin: 0;
}

.media-gallery .gallery-large {
  grid-row: span 2;
}

.media-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 8, 12, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.contact-section {
  scroll-margin-top: 96px;
}

.contact-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(21, 28, 36, 0.95), rgba(7, 9, 13, 0.95));
}

.contact-panel p + p {
  margin-top: 14px;
}

.page-hero {
  padding: 72px 0 30px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1.05fr;
  gap: 34px;
  align-items: start;
  padding: 56px 0 84px;
}

.detail-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f151d;
}

.detail-panel {
  display: grid;
  gap: 18px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  color: var(--muted);
  background: #06080b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
}

@media (max-width: 980px) {
  .hero-grid,
  .logo-hero__content,
  .about-grid,
  .product-detail,
  .story-grid,
  .contact-grid,
  .split-media,
  .split-media--reverse {
    grid-template-columns: 1fr;
  }

  .logo-hero {
    min-height: 0;
  }

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

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

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

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

  .media-gallery .gallery-large {
    grid-row: span 1;
  }
}

@media (max-width: 680px) {
  .site-header__inner,
  .section-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-menu {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .logo-hero {
    min-height: 460px;
  }

  .logo-hero__lockup {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 24px;
  }

  .hero h1,
  .page-title {
    font-size: 42px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

  .section-heading {
    display: grid;
  }

  .category-grid,
  .product-grid,
  .values,
  .service-grid,
  .media-gallery,
  .media-stack,
  .signal-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
