:root {
  --bg: #070709;
  --bg-elev: #101014;
  --bg-card: #12121a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f8;
  --muted: #9898a8;
  --accent: #6b9fff;
  --accent-dim: #4a7ae8;
  --violet: #9d7cff;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  --shadow-glow: 0 0 80px rgba(107, 159, 255, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.orb--1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(107, 159, 255, 0.45), transparent 70%);
  animation: orb-float 18s var(--ease-out) infinite alternate;
}

.orb--2 {
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(157, 124, 255, 0.35), transparent 70%);
  animation: orb-float 22s var(--ease-out) infinite alternate-reverse;
}

.orb--3 {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  top: 42%;
  left: 35%;
  background: radial-gradient(circle, rgba(107, 159, 255, 0.2), transparent 65%);
  animation: orb-float 26s var(--ease-out) infinite alternate;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, -20px) scale(1.05);
  }
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand__mark--fallback {
  background: linear-gradient(140deg, var(--accent), var(--violet));
  box-shadow: 0 4px 24px rgba(107, 159, 255, 0.45);
  animation: mark-pulse 4s ease-in-out infinite;
}

@keyframes mark-pulse {
  0%,
  100% {
    box-shadow: 0 4px 24px rgba(107, 159, 255, 0.45);
  }
  50% {
    box-shadow: 0 6px 36px rgba(157, 124, 255, 0.35);
  }
}

.brand__name {
  font-size: 1.08rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}

.link-ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link-ghost:hover {
  color: var(--text);
}

.link-ghost--accent {
  color: var(--accent);
}

.link-ghost--accent:hover {
  color: #a8c6ff;
}

.hero {
  position: relative;
  padding: clamp(40px, 8vw, 72px) 0 0;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-bottom: clamp(100px, 18vw, 160px);
}

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48vh, 420px);
  z-index: 1;
  overflow: hidden;
}

.hero__wave-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 160%;
  min-width: 1440px;
  height: 100%;
  transform: translateX(-50%);
}

.hero__wave-path {
  transform-origin: center bottom;
}

.hero__wave-path--back {
  animation: wave-shift 10s ease-in-out infinite alternate;
}

.hero__wave-path--front {
  animation: wave-shift 7s ease-in-out infinite alternate-reverse;
  opacity: 0.98;
}

@keyframes wave-shift {
  0% {
    transform: translateX(-2%) scaleY(1);
  }
  100% {
    transform: translateX(2%) scaleY(1.03);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 0%, #c8d7f0 45%, #9eb9e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 auto 32px;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.hero__hint {
  margin: 24px auto 0;
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.92;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  box-shadow: 0 12px 40px rgba(107, 159, 255, 0.35);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: 0 16px 48px rgba(107, 159, 255, 0.45);
}

.btn--glow::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.btn--glow:hover:not(:disabled)::after {
  opacity: 1;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(107, 159, 255, 0.45);
  box-shadow: none;
}

.btn--outline:hover:not(:disabled) {
  background: rgba(107, 159, 255, 0.1);
  border-color: rgba(107, 159, 255, 0.65);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn__label {
  position: relative;
  z-index: 1;
}

.btn__progress {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.btn.is-loading .btn__progress {
  animation: btn-shine 1.1s ease-in-out infinite;
}

@keyframes btn-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-head--center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.shots {
  padding: clamp(56px, 10vw, 100px) 0;
}

.shots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

@media (max-width: 820px) {
  .shots__grid {
    grid-template-columns: 1fr;
  }
}

.shot-card {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), transparent 42%), var(--bg-card);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.shot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 159, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 60px rgba(107, 159, 255, 0.1);
}

.shot-card__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a10;
}

.shot-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.shot-card__placeholder code {
  color: var(--text);
  font-size: 0.88em;
}

.shot-card__cap {
  padding: 16px 20px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.install {
  padding: clamp(56px, 10vw, 110px) 0 clamp(72px, 12vw, 120px);
  background: linear-gradient(180deg, transparent, rgba(107, 159, 255, 0.04) 40%, transparent);
}

.install__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  position: relative;
}

@media (max-width: 900px) {
  .install__track {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

.install__step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(16, 16, 20, 0.85);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s ease, transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.install__step:hover {
  border-color: rgba(107, 159, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (min-width: 901px) {
  .install__track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(107, 159, 255, 0.35), rgba(157, 124, 255, 0.35), transparent);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
  }

  .install__step {
    flex-direction: column;
    text-align: center;
    align-items: center;
    z-index: 1;
  }
}

.install__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(107, 159, 255, 0.12);
  border: 1px solid rgba(107, 159, 255, 0.22);
}

.install__body {
  min-width: 0;
}

.install__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}

.install__name {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.install__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.install__text strong {
  color: #d4dcf0;
}

.install__cta {
  margin-top: clamp(40px, 6vw, 56px);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner p {
  margin: 0;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  max-width: min(420px, calc(100% - 32px));
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-strong);
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
  opacity: 0;
}

.toast:not([hidden]) {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--ok {
  border-color: rgba(74, 222, 128, 0.35);
}

.toast--error {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}
