:root {
  color-scheme: dark;
  --bg: #060504;
  --text: #fff7dd;
  --muted: rgba(238, 211, 148, 0.76);
  --soft: rgba(214, 177, 98, 0.58);
  --line: rgba(218, 174, 84, 0.34);
  --panel: rgba(8, 7, 5, 0.72);
  --panel-strong: rgba(15, 12, 7, 0.94);
  --gold: #d9aa53;
  --gold-soft: #f5d58a;
  --gold-deep: #8f6429;
  --white: #fff4d1;
  --black: #080604;
  --silver: #f2dfae;
  font-family:
    Manrope,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 72% 46%,
      rgba(215, 167, 77, 0.22),
      transparent 21rem
    ),
    radial-gradient(
      circle at 30% 58%,
      rgba(246, 211, 138, 0.12),
      transparent 16rem
    ),
    var(--bg);
  color: var(--text);
}

body {
  min-height: 100%;
}

a {
  color: inherit;
}
button {
  font: inherit;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 73% 50%,
      rgba(238, 190, 91, 0.18),
      transparent 23rem
    ),
    linear-gradient(135deg, #090806 0%, #050505 52%, #0c0905 100%);
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: sepia(0.42) saturate(0.88) contrast(1.16) brightness(0.72);
  transform: scale(1.02);
  z-index: -3;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage::before {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.91),
      rgba(5, 5, 5, 0.44) 52%,
      rgba(5, 5, 5, 0.84)
    ),
    linear-gradient(
      0deg,
      rgba(5, 5, 5, 0.82),
      rgba(5, 5, 5, 0.2) 45%,
      rgba(5, 5, 5, 0.58)
    );
}

.stage::after {
  z-index: -1;
  background:
    linear-gradient(var(--gold), var(--gold)) 4.2vw 4.2vw /
      calc(100% - 8.4vw) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 4.2vw calc(100% - 4.2vw) /
      calc(100% - 8.4vw) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 4.2vw 4.2vw / 1px
      calc(100% - 8.4vw) no-repeat,
    linear-gradient(var(--gold), var(--gold)) calc(100% - 4.2vw) 4.2vw /
      1px calc(100% - 8.4vw) no-repeat,
    radial-gradient(
      circle at 72% 45%,
      rgba(255, 232, 164, 0.88) 0 2px,
      rgba(231, 184, 87, 0.32) 3px,
      transparent 5px
    ),
    radial-gradient(
      circle at 69% 53%,
      rgba(230, 180, 78, 0.42) 0 3px,
      transparent 8px
    ),
    radial-gradient(
      circle at 33% 58%,
      rgba(230, 180, 78, 0.36) 0 4px,
      transparent 11px
    ),
    radial-gradient(
      circle at 38% 64%,
      rgba(255, 222, 145, 0.28) 0 3px,
      transparent 9px
    ),
    linear-gradient(
      135deg,
      transparent 0 74%,
      rgba(215, 168, 77, 0.28) 74.2%,
      transparent 74.6%
    ),
    linear-gradient(
      45deg,
      transparent 0 70%,
      rgba(215, 168, 77, 0.18) 70.2%,
      transparent 70.6%
    );
  opacity: 0.78;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 2rem) clamp(1rem, 4vw, 4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand svg {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
}

.brand span:last-child {
  color: var(--gold-soft);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.58);
  backdrop-filter: blur(18px);
}

