:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-alt: rgba(10, 18, 34, 0.82);
  --card: rgba(14, 24, 44, 0.75);
  --card-strong: rgba(16, 28, 50, 0.92);
  --text: #f2f6ff;
  --muted: #c1cce4;
  --line: rgba(160, 180, 230, 0.18);
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --accent-2: #a78bfa;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.18), transparent 26%),
    linear-gradient(180deg, #07111f 0%, #0b1630 55%, #050a14 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.bg-blob {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.bg-blob-a {
  width: 240px;
  height: 240px;
  top: 9%;
  left: -70px;
  background: rgba(56, 189, 248, 0.16);
}

.bg-blob-b {
  width: 300px;
  height: 300px;
  top: 30%;
  right: -120px;
  background: rgba(167, 139, 250, 0.14);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(160, 180, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 180, 230, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
}

.topbar,
.header {
  padding: 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.3), rgba(167, 139, 250, 0.32));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px 999px 18px 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top-width: 3px;
}

.brand-lock {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

.brand-lock::before,
.brand-lock::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.brand-lock::before {
  top: -8px;
  width: 12px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.brand-lock::after {
  inset: 3px 2px 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar {
  padding: 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 54px 0 24px;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.callout h2,
.contact h2,
.card-body h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lead,
.section-text,
.card-body p,
.callout p,
.feature-card p,
.newsletter p {
  color: var(--muted);
  margin: 0;
}

.lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 180, 230, 0.12);
  color: #edf3ff;
  font-weight: 600;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-2));
  color: #07111f;
}

.btn-secondary {
  background: rgba(11, 22, 48, 0.82);
  border-color: var(--line);
}

.stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats li,
.feature-card,
.hero-card,
.callout,
.contact,
.intro,
.product-card,
.category-card,
.newsletter {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats li {
  border-radius: 22px;
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.stats span,
.mini-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 20%, rgba(125, 211, 252, 0.18), transparent 30%),
    radial-gradient(circle at 70% 18%, rgba(167, 139, 250, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(15, 26, 48, 0.95), rgba(6, 11, 24, 0.96));
  border: 1px solid rgba(160, 180, 230, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-room {
  position: absolute;
  inset: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(26, 42, 76, 0.5), rgba(10, 16, 30, 0.3)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-room::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 42%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(156, 198, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-room::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 16, 0.8));
}

.room-window {
  position: absolute;
  left: 32px;
  top: 34px;
  width: 46%;
  height: 130px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(125, 211, 252, 0.03)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.room-sofa {
  position: absolute;
  left: 18px;
  bottom: 58px;
  width: 46%;
  height: 108px;
  border-radius: 28px 28px 18px 18px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.28), rgba(56, 189, 248, 0.12));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.room-sofa::before,
.room-sofa::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 26%;
  height: 24px;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.06);
}

.room-sofa::before { left: 10%; }
.room-sofa::after { right: 10%; }

.room-table {
  position: absolute;
  bottom: 66px;
  width: 18%;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.room-table-left { left: 55%; }
.room-table-right { left: 76%; height: 54px; bottom: 70px; }

.door {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 32%;
  height: calc(100% - 28px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.door-panel {
  position: absolute;
  inset: 24px 18px 0 18px;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(41, 56, 88, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.door::before {
  content: "";
  position: absolute;
  inset: 34px 34px 12px 34px;
  border-radius: 18px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lock-body {
  position: relative;
  width: 112px;
  height: 270px;
  margin-bottom: 34px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 32, 57, 0.96), rgba(8, 12, 24, 0.96));
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.lock-screen {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.85), rgba(59, 130, 246, 0.62));
}

.lock-screen::after {
  content: "8841";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #04111f;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lock-handle {
  position: absolute;
  top: 88px;
  left: 50%;
  width: 128px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.92), rgba(148, 163, 184, 0.9));
}

.lock-handle::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.98), rgba(148, 163, 184, 0.88));
}

.lock-fingerprint,
.lock-card {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lock-fingerprint {
  top: 126px;
  background:
    radial-gradient(circle at 50% 40%, rgba(125, 211, 252, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(15, 118, 110, 0.35), rgba(15, 23, 42, 0.6));
}

.lock-card {
  bottom: 20px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.4), rgba(15, 23, 42, 0.82));
}

.lock-card::after {
  content: "APP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
}

.hero-badge {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.82);
  border: 1px solid rgba(160, 180, 230, 0.2);
  color: #eef4ff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.hero-badge-top { top: 16px; left: 16px; }
.hero-badge-bottom { right: 16px; bottom: 18px; }
.hero-badge-left { left: -8px; bottom: 90px; }
.hero-badge-right { right: -8px; top: 96px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.product-grid,
.category-grid {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  border-radius: 24px;
  padding: 18px;
  overflow: hidden;
}

.product-hero {
  grid-column: span 2;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-visual {
  position: relative;
  margin: 16px 0 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 20, 38, 0.95), rgba(8, 12, 22, 0.98));
  min-height: 178px;
  overflow: hidden;
}

.product-visual-main {
  display: grid;
  place-items: center;
}

.product-door {
  position: absolute;
  inset: 22px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(35, 48, 75, 0.96), rgba(12, 18, 32, 0.95));
}

.product-door::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.product-lock {
  position: relative;
  width: 96px;
  height: 142px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 32, 57, 0.98), rgba(8, 12, 24, 0.98));
  border: 1px solid rgba(125, 211, 252, 0.18);
}

.product-lock .sensor {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 42px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.92), rgba(59, 130, 246, 0.56));
}

.product-lock .handle {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 116px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 248, 255, 0.95), rgba(148, 163, 184, 0.88));
}

.product-visual-alt::before {
  content: "";
  position: absolute;
  inset: 26px 28px 26px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(167, 139, 250, 0.1));
}

.product-visual-alt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(35, 48, 75, 0.92), rgba(8, 12, 24, 0.92));
}

.product-visual-alt.two::after { width: 92px; }
.product-visual-alt.three::after { width: 72px; }
.product-visual-alt.four::after { width: 102px; }

.product-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
  min-height: 180px;
  display: flex;
  align-items: end;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 16, 33, 0.02), rgba(7, 16, 33, 0.82)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.11), transparent 35%);
}

.category-card span {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.78);
  border: 1px solid rgba(160, 180, 230, 0.16);
  color: #f4f7ff;
  font-weight: 700;
}

.cat-windows { background-color: rgba(59, 130, 246, 0.22); }
.cat-wood { background-color: rgba(148, 106, 70, 0.25); }
.cat-faceid { background-color: rgba(167, 139, 250, 0.24); }
.cat-glass { background-color: rgba(20, 184, 166, 0.18); }
.cat-hotel { background-color: rgba(251, 191, 36, 0.18); }

.callout,
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.callout {
  border-radius: 28px;
  margin-top: 22px;
  padding: 28px;
}

.newsletter {
  margin-top: 22px;
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-height: 48px;
  min-width: min(360px, 100%);
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(160, 180, 230, 0.2);
  background: rgba(6, 11, 24, 0.72);
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: #9cb0d6;
}

.contact {
  border-radius: 28px;
  margin-top: 22px;
  padding: 28px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .hero,
  .intro,
  .features,
  .callout,
  .contact {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 30px;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .stats,
  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .actions,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section,
  .callout,
  .contact,
  .hero-card,
  .feature-card,
  .stats li {
    border-radius: 22px;
  }
}

@media (max-width: 460px) {
  .stats,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }
}
