@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --ink: #000000;
  --ink-2: #05070c;
  --ink-3: #0a1220;
  --mist: #8fa3bd;
  --paper: #f2f6fb;
  --white: #ffffff;
  --cyan: #1aa7ff;
  --cyan-bright: #4ec3ff;
  --cyan-deep: #0066cc;
  --cyan-glow: rgba(26, 167, 255, 0.4);
  --line: rgba(26, 167, 255, 0.18);
  --ok: #3dd68c;
  --radius: 18px;
  --max: 1120px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Ambient field ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__blob--1 {
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(26, 167, 255, 0.38), transparent 70%);
  top: -14%;
  right: -10%;
}

.ambient__blob--2 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(0, 80, 180, 0.32), transparent 70%);
  bottom: 8%;
  left: -14%;
  animation-delay: -6s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 20;
  padding: 1.1rem 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.4) 70%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mist);
  transition: color 0.2s ease;
}

.nav__wordmark:hover {
  color: var(--cyan-bright);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mist);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-deep));
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 0 24px var(--cyan-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px var(--cyan-glow);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  align-items: center;
  justify-content: center;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  padding: 1.5rem 0 4rem;
}

.hero__stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero__brand {
  margin-bottom: 1.5rem;
  position: relative;
}

.hero__logo {
  width: min(100%, 620px);
  height: auto;
  opacity: 0.95;
  mix-blend-mode: screen;
  filter: contrast(1.08) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.hero__tagline {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  opacity: 0.85;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  max-width: 14ch;
  margin-bottom: 0.95rem;
  color: var(--white);
}

.hero__lede {
  font-size: 1.08rem;
  color: var(--mist);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-deep));
  color: #000000;
  box-shadow: 0 10px 40px var(--cyan-glow);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(26, 167, 255, 0.45);
}

/* Hero mosaic — real-home installations */
.hero-mosaic {
  position: relative;
  min-height: 480px;
  isolation: isolate;
}

.hero-mosaic__shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(26, 167, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: #000;
}

.hero-mosaic__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.7s ease;
}

.hero-mosaic__shot:hover img {
  transform: scale(1.04);
}

.hero-mosaic__shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.85rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero-mosaic__shot--a {
  width: 68%;
  aspect-ratio: 4 / 3;
  top: 0;
  right: 0;
  z-index: 2;
  animation: float-a 7s ease-in-out infinite alternate;
}

.hero-mosaic__shot--b {
  width: 48%;
  aspect-ratio: 3 / 4;
  bottom: 6%;
  left: 0;
  z-index: 3;
  animation: float-b 8s ease-in-out infinite alternate;
}

.hero-mosaic__shot--c {
  width: 42%;
  aspect-ratio: 4 / 3;
  top: 42%;
  right: 8%;
  z-index: 1;
  opacity: 0.92;
  animation: float-c 6.5s ease-in-out infinite alternate;
}

.hero-mosaic__pulse {
  position: absolute;
  top: 18%;
  left: 42%;
  z-index: 4;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-mosaic__pulse span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 167, 255, 0.55);
  animation: mosaic-pulse 2.8s ease-out infinite;
}

.hero-mosaic__pulse span:nth-child(2) { animation-delay: 0.7s; }
.hero-mosaic__pulse span:nth-child(3) { animation-delay: 1.4s; }

@keyframes mosaic-pulse {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes float-a {
  from { transform: translateY(0); }
  to { transform: translateY(10px); }
}

@keyframes float-b {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-12px) rotate(0deg); }
}

@keyframes float-c {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }
.reveal-delay-4 { animation-delay: 0.48s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 0.9rem;
  color: var(--white);
}

.section__copy {
  color: var(--mist);
  max-width: 48ch;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

/* Device showcase */
.device {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.device__specs {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.device__specs li {
  font-size: 0.98rem;
  color: var(--mist);
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--cyan);
  background: rgba(26, 167, 255, 0.05);
}

.device__specs strong {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
}

.device__hero {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(26, 167, 255, 0.22);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.device__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.device__hero figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

/* Homes gallery */
.homes__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.homes__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 260px;
  border-radius: 2px;
}

.homes__shot img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.8s ease, filter 0.4s ease;
}

.homes__shot:hover img {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.06);
}

