:root {
  --bg0: #0c1017;
  --bg1: #141b26;
  --bg2: #1c2636;
  --ink: #e8eef7;
  --muted: #9aa8bc;
  --line: rgba(232, 238, 247, 0.12);
  --accent: #3db8ff;
  --accent-2: #7ee0c3;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 184, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(126, 224, 195, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a0e14 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

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

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.25rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2a8fd0);
  color: #041018;
}

.btn-primary:hover { color: #041018; }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.products {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.products > h2 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

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

.product {
  background: linear-gradient(180deg, rgba(28, 38, 54, 0.9), rgba(20, 27, 38, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.product:nth-child(1) { animation-delay: 0.05s; }
.product:nth-child(2) { animation-delay: 0.1s; }
.product:nth-child(3) { animation-delay: 0.15s; }
.product:nth-child(4) { animation-delay: 0.2s; }
.product:nth-child(5) { animation-delay: 0.25s; }
.product:nth-child(6) { animation-delay: 0.3s; }
.product:nth-child(7) { animation-delay: 0.35s; }
.product:nth-child(8) { animation-delay: 0.4s; }
.product:nth-child(9) { animation-delay: 0.45s; }
.product:nth-child(10) { animation-delay: 0.5s; }
.product:nth-child(11) { animation-delay: 0.55s; }
.product:nth-child(12) { animation-delay: 0.6s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.product-media {
  background: #0a0e14;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.45s ease;
}

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

.product-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.product-body h3 a {
  color: inherit;
}

.product-body h3 a:hover {
  color: var(--accent);
}

.product-media {
  display: block;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.chip {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.chip-more {
  border-color: rgba(126, 224, 195, 0.55);
  color: var(--accent-2);
}

.chip-market {
  border-color: rgba(61, 184, 255, 0.45);
}

.chip-yt {
  border-color: rgba(255, 107, 107, 0.45);
}

/* Product detail pages */
.product-page {
  display: block;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1.25rem 3.5rem;
  box-sizing: border-box;
}

.crumb {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.product-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0a0e14;
}

.product-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.product-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.product-hero-copy .lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.videos {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 — reliable across browsers */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-doc {
  background: rgba(20, 27, 38, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.product-doc p {
  margin: 0 0 0.9rem;
}

.product-doc p:last-child {
  margin-bottom: 0;
}

.product-doc ul,
.product-doc ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.product-doc li {
  margin-bottom: 0.35rem;
}

.product-doc strong {
  color: var(--ink);
}

.product-doc a {
  word-break: break-word;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a { color: var(--accent); }

@media (max-width: 640px) {
  .brand img { height: 42px; }
  .hero { padding-top: 2.25rem; }
  .nav-links { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product { animation: none; opacity: 1; transform: none; }
  .product-media img, .btn { transition: none; }
}
