/* ================================
   NX7 — post human production
   Landing page styles
   ================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: #0A0C10;
  color: #D8DEE4;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  overflow-x: hidden;
}
body { min-height: 100vh; position: relative; }

i { font-style: italic; letter-spacing: 0.28em; }

/* ================================
   ANIMATIONS
   ================================ */

@keyframes nx7-scan-drift {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.32; }
}
@keyframes nx7-desc-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   TERMINAL GATE
   ================================ */

.nx7-gate {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.nx7-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.nx7-leak {
  position: absolute;
  pointer-events: none;
}
.nx7-leak-amber {
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(214,140,42,0.18) 0%, rgba(214,140,42,0.05) 30%, transparent 62%);
}
.nx7-leak-cold {
  bottom: -140px;
  left: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(110,160,180,0.09) 0%, transparent 60%);
}

.nx7-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,230,240,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,230,240,0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.nx7-scan {
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,180,120,0.5), transparent);
  pointer-events: none;
  animation: nx7-scan-drift 6s ease-in-out infinite;
}

.nx7-edge {
  position: absolute;
  font-size: 8px;
  letter-spacing: 0.2em;
  line-height: 1.9;
  color: rgba(216,222,228,0.28);
}
.nx7-edge-tl { top: 38px; left: 28px; }
.nx7-edge-tr { top: 38px; right: 28px; text-align: right; }
.nx7-edge-bl {
  bottom: 38px;
  left: 28px;
  letter-spacing: 0.22em;
  color: rgba(216,222,228,0.22);
}
.nx7-edge-br {
  bottom: 38px;
  right: 28px;
  text-align: right;
  letter-spacing: 0.22em;
  color: rgba(216,222,228,0.22);
}

.nx7-dot-amber { color: rgba(214,140,42,0.6); }

/* ---- Terminal frame (centered, upper third) ---- */

.nx7-frame {
  position: relative;
  width: 460px;
  max-width: calc(100vw - 80px);
  height: 300px;
  margin: 0 auto;
  top: 24vh;
}
.nx7-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.nx7-frame-body {
  position: relative;
  padding: 44px 48px 34px;
  text-align: center;
}

.nx7-logo {
  font-size: 28px;
  letter-spacing: 0.28em;
  color: #E8F0F5;
  text-shadow: -1px 0 0 rgba(110,190,220,0.4), 1px 0 0 rgba(220,80,100,0.35);
  font-weight: 400;
}

/* ---- Animated SVG logo ---- */

.nx7-logo-anim {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nx7-logo-svg {
  display: block;
  width: 220px;
  height: 44px;
  overflow: visible;
}
.nx7-main { fill: #E8F0F5; }
.nx7-ghost { opacity: 0.55; }
.nx7-ghost-cyan { fill: #6ebedc; transform: translateX(-1px); }
.nx7-ghost-red  { fill: #dc5064; transform: translateX(1px); }

/* The dot between NX and 7. It detaches, rises slowly with a tiny rotation,
   fades out near the top, then reappears at its original position. */
.nx7-dot {
  fill: #E8F0F5;
  transform-box: fill-box;
  transform-origin: center;
  animation: nx7-dot 8s ease-in-out infinite;
}
@keyframes nx7-dot {
  0%, 10%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  15%       { transform: translateY(-1px) rotate(2deg); opacity: 1; }
  60%       { transform: translateY(-22px) rotate(20deg); opacity: 0; }
  79%       { transform: translateY(-22px) rotate(20deg); opacity: 0; }
  80%       { transform: translateY(0) rotate(0deg); opacity: 1; }
  100%      { transform: translateY(0) rotate(0deg); opacity: 1; }
}
.nx7-tagline {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(216,222,228,0.5);
  margin-top: 10px;
}

.nx7-log {
  margin-top: 30px;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(216,228,236,0.75);
  line-height: 2;
}

/* ---- Description block (below the frame) ---- */

.nx7-description {
  position: relative;
  margin: 180px auto 0;
  max-width: 560px;
  padding: 0 32px;
  text-align: center;
  animation: nx7-desc-in 1.2s ease-out 0.3s both;
}
.nx7-description-line {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(216,228,236,0.72);
  line-height: 2.4;
}
.nx7-description-line:first-child {
  color: rgba(232,240,245,0.92);
  letter-spacing: 0.24em;
}
.nx7-description-line.nx7-desc-accent {
  color: rgba(214,140,42,0.6);
  letter-spacing: 0.32em;
  margin-top: 14px;
  font-size: 10px;
}

/* ---- Contact block (below the description) ---- */

.nx7-contact {
  position: relative;
  margin: 36px auto 0;
  text-align: center;
  animation: nx7-desc-in 1.2s ease-out 0.6s both;
}
.nx7-contact-link {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(214,140,42,0.7);
  text-decoration: none;
  transition: color 0.4s ease, letter-spacing 0.4s ease;
  font-family: inherit;
}
.nx7-contact-link:hover {
  color: rgba(245,181,96,1);
  letter-spacing: 0.32em;
}
.nx7-contact-at {
  color: rgba(214,140,42,0.5);
  margin: 0 1px;
}
.nx7-contact-link:hover .nx7-contact-at {
  color: rgba(245,181,96,0.8);
}

/* ---- Signature (bottom center) ---- */

.nx7-signature {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.44em;
  color: rgba(214,140,42,0.5);
  white-space: nowrap;
}

/* ================================
   RESPONSIVE — MOBILE
   ================================ */

@media (max-width: 700px) {
  .nx7-edge { font-size: 7px; letter-spacing: 0.16em; }
  .nx7-edge-tl { top: 20px; left: 16px; }
  .nx7-edge-tr { top: 20px; right: 16px; }
  .nx7-edge-bl { bottom: 20px; left: 16px; }
  .nx7-edge-br { bottom: 20px; right: 16px; }

  .nx7-frame {
    width: calc(100vw - 40px);
    top: 16vh;
  }
  .nx7-frame-body { padding: 32px 20px 24px; }
  .nx7-logo { font-size: 22px; letter-spacing: 0.22em; }
  .nx7-logo-svg { width: 180px; height: 36px; }
  .nx7-tagline { font-size: 8px; }
  .nx7-log { font-size: 9px; }

  .nx7-description {
    margin: 120px auto 0;
    padding: 0 20px;
  }
  .nx7-description-line { font-size: 10px; letter-spacing: 0.22em; line-height: 2.2; }
  .nx7-description-line.nx7-desc-accent { font-size: 9px; letter-spacing: 0.28em; }
  .nx7-contact { margin-top: 28px; }
  .nx7-contact-link { font-size: 10px; letter-spacing: 0.24em; }

  .nx7-signature { bottom: 40px; font-size: 8px; letter-spacing: 0.36em; }
}

@media (max-height: 800px) and (min-width: 701px) {
  .nx7-frame { top: 12vh; }
  .nx7-description { margin-top: 120px; }
}
