/* KSN — How to connect WiFi products to home WiFi */
:root {
  --bg: #0a0e14;
  --bg-2: #121821;
  --ink: #f2f5f8;
  --muted: #8b97a8;
  --line: rgba(255, 255, 255, 0.1);
  --amber: #e0a01a;
  --amber-soft: rgba(224, 160, 26, 0.16);
  --teal: #2bb7a9;
  --teal-soft: rgba(43, 183, 169, 0.16);
  --coral: #e07a4a;
  --coral-soft: rgba(224, 122, 74, 0.16);
  --sky: #4aa3d9;
  --sky-soft: rgba(74, 163, 217, 0.16);
  --safe: #2f9d6a;
  --safe-soft: rgba(47, 157, 106, 0.16);
  --max: 1120px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 90% -10%, rgba(43, 183, 169, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(224, 160, 26, 0.1), transparent 45%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.25rem 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-mark span { color: var(--amber); }
.top-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.top-link:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 72svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #070a10;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  transform: scale(1.05);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1%, -1%, 0); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 10, 16, 0.96) 0%, rgba(7, 10, 16, 0.78) 48%, rgba(7, 10, 16, 0.4) 100%),
    linear-gradient(180deg, rgba(7, 10, 16, 0.25) 0%, rgba(7, 10, 16, 0.9) 100%);
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7rem 0 3.5rem;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.hero-brand em {
  font-style: normal;
  color: var(--amber);
  display: block;
  font-weight: 600;
}
.hero-lead {
  margin: 0 0 1.5rem;
  color: #c5ceda;
  font-size: 1.08rem;
  max-width: 32rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber {
  background: var(--amber);
  color: #1a1204;
}
.btn-amber:hover { background: #efb230; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); }
.btn-teal {
  background: var(--teal);
  color: #041412;
}
.btn-teal:hover { background: #36c9ba; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 4.25rem 0; }
.section-muted {
  background:
    radial-gradient(ellipse 55% 50% at 8% 0%, var(--amber-soft), transparent 55%),
    var(--bg-2);
}
.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.7rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Product name chips ──────────────────────────────── */
.name-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 9.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.chip strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.chip span {
  color: var(--muted);
  font-size: 0.82rem;
}
.chip-motor { border-color: rgba(224, 160, 26, 0.45); box-shadow: inset 0 0 0 1px var(--amber-soft); }
.chip-relay { border-color: rgba(43, 183, 169, 0.45); box-shadow: inset 0 0 0 1px var(--teal-soft); }
.chip-security { border-color: rgba(224, 122, 74, 0.45); box-shadow: inset 0 0 0 1px var(--coral-soft); }

/* ── Guide steps ─────────────────────────────────────── */
.guide-step {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.guide-step:last-of-type {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}
.guide-num {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.guide-step[data-accent="amber"] .guide-num { color: var(--amber); }
.guide-step[data-accent="teal"] .guide-num { color: var(--teal); }
.guide-step[data-accent="coral"] .guide-num { color: var(--coral); }
.guide-step[data-accent="sky"] .guide-num { color: var(--sky); }
.guide-step[data-accent="safe"] .guide-num { color: var(--safe); }

.guide-copy h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.guide-copy p {
  margin: 0 0 0.75rem;
  color: #d5dde8;
  font-size: 1.02rem;
}
.guide-copy ol,
.guide-copy ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #d5dde8;
  font-size: 0.98rem;
}
.guide-copy li { margin: 0.4rem 0; }
.guide-note {
  margin: 0.95rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: #c9d2de;
  font-size: 0.92rem;
}
.guide-step[data-accent="teal"] .guide-note {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}
.guide-step[data-accent="coral"] .guide-note {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}
.guide-step[data-accent="sky"] .guide-note {
  border-left-color: var(--sky);
  background: var(--sky-soft);
}
.guide-step[data-accent="safe"] .guide-note {
  border-left-color: var(--safe);
  background: var(--safe-soft);
}

.guide-shot {
  width: min(100%, 340px);
  justify-self: end;
  background: #10151d;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}
.guide-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ── Options row (browser / QR) ──────────────────────── */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.option-card {
  padding: 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.option-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.option-card code,
.url-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(224, 160, 26, 0.18);
  color: #f3d48a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 700;
}
.qr-panel {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.9rem;
  border-radius: 0.6rem;
  background: #fff;
  width: min(100%, 180px);
}
.qr-panel img {
  width: 148px;
  height: 148px;
}
.qr-panel span {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* ── CTA / footer ────────────────────────────────────── */
.cta-band {
  padding: 4rem 0 5rem;
  text-align: center;
  background:
    linear-gradient(180deg, transparent, rgba(43, 183, 169, 0.08)),
    var(--bg);
}
.cta-band h2 { margin-bottom: 0.7rem; }
.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  color: var(--muted);
}
.cta-band .cta-row { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .guide-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .guide-shot {
    justify-self: center;
    width: min(100%, 280px);
  }
  .option-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; padding-bottom: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy { animation: none; }
}
