:root {
  --brand-red: #dc2626;
  --brand-gold: #fbbf24;
}

body {
  position: relative;
  background-color: #09090b;
  color: #fafafa;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
}

/* Topbar ticker */
.ticker-wrap {
  overflow: hidden;
  background: rgba(9, 9, 11, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Navigation — transparent until scroll */
[data-nav] {
  background: transparent;
  border-bottom: 1px solid transparent;
}

[data-nav].is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-mobile-menu] {
  z-index: 9999;
  background: #09090b;
}

[data-mobile-menu].is-open {
  display: flex;
}

/* Section typography — aggressive */
.section-bar {
  width: 48px;
  height: 3px;
  background: var(--brand-red);
  margin: 0 auto 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  line-height: 0.95;
}

.section-subtitle {
  text-align: center;
  color: #71717a;
  max-width: 40rem;
  margin: 1rem auto 0;
  line-height: 1.65;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Cards */
.category-card,
.product-card {
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
}

.category-card:hover,
.product-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.category-card:hover {
  transform: translateY(-6px);
}

/* Hero */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(to right, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.65) 45%, rgba(9, 9, 11, 0.75) 100%),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.4) 0%, rgba(9, 9, 11, 0.85) 100%);
}

/* Section decorative backgrounds */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  transform: scale(1.05);
}

.section-bg:has(.section-bg-overlay-photo) img {
  opacity: 0.32;
  object-position: center;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.85), rgba(9, 9, 11, 0.92));
}

.section-bg-overlay-light {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.72);
}

.section-bg-overlay-heavy {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.88);
}

.section-bg-overlay-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.78) 50%, rgba(9, 9, 11, 0.92) 100%),
    linear-gradient(to right, rgba(9, 9, 11, 0.85) 0%, rgba(9, 9, 11, 0.55) 100%);
}

/* Tech tiles */
.tech-tile {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.group\/drop:hover .nav-dropdown,
.group\/drop:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
