@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080c16;
  --panel: #111827;
  --blue: #38bdf8;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #263449;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8%;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.logo span,
.hero h1 span {
  color: var(--blue);
}

.navbar > a:last-child {
  color: var(--muted);
}

.hero {
  min-height: 490px;
  padding: 105px 8% 85px;
  background:
    radial-gradient(ellipse at 80% 25%, #123454 0%, transparent 48%),
    var(--bg);
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -3px;
  margin-bottom: 22px;
}

.hero > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 28px;
}

.primary-btn {
  display: inline-block;
  background: var(--blue);
  color: #06111d;
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}

.primary-btn:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
}

.products-section {
  padding: 75px 8%;
}

.products-section h2,
.contact-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.filters button {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.filters button:hover,
.filters button.active {
  border-color: var(--blue);
  color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.product-icon {
  display: grid;
  place-items: center;
  height: 125px;
  background: #17263a;
  border-radius: 10px;
  font-size: 48px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.product-price {
  color: var(--blue) !important;
  font-size: 19px !important;
  font-weight: 800;
}

.order-btn {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  background: #123d35;
  color: #86efac;
  border: 1px solid #226b51;
  font-weight: 700;
  margin-top: 14px;
}

.order-btn:hover {
  background: #185444;
}

.contact-section {
  margin: 30px 8% 80px;
  padding: 55px 30px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-section p {
  color: var(--muted);
  margin-bottom: 22px;
}

footer {
  padding: 30px 8%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 5px 0;
}

@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .navbar {
    padding: 18px 5%;
  }

  .logo {
    font-size: 17px;
  }

  .hero {
    padding: 85px 6%;
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .products-section {
    padding: 55px 6%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin: 20px 5% 50px;
    padding: 38px 18px;
  }
}

/* USB configurator tabs */
.usb-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.usb-tab {
  flex: 1;
  min-width: 180px;
  padding: 14px 20px;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: #151b2b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.usb-tab.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #ffffff;
}

.usb-panel {
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #30394d;
  border-radius: 12px;
  background: #101624;
}

.usb-panel[hidden] {
  display: none !important;
}

.usb-panel select:disabled {
  opacity: 1;
  cursor: not-allowed;
}

/* Slide-out configurator drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.configurator-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1000;
  padding: 28px 20px;
  background: #101624;
  border-left: 1px solid #30394d;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.configurator-drawer[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.configurator-drawer .usb-panel {
  margin: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
}

.drawer-close {
  display: block;
  margin: 0 0 18px auto;
  width: 42px;
  height: 42px;
  border: 1px solid #46516a;
  border-radius: 50%;
  background: #1c2639;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .configurator-drawer,
  .drawer-backdrop {
    transition: none;
  }
}
