/* VoltHaus Technology — graphite & cyan electronics demo */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --vh-graphite: #141820;
  --vh-graphite-l: #1c2330;
  --vh-slate: #2a3344;
  --vh-cyan: #00d4ff;
  --vh-cyan-d: #00a8cc;
  --vh-text: #e8edf5;
  --vh-muted: #8b96a8;
  --vh-line: #2f3a4d;
  --vh-glow: rgba(0, 212, 255, 0.15);
  --vh-focus: #00d4ff;
  --vh-radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vh-text);
  background: var(--vh-graphite);
}

img { max-width: 100%; height: auto; display: block; }

.vh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vh-container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

.vh-concept {
  margin: 0;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vh-muted);
  padding: 0.4rem 1rem;
  background: var(--vh-graphite-l);
  border-bottom: 1px solid var(--vh-line);
}

/* Header */
.vh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 24, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vh-line);
}

.vh-header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.vh-logo {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--vh-text);
  text-decoration: none;
}

.vh-logo span { color: var(--vh-cyan); }

.vh-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--vh-line);
  background: var(--vh-graphite-l);
  border-radius: 8px;
  cursor: pointer;
}

.vh-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--vh-cyan);
  margin: 0 auto;
  border-radius: 1px;
}

@media (min-width: 900px) {
  .vh-menu-btn { display: none; }
}

.vh-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--vh-graphite-l);
  border-bottom: 1px solid var(--vh-line);
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}

.vh-nav.is-open { display: flex; }

@media (min-width: 900px) {
  .vh-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: none;
    padding: 0;
    gap: 1.5rem;
    background: transparent;
  }
}

.vh-nav a {
  color: var(--vh-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.vh-nav a:hover { color: var(--vh-cyan); }

.vh-nav-pill {
  border: 1px solid var(--vh-cyan) !important;
  color: var(--vh-cyan) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 999px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--vh-focus);
  outline-offset: 2px;
}

/* Hero */
.vh-hero {
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.vh-hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .vh-hero-inner { grid-template-columns: 1fr 1fr; }
}

.vh-hero-glow {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--vh-glow), transparent 70%);
  pointer-events: none;
}

.vh-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vh-cyan);
  border: 1px solid var(--vh-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.vh-hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.vh-lead { color: var(--vh-muted); margin: 0 0 1.5rem; max-width: 42ch; }

.vh-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.vh-hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--vh-muted);
}

.vh-hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  color: var(--vh-cyan);
}

.vh-hero-product {
  position: relative;
  margin: 0;
  background: var(--vh-graphite-l);
  border-radius: var(--vh-radius);
  border: 1px solid var(--vh-line);
  box-shadow: 0 0 60px var(--vh-glow);
}

.vh-hero-product img {
  width: 100%;
  aspect-ratio: 11/9;
  object-fit: cover;
  border-radius: var(--vh-radius);
}

/* Buttons */
.vh-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .vh-btn { transition: none; }
}

.vh-btn-cyan {
  background: var(--vh-cyan);
  color: var(--vh-graphite);
}

.vh-btn-cyan:hover:not(:disabled) {
  background: var(--vh-cyan-d);
  box-shadow: 0 0 24px var(--vh-glow);
}

.vh-btn-cyan:disabled,
.vh-btn-outline:disabled { opacity: 0.45; cursor: not-allowed; }

.vh-btn-outline {
  background: transparent;
  color: var(--vh-text);
  border: 1px solid var(--vh-line);
}

.vh-btn-outline:hover:not(:disabled) { border-color: var(--vh-cyan); color: var(--vh-cyan); }

.vh-btn-sm { padding: 0.55rem 1rem; font-size: 0.8125rem; width: 100%; margin-top: 0.75rem; }

/* Sections */
.vh-section { padding: 3.5rem 0; }

.vh-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.vh-section-sub { color: var(--vh-muted); margin: 0 0 1.5rem; }

/* Categories */
.vh-cats { background: var(--vh-graphite-l); border-block: 1px solid var(--vh-line); }

.vh-cat-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .vh-cat-row { grid-template-columns: repeat(5, 1fr); }
}

.vh-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--vh-graphite);
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
  text-decoration: none;
  color: var(--vh-text);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vh-cat:hover {
  border-color: var(--vh-cyan);
  box-shadow: 0 0 20px var(--vh-glow);
}

