/* ==========================================================================
   WEBSILY — dark monument hero + floating nav + monitor mockup
   ========================================================================== */

.hero {
  position: relative;
  background: var(--onyx);
  color: #f1f1f1;
  overflow: hidden;
}

/* faint grid texture */
.hero::before {
  content: '';
  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: 72px 72px;
  pointer-events: none;
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease-exit);
}

.nav-inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f1f1f1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  transition: color 0.4s var(--ease-enter);
}

.nav-logo .dot { color: var(--ember); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-pill {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(5px);
  transition: border-color 0.3s var(--ease-enter), color 0.3s var(--ease-enter), background 0.3s var(--ease-enter);
}

.nav-pill:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.nav-pill--cta {
  background: #f1f1f1;
  color: var(--onyx);
  border-color: transparent;
}

.nav-pill--cta:hover { background: #fff; color: var(--onyx); }

/* Nav over light sections */
.nav.on-light .nav-logo { color: var(--ink); }
.nav.on-light .nav-pill {
  border-color: rgba(26, 26, 26, 0.18);
  color: rgba(26, 26, 26, 0.85);
  background: rgba(248, 248, 242, 0.72);
}
.nav.on-light .nav-pill:hover { border-color: var(--ink); color: var(--ink); }
.nav.on-light .nav-pill--cta { background: var(--ink); color: #fff; border-color: transparent; }
.nav.is-hidden { transform: translateY(-110%); }

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
  }

  .nav.on-light .nav-toggle {
    border-color: rgba(26, 26, 26, 0.18);
    color: var(--ink);
    background: rgba(248, 248, 242, 0.72);
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 4px);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    background: var(--onyx);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 10px;
  }

  .nav-links.is-open .nav-pill { border: 0; text-align: center; padding: 12px 24px; }
}

/* ---- Hero content ---- */

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(120px, 16vh, 170px) var(--gutter) 0;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 9999px;
}

.hero-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 2.2s var(--ease-enter) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 100, 54, 0.55); }
  55% { box-shadow: 0 0 0 9px rgba(255, 100, 54, 0); }
}

.hero-display {
  margin-top: clamp(28px, 4vh, 44px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(88px, 19.5vw, 300px);
  line-height: 0.85;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-align: center;
  background: var(--grad-display);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.hero-sub {
  margin-top: clamp(20px, 3vh, 32px);
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ash);
  max-width: 46ch;
}

.hero-sub strong { color: #f1f1f1; font-weight: 500; }

.hero-meta {
  margin-top: clamp(24px, 3.5vh, 36px);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero-meta li { display: inline-flex; align-items: center; gap: 14px; }

.hero-meta li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.22);
}

/* ---- Monitor mockup ---- */

.monitor {
  position: relative;
  margin-top: clamp(40px, 6vh, 72px);
  width: min(860px, 92%);
}

.monitor-screen {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 -1px 40px rgba(255, 100, 54, 0.06);
}

.monitor-viewport {
  position: relative;
  border-radius: 7px;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  aspect-ratio: 16 / 9.6;
  background: #101010;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.monitor-viewport::-webkit-scrollbar { width: 6px; }
.monitor-viewport::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.32); border-radius: 9999px; }
.monitor-viewport::-webkit-scrollbar-track { background: transparent; }

.monitor-viewport img { width: 100%; }

.monitor-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px);
}

.monitor-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }

.monitor-screen .frame-scroll-btn {
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
}

.monitor-stand {
  width: 120px;
  height: 44px;
  margin-inline: auto;
  background: linear-gradient(#0d0d0d, #1c1c1c);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.monitor-base {
  width: 240px;
  height: 8px;
  margin-inline: auto;
  border-radius: 9999px 9999px 0 0;
  background: #232323;
}

/* seam into the cream page */
.hero-seam {
  position: relative;
  height: clamp(56px, 9vh, 96px);
  background: linear-gradient(rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.35) 100%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--stone), transparent);
  animation: cue 1.8s var(--ease-exit) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
