:root {
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --bg: #07111f;
  --bg-deep: #040914;
  --panel: rgba(12, 21, 39, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e6edf8;
  --muted: rgba(230, 237, 248, 0.62);
  --cyan: #8ce7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(77, 141, 255, 0.18), transparent 32%),
    radial-gradient(circle at 20% 20%, rgba(140, 231, 255, 0.12), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 78%);
  opacity: 0.35;
}

model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(140, 231, 255, 0.12);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(20px);
}

.preview-banner.is-hidden {
  display: none;
}

body.banner-dismissed .site-header {
  top: 0;
}

.preview-banner-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-banner-inner p {
  margin: 0;
  color: rgba(230, 237, 248, 0.72);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.preview-banner-close {
  border: 0;
  background: transparent;
  color: rgba(140, 231, 255, 0.78);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 42px;
  z-index: 20;
  backdrop-filter: blur(24px);
  background: rgba(8, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(140, 231, 255, 0.3);
  background: rgba(140, 231, 255, 0.1);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 700;
}

.brand-name,
.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a,
.footer-note {
  color: rgba(230, 237, 248, 0.6);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-section {
  padding-top: 56px;
  padding-bottom: 48px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.92), rgba(8, 14, 24, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(2, 6, 16, 0.45),
    0 0 0 1px rgba(140, 231, 255, 0.12),
    0 20px 60px rgba(77, 141, 255, 0.12);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  padding: 40px;
}

.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.8;
}

.hero-panel::before {
  left: 6%;
  top: 40px;
  width: 112px;
  height: 112px;
  background: rgba(140, 231, 255, 0.18);
}

.hero-panel::after {
  right: 8%;
  bottom: 48px;
  width: 144px;
  height: 144px;
  background: rgba(77, 141, 255, 0.14);
}

.hero-copy,
.hero-stage,
.section-head,
.card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-eyebrow,
.serial {
  margin: 0 0 20px;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 231, 255, 0.15);
  background: rgba(140, 231, 255, 0.06);
  color: rgba(140, 231, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(52px, 7vw, 104px);
  background: linear-gradient(135deg, #f5fbff 0%, #9fdcff 55%, #d7e8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--text);
  border: 1px solid rgba(140, 231, 255, 0.2);
  background: rgba(140, 231, 255, 0.1);
}

.button-secondary {
  color: rgba(230, 237, 248, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stage {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 16px;
}

.hero-stage .serial {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(140, 231, 255, 0.55);
}

.section-block {
  padding: 24px 0 0;
}

.section-block-last {
  padding-bottom: 80px;
}

.section-head {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-eyebrow {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(140, 231, 255, 0.58);
}

.section-head h2 {
  font-size: clamp(36px, 4vw, 54px);
  color: #fff;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  overflow: hidden;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(13, 22, 39, 0.92), rgba(8, 14, 24, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(2, 6, 16, 0.45);
}

.selector-card {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.selector-card:hover,
.selector-card.is-active {
  transform: translateY(-4px);
  border-color: rgba(140, 231, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(2, 6, 16, 0.45),
    0 0 0 1px rgba(140, 231, 255, 0.18);
}

.card.featured {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(2, 6, 16, 0.45),
    0 0 0 1px rgba(140, 231, 255, 0.16),
    0 30px 80px rgba(77, 141, 255, 0.16);
}

.viewer-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 300px;
}

.card-viewer-frame {
  height: 220px;
}

.viewer-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero-stage .viewer-frame {
  height: 380px;
}

.card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 8px 4px;
}

.card-serial {
  margin: 0;
  color: rgba(140, 231, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 231, 255, 0.2);
  background: rgba(140, 231, 255, 0.08);
  color: rgba(230, 237, 248, 0.88);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 231, 255, 0.15);
  background: rgba(140, 231, 255, 0.05);
  color: rgba(230, 237, 248, 0.72);
  font-size: 11px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060d18;
}

@media (max-width: 1024px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1280px);
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-panel {
    padding: 20px;
  }

  .preview-banner-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }

  .nav {
    gap: 14px;
  }

  .nav a,
  .footer-note,
  .brand-name {
    letter-spacing: 0.16em;
  }

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

  .viewer-frame,
  .hero-stage .viewer-frame {
    height: 220px;
  }

  .card-viewer-frame {
    height: 220px;
  }

  .header-inner,
  .footer-inner {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }
}
