:root {
  --bg: #030305;
  --surface: #0b0c10;
  --surface-2: #14161d;
  --surface-3: #1e212b;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --focus: #facc15;
  --danger: #f87171;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 0.75rem;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    backdrop-filter 0.2s;
}

.site-header.scrolled {
  background: rgba(3, 3, 5, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
}

.logo-word {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--surface-3);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.cart-toggle:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}

.cart-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 8rem 2rem 5rem;
  }
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(6, 182, 212, 0.08) 40%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 480px;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(139, 92, 246, 0.45);
}

.btn-ghost {
  border-color: var(--surface-3);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-legal {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .hero-visual {
    margin-top: 0;
    grid-template-rows: repeat(2, 240px);
  }
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-card-1 {
  grid-row: span 2;
}

.hero-card-2,
.hero-card-3 {
  grid-column: 2;
}

.collection {
  padding: 6rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f1117;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.8);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.product-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-description {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.add-btn:hover {
  background: var(--accent);
  color: #fff;
}

.add-btn .icon {
  width: 1rem;
  height: 1rem;
}

.about {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--surface-3);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .about-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.about-copy {
  max-width: 520px;
}

.about-body {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.open .cart-overlay {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--surface-3);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--surface-3);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}

.cart-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

.cart-close .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.qty-input {
  width: 2.5rem;
  text-align: center;
  padding: 0.35rem;
  border: 1px solid var(--surface-3);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.remove-btn {
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--surface-3);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cart-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.35);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--surface-3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-link {
  color: var(--muted);
  font-size: 0.85rem;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
