@font-face {
  font-family: ChroomHeavy;
  src: url("../assets/fonts/heavy.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: ChroomMedium;
  src: url("../assets/fonts/medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: ChroomSemi;
  src: url("../assets/fonts/semibold.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #030305;
  --panel: rgba(17, 18, 22, 0.72);
  --line: #2e3031;
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f6fbff;
  --muted: #969da3;
  --accent: #9a35ca;
  --accent-strong: #c751ff;
  --green: #59e970;
  --cyan: #7ddde8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: ChroomMedium, Arial, sans-serif;
  background:
    linear-gradient(120deg, rgba(154, 53, 202, 0.18), transparent 34%),
    linear-gradient(245deg, rgba(125, 221, 232, 0.12), transparent 38%),
    url("../assets/images/bg.png") center top / cover no-repeat,
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(1560px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  animation: headerIn 700ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 184px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.landing {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero {
  min-height: calc(100svh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  animation: contentIn 780ms ease 120ms both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.95rem;
}

.eyebrow span {
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--accent-strong));
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: ChroomHeavy, Arial, sans-serif;
  font-size: 5.6rem;
  line-height: 1.02;
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c7ccd1;
  font-size: 1.2rem;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 8px;
  font-family: ChroomSemi, Arial, sans-serif;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #6d268f, var(--accent-strong));
  box-shadow: 0 18px 48px rgba(154, 53, 202, 0.32);
}

.button-primary:hover {
  box-shadow: 0 24px 62px rgba(154, 53, 202, 0.42);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
  color: #d7dde2;
}

.button-secondary:hover {
  border-color: rgba(125, 221, 232, 0.45);
  background: rgba(125, 221, 232, 0.08);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 650px);
  margin-top: 40px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.hero-signals div {
  min-height: 92px;
  padding: 18px;
  background: rgba(9, 10, 13, 0.72);
}

.hero-signals strong,
.feature-band strong {
  display: block;
  font-family: ChroomSemi, Arial, sans-serif;
}

.hero-signals span,
.feature-band p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  animation: visualIn 900ms ease 220ms both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 5%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  transform: skewY(-3deg);
  animation: scanPanel 6s linear infinite;
}

.product-image {
  position: relative;
  z-index: 1;
  width: min(620px, 92%);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
  animation: floatVisual 6s ease-in-out infinite;
}

.visual-label,
.room-status {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 6, 9, 0.72);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.visual-label {
  padding: 14px 16px;
}

.visual-label span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.visual-label strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-strong);
  font-family: ChroomSemi, Arial, sans-serif;
  font-size: 1.35rem;
}

.visual-label-top {
  top: 8%;
  right: 8%;
}

.visual-label-bottom {
  bottom: 12%;
  left: 5%;
}

.room-status {
  right: 2%;
  bottom: 25%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  color: #dfe8ed;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(89, 233, 112, 0.12);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--line-soft);
  overflow: hidden;
  animation: contentIn 780ms ease 320ms both;
}

.feature-band div {
  padding: 24px;
  background: rgba(7, 8, 11, 0.78);
}

.feature-band span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-family: ChroomSemi, Arial, sans-serif;
}

.feature-band p {
  margin-bottom: 0;
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes visualIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatVisual {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(89, 233, 112, 0.12);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(89, 233, 112, 0.04);
  }
}

@keyframes scanPanel {
  from {
    background-position: -360px 0, 0 0;
  }
  to {
    background-position: 360px 0, 0 0;
  }
}

@media (max-width: 1180px) {
  h1 {
    font-size: 4.4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .landing {
    width: min(100% - 24px, 1560px);
  }

  .site-header {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 14px;
  }

  .brand {
    width: 146px;
  }

  .site-nav {
    justify-self: stretch;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    padding: 0 8px;
    justify-content: center;
    font-size: 0.86rem;
  }

  .landing {
    padding-top: 42px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-signals,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-label-top {
    top: 3%;
    right: 0;
  }

  .visual-label-bottom {
    bottom: 6%;
    left: 0;
  }

  .room-status {
    right: 0;
    bottom: 23%;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.45rem;
  }

  .hero-visual {
    min-height: 340px;
  }

  .visual-label strong {
    font-size: 1rem;
  }

  .visual-label,
  .room-status {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
