@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("/fonts/inter-light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/fonts/inter-extrabold.woff2") format("woff2"); }

:root {
  --bg: #0f1620;
  --bg-alt: #121b26;
  --panel: #17212d;
  --line: #24384a;
  --fg: #eef2f6;
  --muted: #8a9db0;
  --cyan: #5fd4ff;
  --ink: #0b1118;
  --wa: #25d366;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
.defs { position: absolute; width: 0; height: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 22, 32, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 54px; height: auto; }
.brand-name { font-weight: 800; letter-spacing: 0.02em; }
.brand-name b { font-weight: 300; color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 1.05rem; padding: 14px 24px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25); }
.btn-small { font-size: 0.95rem; padding: 9px 16px; }
.wa { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-art { width: 100%; height: auto; }

/* The cable draws itself once, then the plug arrives */
.hero-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 2.2s ease-out both; }
.hero-plug { animation: plug 0.5s ease-out 1.9s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes plug { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-plug { animation: none; }
  .btn { transition: none; }
}

/* Sections */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section .wrap { display: grid; gap: 14px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-lead { margin: 0; color: var(--muted); max-width: 40em; }

/* Featured products */
.feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feat { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feat img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 583; object-fit: cover; }
.feat-body { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 20px 22px 24px; }
.feat-body p { margin: 0 0 8px; color: var(--muted); }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps p { margin: 0; color: var(--muted); }
.step-n {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--cyan); color: var(--cyan); font-weight: 800;
}

.closing-box { justify-items: center; text-align: center; }
.closing-box .btn { margin-top: 10px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot .brand-name { color: var(--fg); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-art { max-width: 420px; order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 680px) {
  .feats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .btn-small { width: auto; }
}

/* Product cards link to their pages */
.feat-img { display: block; }
.feat-body h3 a { text-decoration: none; }
.feat-body h3 a:hover { color: var(--cyan); }
.feat-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cyan); }

/* Product page */
.product .wrap { gap: 20px; }
.back { color: var(--muted); text-decoration: none; font-size: 0.95rem; justify-self: start; }
.back:hover { color: var(--cyan); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product-info { display: grid; gap: 16px; justify-items: start; }
.product-info h2 { font-size: 1.3rem; margin-top: 12px; }
.features { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.features li::marker { color: var(--cyan); }

.gallery-wrap { display: grid; gap: 12px; min-width: 0; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 20px; background: #000; border: 1px solid var(--line); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 1; display: grid; place-items: center; scroll-margin-top: 90px; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs a { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.thumbs a:hover, .thumbs a:focus-visible { border-color: var(--cyan); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }

.specs { display: grid; gap: 14px; margin-top: 24px; }
.specs h2 { font-size: 1.3rem; }
.specs dl { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs dl div { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 16px; padding: 12px 18px; }
.specs dl div:nth-child(odd) { background: var(--panel); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { margin: 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 760px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .specs dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
