*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #181818;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8e8;
  --text-muted: #666;
  --text-dim: #444;
  --accent: #c8f542;
  --accent-dim: rgba(200,245,66,0.12);
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.logo-wrap img {
  height: 52px;
  width: auto;
  filter: invert(1) brightness(0.9);
  display: block;
}

.header-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.header-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header-meta a:hover { color: var(--accent); }

nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

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

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.back-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.product-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.tagline {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.tagline p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.9;
  max-width: 560px;
}

.tagline p strong {
  color: var(--text);
  font-weight: 400;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.products,
.software,
.about-content {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.product-grid,
.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-link,
.software-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.product-card,
.software-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.25s;
  position: relative;
  cursor: pointer;
}

.product-card:hover,
.software-card:hover { background: var(--bg2); }

.product-img,
.software-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform 0.4s ease;
}

.software-card-image {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: brightness(0.95);
}

.software-card-image-contained {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

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

.product-img .product-badge {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.6rem;
}

.product-info,
.software-info {
  flex: 1;
}

.product-name,
.software-name {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.product-desc,
.software-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.product-spec,
.software-spec {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-footer,
.software-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-price,
.software-price {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.btn-buy.disabled {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h1 {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.blds-page .product-price-large {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.product-hero-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.95);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-gallery.is-single-image {
  gap: 0;
}

.product-gallery.is-single-image .product-gallery-thumbs,
.product-gallery.is-single-image .product-gallery-arrow {
  display: none;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.product-gallery-thumb {
  width: 100%;
  padding: 0.3rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, opacity 0.2s;
}

.product-gallery-thumb:hover {
  border-color: var(--border-hover);
  opacity: 1;
  transform: translateY(-1px);
}

.product-gallery-thumb.is-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  opacity: 1;
}

.product-gallery-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg3);
  padding: 0.35rem;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.88);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.product-gallery-arrow:hover,
.product-gallery-arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(10, 10, 10, 0.96);
  outline: none;
}

.product-gallery-arrow.prev {
  left: 0.75rem;
}

.product-gallery-arrow.next {
  right: 0.75rem;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.software-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.software-icon-name {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.software-tag {
  display: inline-flex;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(200,245,66,0.2);
}

.product-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.product-title {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.2;
}

.product-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-price-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-price-large {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.price-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.btn-buy {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
  width: 100%;
  text-align: center;
}

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

.stock-indicator {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.stock-indicator.in-stock {
  color: var(--accent);
}

.stock-indicator.low-stock {
  color: #ff9500;
}

.info-section {
  margin-bottom: 3rem;
}

.info-section h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.info-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.accent-link {
  color: var(--accent);
  text-decoration: none;
}

.accent-link:hover,
.accent-link:focus-visible {
  text-decoration: underline;
}

.info-section ul {
  list-style: none;
  padding-left: 0;
}

.info-section li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.info-section li::before {
  content: '·';
  position: absolute;
  left: 0.5rem;
  color: var(--accent);
  font-weight: bold;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.spec-item {
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.spec-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.spec-value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-contact {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.9;
  width: min(50%, 680px);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-social-link {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social-link::before {
  content: '↗';
  color: var(--text-dim);
}

.footer-right {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.75rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--border-hover);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.contact-form button {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.15s;
  align-self: stretch;
  width: 100%;
}

.contact-form button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { width: min(100%, 680px); }
  .footer-right { text-align: left; }
  .product-gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-gallery-arrow {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: center; }
  .logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .logo-wrap img { height: 78px; }
  .header-meta { text-align: center; }
  .nav-links {
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }
  .product-grid,
  .software-grid,
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-contact,
  .contact-form { width: 100%; max-width: 100%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

header { animation: fadeUp 0.6s ease both; }
.tagline { animation: fadeUp 0.6s 0.1s ease both; }
.products { animation: fadeUp 0.6s 0.2s ease both; }
.software { animation: fadeUp 0.6s 0.3s ease both; }
.about-content { animation: fadeUp 0.6s 0.1s ease both; }
.product-detail { animation: fadeUp 0.6s 0.1s ease both; }
footer { animation: fadeUp 0.6s 0.2s ease both; }

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

[id^='product-component-'] {
  width: 100% !important;
}

[id^='product-component-'] iframe {
  width: 100% !important;
}

.shopify-buy__btn {
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.8rem 2rem !important;
  background: var(--accent) !important;
  color: #0a0a0a !important;
  border: none !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