.vh-cat-icon { font-size: 1.5rem; }

/* Table */
.vh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
}

.vh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.vh-table th,
.vh-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--vh-line);
}

.vh-table thead th {
  background: var(--vh-graphite-l);
  color: var(--vh-cyan);
  font-family: "Space Grotesk", sans-serif;
}

.vh-table tbody th { color: var(--vh-muted); font-weight: 500; }

.vh-table tbody tr:last-child td,
.vh-table tbody tr:last-child th { border-bottom: none; }

.vh-table tbody tr:hover td { background: rgba(0, 212, 255, 0.04); }

/* Products */
.vh-products-section { background: var(--vh-graphite-l); }

.vh-products {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .vh-products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .vh-products { grid-template-columns: 1.2fr repeat(3, 1fr); }
}

.vh-product-card {
  position: relative;
  background: var(--vh-graphite);
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (prefers-reduced-motion: no-preference) {
  .vh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

.vh-product-featured {
  border-color: var(--vh-cyan);
  box-shadow: 0 0 30px var(--vh-glow);
}

@media (min-width: 1024px) {
  .vh-product-featured { grid-row: span 2; }
  .vh-product-featured img { aspect-ratio: 4/3; }
}

.vh-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--vh-cyan);
  color: var(--vh-graphite);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}

.vh-product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.vh-product-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.vh-product-desc { font-size: 0.8125rem; color: var(--vh-muted); margin: 0 0 0.5rem; }

.vh-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--vh-cyan);
  margin: 0;
}

.vh-price span { font-size: 0.6875rem; font-weight: 500; color: var(--vh-muted); }

/* Specs */
.vh-specs-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .vh-specs-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.vh-specs-grid > div p { color: var(--vh-muted); margin: 0; }

.vh-spec-list {
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
  overflow: hidden;
}

.vh-spec-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--vh-line);
  background: var(--vh-graphite-l);
}

.vh-spec-list > div:last-child { border-bottom: none; }

.vh-spec-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vh-cyan);
}

.vh-spec-list dd { margin: 0; font-size: 0.875rem; color: var(--vh-text); }

/* Delivery */
.vh-delivery-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .vh-delivery-grid { grid-template-columns: repeat(3, 1fr); }
}

.vh-delivery-card {
  background: var(--vh-graphite-l);
  border: 1px solid var(--vh-line);
  border-radius: var(--vh-radius);
  padding: 1.5rem;
}

.vh-delivery-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--vh-cyan);
  margin: 0 0 0.5rem;
}

.vh-delivery-card p { margin: 0; font-size: 0.875rem; color: var(--vh-muted); }

/* Support */
.vh-support {
  background: linear-gradient(180deg, var(--vh-graphite) 0%, var(--vh-graphite-l) 100%);
  border-top: 1px solid var(--vh-line);
}

.vh-support-inner { max-width: 640px; }

.vh-support-inner > p { color: var(--vh-muted); margin: 0 0 1.5rem; }

.vh-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .vh-form { grid-template-columns: 1fr 1fr; }
}

.vh-field-full { grid-column: 1 / -1; }

.vh-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--vh-muted);
}

.vh-field input,
.vh-field select,
.vh-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--vh-line);
  border-radius: 8px;
  background: var(--vh-graphite);
  color: var(--vh-text);
  font-family: inherit;
  font-size: 0.9375rem;
}

.vh-field textarea { min-height: 100px; resize: vertical; }

.vh-form > .vh-btn { grid-column: 1 / -1; justify-self: start; }

/* Footer */
.vh-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--vh-line);
  font-size: 0.875rem;
  color: var(--vh-muted);
}

.vh-footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .vh-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.vh-footer strong { color: var(--vh-text); display: block; margin-bottom: 0.5rem; }

.vh-footer p { margin: 0; }

/* Demo strip */
.vh-demo-strip {
  text-align: center;
  font-size: 0.6875rem;
  padding: 1rem;
  color: var(--vh-muted);
  background: var(--vh-graphite);
  border-top: 1px solid var(--vh-line);
}

.vh-demo-strip a {
  color: var(--vh-cyan);
  font-weight: 600;
  text-decoration: none;
}

.vh-demo-strip a:hover { text-decoration: underline; }
