:root {
  --bg: #0c1014;
  --bg-elev: #141a21;
  --ink: #f2efe8;
  --muted: #a8b0b8;
  --line: rgba(242, 239, 232, 0.12);
  --accent: #e8a23a;
  --accent-soft: rgba(232, 162, 58, 0.16);
  --signal: #d95c3a;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(232, 162, 58, 0.14), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(217, 92, 58, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0e12 0%, var(--bg) 40%, #0b1218 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--pad), 820px);
}

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(12, 16, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 16, 20, 0.9);
}

.topbar__brand {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topbar__nav {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--ink);
}

.topbar__cta {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar__cta:hover {
  background: var(--accent-soft);
  border-color: rgba(232, 162, 58, 0.45);
}

@media (min-width: 900px) {
  .topbar__nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 14, 0.35) 0%, rgba(8, 11, 14, 0.55) 45%, rgba(8, 11, 14, 0.92) 100%),
    linear-gradient(90deg, rgba(8, 11, 14, 0.75) 0%, rgba(8, 11, 14, 0.2) 55%, rgba(8, 11, 14, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: 7rem 0 4.5rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  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: var(--accent);
  color: #1a1208;
}

.btn--primary:hover {
  background: #f0b352;
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(242, 239, 232, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section--meta {
  border-top: 0;
  padding-top: clamp(3rem, 7vw, 5rem);
}

.section h2,
.h2--spaced {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.h2--spaced {
  margin-top: 3rem;
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 48ch;
  color: var(--muted);
}

.meta {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.meta__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta strong {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .split--reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.split p {
  color: var(--muted);
  margin: 0;
}

.split strong {
  color: var(--ink);
  font-weight: 600;
}

.about-text {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  max-width: 62ch;
  color: var(--muted);
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot--wide {
  margin-top: 2.5rem;
}

.shot--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.shot--cert img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}

.shot figcaption {
  padding: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Modules */
.modules {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .modules {
    gap: 3.5rem;
  }
}

.module {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
  .module {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }

  .module:nth-child(even) .module__media {
    order: 2;
  }
}

.module__media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.module__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.module__body h3 {
  margin: 0.2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.module__body p {
  margin: 0;
  color: var(--muted);
}

.module__body strong {
  color: var(--ink);
  font-weight: 600;
}

.module__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.module__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.module__list li:last-child {
  border-bottom: 0;
}

.module__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.module__list strong {
  color: var(--ink);
}

/* Problem */
.section--problem {
  background:
    linear-gradient(180deg, transparent, rgba(217, 92, 58, 0.06) 40%, transparent);
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.problem-list li {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--signal);
  color: var(--ink);
  font-size: 1.08rem;
}

/* Architecture */
.arch {
  display: grid;
  gap: 1.5rem 2rem;
}

@media (min-width: 720px) {
  .arch {
    grid-template-columns: repeat(2, 1fr);
  }
}

.arch article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.arch h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.arch p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Hardware gallery */
.gallery {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.gallery--featured {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .gallery--featured {
    grid-template-columns: 1.35fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

/* Advantages */
.check-list,
.use-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.use-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-list li::before,
.use-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.check-list li {
  color: var(--ink);
}

.cost {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cost__row {
  display: grid;
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}

@media (min-width: 480px) {
  .cost__row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.cost__price {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cost__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cost > p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.section--contact {
  background:
    radial-gradient(700px 400px at 80% 100%, rgba(232, 162, 58, 0.1), transparent 60%);
}

.contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .contact {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact__links a {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__links a:hover {
  color: var(--accent);
  border-bottom-color: rgba(232, 162, 58, 0.5);
}

.contact__qr {
  margin: 0;
  width: min(100%, 220px);
  padding: 0.75rem;
  background: #fff;
  border-radius: 4px;
}

.contact__qr img {
  width: 100%;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery img {
    transition: none;
  }
}