.desktop-nav a,
.menu-toggle {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 213, 138, 0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 0.72rem 1rem;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  background: rgba(217, 170, 83, 0.14);
  color: var(--gold-soft);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: rgba(8, 6, 4, 0.64);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.menu-lines {
  display: grid;
  gap: 0.25rem;
  width: 1.1rem;
}

.menu-lines span {
  display: block;
  height: 1px;
  background: currentColor;
}

.hero {
  align-self: end;
  width: min(100%, 1560px);
  padding: 7rem clamp(1rem, 4vw, 4rem) clamp(2rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.38fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.3ch;
  margin-bottom: 1.35rem;
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.25rem, 9.8vw, 9.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow:
    0 2px 0 rgba(80, 52, 17, 0.35),
    0 18px 42px rgba(0, 0, 0, 0.62);
}

.hero-copy {
  max-width: 47rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}
.button.primary {
  background: linear-gradient(
    135deg,
    #fff1b8 0%,
    #d9aa53 45%,
    #8f6429 100%
  );
  color: var(--black);
  border-color: rgba(255, 230, 162, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 36px rgba(92, 59, 18, 0.34);
}
.button.secondary {
  background: rgba(12, 9, 5, 0.52);
  color: var(--gold-soft);
  border-color: rgba(218, 174, 84, 0.45);
  backdrop-filter: blur(18px);
}

.side-panel {
  justify-self: end;
  width: min(100%, 24rem);
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  padding: 1rem;
  background: rgba(8, 6, 4, 0.58);
  backdrop-filter: blur(22px);
}

.side-panel h2 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.55rem, 2.6vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.side-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.mini-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mini-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1rem;
  background: rgba(218, 174, 84, 0.055);
}

.mini-item span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-item strong {
  display: block;
  margin-bottom: 0.12rem;
}
.mini-item small {
  color: var(--soft);
  line-height: 1.5;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: stretch;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.menu-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(1.1rem, 3vw, 2.5rem);
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(218, 174, 84, 0.12),
      transparent 22rem
    ),
    linear-gradient(135deg, rgba(18, 14, 8, 0.97), rgba(5, 5, 5, 0.94));
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.overlay-title p {
  margin: 0.25rem 0 0;
  color: var(--soft);
}
.overlay-title h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.close-menu {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1b8, #d9aa53);
  color: #050505;
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
}

.overlay-content {
  overflow: auto;
  padding: clamp(1rem, 2.4vw, 2rem);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.block {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(218, 174, 84, 0.055);
}

.block h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.block p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.block .tag {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wide {
  grid-column: span 7;
}
.mid {
  grid-column: span 5;
}
.third {
  grid-column: span 4;
}
.half {
  grid-column: span 6;
}
.full {
  grid-column: 1 / -1;
}

.service-list,
.demo-list,
.steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-card,
.service-card,
.step-card {
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(8, 6, 4, 0.42);
}

.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.demo-card a {
  display: inline-flex;
  color: #fff;
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .stage-video {
    opacity: 0.66;
    filter: sepia(0.32) saturate(1.02) contrast(1.08) brightness(0.86);
    object-position: 58% center;
  }
  .stage::before {
    background:
      linear-gradient(
        90deg,
        rgba(5, 5, 5, 0.48),
        rgba(5, 5, 5, 0.1) 48%,
        rgba(5, 5, 5, 0.48)
      ),
      linear-gradient(
        0deg,
        rgba(5, 5, 5, 0.9),
        rgba(5, 5, 5, 0.24) 36%,
        rgba(5, 5, 5, 0.36) 72%,
        rgba(5, 5, 5, 0.68)
      );
  }
  .stage::after {
    opacity: 0.54;
  }
  .hero {
    align-self: end;
    padding-top: 9rem;
    padding-bottom: clamp(1.1rem, 4vh, 2.4rem);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr);
    justify-content: center;
    align-items: end;
    text-align: center;
  }
  .hero-grid > section {
    display: grid;
    justify-items: center;
  }
  h1,
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy {
    max-width: 31rem;
  }
  .actions {
    justify-content: center;
  }
  .side-panel {
    justify-self: center;
    width: min(100%, 34rem);
  }
  .wide,
  .mid,
  .third,
  .half {
    grid-column: 1 / -1;
  }
  .service-list,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    padding-top: max(0.9rem, env(safe-area-inset-top));
  }
  .brand span:last-child {
    max-width: 8.4rem;
    line-height: 1.15;
  }
  .stage-video {
    opacity: 0.76;
    filter: sepia(0.26) saturate(1.08) contrast(1.05) brightness(0.92);
    object-position: 63% center;
    transform: scale(1.01);
  }
  .stage::before {
    background:
      linear-gradient(
        90deg,
        rgba(5, 5, 5, 0.32),
        rgba(5, 5, 5, 0.04) 54%,
        rgba(5, 5, 5, 0.3)
      ),
      linear-gradient(
        0deg,
        rgba(5, 5, 5, 0.92) 0%,
        rgba(5, 5, 5, 0.68) 20%,
        rgba(5, 5, 5, 0.12) 44%,
        rgba(5, 5, 5, 0.16) 70%,
        rgba(5, 5, 5, 0.68) 100%
      );
  }
  .stage::after {
    opacity: 0.42;
  }
  .hero {
    align-self: end;
    padding: 7.8rem 1rem max(1rem, env(safe-area-inset-bottom));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr);
    justify-content: center;
    text-align: center;
  }
  h1 {
    max-width: 9.2ch;
    margin-bottom: 0.9rem;
    font-size: clamp(2.55rem, 13.6vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
  }
  .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
  }
  .hero-copy {
    max-width: 22rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .side-panel {
    display: none;
  }
  .actions {
    max-width: 18rem;
    margin-inline: auto;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
  }
  .button {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.72rem 1rem;
  }
  .overlay {
    padding: 0;
  }
  .overlay-panel {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .stage-video {
    display: none;
  }
}