.homes__shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.15rem 1.1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  display: grid;
  gap: 0.2rem;
}

.homes__shot strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
}

.homes__shot span {
  font-size: 0.88rem;
  color: var(--mist);
}

.homes__shot--wide {
  min-height: 320px;
}

.homes__shot--wide img {
  min-height: 320px;
}

/* Privacy strip */
.privacy {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 167, 255, 0.05), transparent);
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.privacy__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.privacy__item p {
  color: var(--mist);
  font-size: 0.98rem;
}

.privacy__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(26, 167, 255, 0.1);
  border: 1px solid rgba(26, 167, 255, 0.25);
  color: var(--cyan);
}

/* Product */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product__panel {
  border-radius: var(--radius);
  padding: 1.75rem;
  background:
    linear-gradient(160deg, rgba(18, 39, 64, 0.9), rgba(6, 16, 31, 0.95));
  border: 1px solid var(--line);
}

.product__list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.product__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--mist);
  font-size: 0.98rem;
}

.product__list li strong {
  color: var(--paper);
  font-weight: 650;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.15);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Maintenance */
.maintain {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(26, 167, 255, 0.08), transparent 45%),
    transparent;
}

.appliance-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.appliance {
  text-align: center;
  padding: 1.1rem 0.6rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mist);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.appliance:hover {
  border-color: rgba(26, 167, 255, 0.4);
  color: var(--white);
  background: rgba(26, 167, 255, 0.06);
}

.appliance svg {
  display: block;
  margin: 0 auto 0.65rem;
  color: var(--cyan);
}

.fault-demo {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 18, 32, 0.85);
}

.fault-demo__side {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}

.fault-demo__side h3,
.fault-demo__result h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.fault-demo__side ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fault-demo__side li {
  font-size: 0.92rem;
  color: var(--mist);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.fault-demo__side li.is-active {
  border-color: rgba(26, 167, 255, 0.35);
  background: rgba(26, 167, 255, 0.08);
  color: var(--white);
}

.fault-demo__result {
  padding: 1.5rem;
}

.fault-bubble {
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(145deg, rgba(26, 167, 255, 0.12), rgba(26, 167, 255, 0.03));
  border: 1px solid rgba(26, 167, 255, 0.22);
}

.fault-bubble__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.fault-bubble p {
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.5;
}

.fault-bubble__meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--mist);
}

/* Existing devices */
.existing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.compare {
  display: grid;
  gap: 0.85rem;
}

.compare__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.compare__box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.compare__box--old {
  color: var(--mist);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 100, 100, 0.45);
}

.compare__box--new {
  color: var(--white);
  background: rgba(26, 167, 255, 0.08);
  border-color: rgba(26, 167, 255, 0.28);
}

.compare__arrow {
  color: var(--cyan);
  font-weight: 700;
}

/* CTA */
.cta {
  padding-bottom: 5rem;
}

.cta__panel {
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(26, 167, 255, 0.2), transparent 35%),
    linear-gradient(145deg, #001833, #000000 70%);
  border: 1px solid rgba(26, 167, 255, 0.22);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.cta__panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.cta__panel p {
  color: var(--mist);
  max-width: 42ch;
  margin-bottom: 1.35rem;
}

.cta__form {
  display: grid;
  gap: 0.75rem;
}

.cta__form input,
.cta__form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  padding: 0.85rem 1rem;
  font: inherit;
  outline: none;
}

.cta__form input:focus,
.cta__form textarea:focus {
  border-color: rgba(26, 167, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 167, 255, 0.12);
}

.cta__form textarea {
  min-height: 96px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--mist);
}

.form-note.is-success {
  color: var(--ok);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer__brand img {
  height: 40px;
  opacity: 0.85;
  mix-blend-mode: screen;
}

.footer__meta {
  color: var(--mist);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--mist);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--cyan);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__stage,
  .product,
  .existing,
  .fault-demo,
  .cta__panel,
  .homes__grid,
  .device {
    grid-template-columns: 1fr;
  }

  .fault-demo__side {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

  .appliance-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-mosaic {
    min-height: 420px;
    order: -1;
  }

  .hero__logo {
    width: min(100%, 480px);
  }

  .nav__links {
    display: none;
  }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(16px);
  }

  .nav__toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .appliance-rail {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .compare__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .hero {
    padding-top: 1rem;
  }
}
