/* Nightloop marketing site — recreated from design_handoff_nightloop_site
   (ArcadeCore / retro-Tokyo cyberpunk). Tokens per the handoff README. */

@font-face {
  font-family: 'D-DIN';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./D-DIN.woff2') format('woff2');
}

:root {
  --nl-display: 'Rajdhani', sans-serif;
  --bg: #080E14;
  --bg-alt: #0a0f17;
  --pink: #FF2D95;
  --cyan: #00E5FF;
  --purple: #7A5CFF;
  --yellow: #FFD400;
  --body: #8494a8;
  --body-2: #9aa8bd;
  --muted: #6f7d94;
  --head-soft: #dfe6f0;
  --border: #17212f;
  --border-2: #1b2534;
  --hairline: #131c29;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: #c7d0dd;
  font-family: 'D-DIN', 'Saira', sans-serif; font-size: 15px; line-height: 1.6;
}
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }

.nl-col { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.pk { color: var(--pink); }
.cy { color: var(--cyan); }

/* ---------- hero ---------- */
.nl-hero {
  /* overflow stays VISIBLE so the app frame's glow fades naturally into
     the section below (clipping it made a hard line against the lead);
     only the perspective grid needs clipping, via its own wrapper */
  position: relative; padding-bottom: 64px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #1a0e2e 0%, #0b0a1c 42%, #080E14 100%);
}
.nl-grid-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nl-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image:
    linear-gradient(#00e5ff1f 1px, transparent 1px),
    linear-gradient(90deg, #00e5ff1f 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: top;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 62%);
  mask-image: linear-gradient(#000 0%, transparent 62%);
  animation: nl-griddrift 3.2s linear infinite;
}
@keyframes nl-griddrift { to { background-position: 0 -56px, 0 -56px; } }

.nl-nav {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 0; text-align: left;
}
.nl-brand { display: inline-flex; align-items: center; gap: 12px; }
.nl-logo { width: 34px; height: 34px; flex: none; display: block; }
.nl-wordmark {
  display: flex; flex-direction: column; line-height: 1.15;
  font-family: var(--nl-display); font-size: 17px; font-weight: 700;
  letter-spacing: .16em; color: #fff;
}
.nl-jp { font-family: 'Noto Sans JP', sans-serif; font-size: 9px; font-weight: 500; letter-spacing: .3em; color: var(--cyan); }
.nl-links { display: flex; gap: 26px; }
.nl-links a { font-family: var(--nl-display); font-size: 14px; font-weight: 600; color: #8ea0b8; }
.nl-links a:hover { color: var(--pink); }

/* the eyebrow rides the nav's empty center (fold space is the app's) */
.nl-eyebrow-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 7px 16px; border: 1px solid #7A5CFF55; border-radius: 50px;
  font-family: var(--nl-display); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: #b7a8ff; white-space: nowrap;
}
.nl-h1 {
  position: relative; margin: 34px 0 26px;
  font-family: var(--nl-display); font-size: 40px; font-weight: 700; line-height: 1.05;
  color: #fff; animation: nl-flicker 7s linear infinite;
}
.nl-h1 em { font-style: normal; color: var(--pink); text-shadow: 0 0 24px #ff2d9588; }
@keyframes nl-flicker {
  0%, 93%, 98%, 100% { opacity: 1; }
  94%, 97% { opacity: .82; }
}

/* the frame BREAKS OUT of the 1140px text column so big monitors get a
   big app; height rides the viewport */
.nl-appframe {
  position: relative; border-radius: 18px; overflow: hidden;
  width: min(94vw, 1720px); margin-left: 50%; transform: translateX(-50%);
  box-shadow: 0 50px 120px -30px #7a5cff55, 0 40px 90px -40px #ff2d9555;
}
.nl-app { display: block; width: 100%; height: clamp(560px, 80vh, 1100px); border: 0; background: #091726; }
.nl-app-mobile { display: none; }
.nl-fullscreen {
  display: block; margin: 10px 0 0 auto; padding: 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--nl-display); font-size: 13px; font-weight: 600; color: #8ea0b8;
}
.nl-fullscreen:hover { color: var(--cyan); }

/* ---------- lead ---------- */
.nl-lead { padding: 74px 0 58px; text-align: center; }
.nl-lead h2 {
  max-width: 820px; margin: 0 auto;
  font-family: var(--nl-display); font-size: 25px; font-weight: 600; line-height: 1.5;
  color: var(--head-soft);
}
.nl-jp-line {
  margin: 22px 0 0; font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; letter-spacing: .24em; color: var(--purple);
}
.nl-jp-line.dim { color: #7a89a0; letter-spacing: .3em; }

/* ---------- feature sections ---------- */
.nl-feature { padding: 64px 0; background: var(--bg); }
.nl-feature.alt { background: var(--bg-alt); border-top: 1px solid #111a26; border-bottom: 1px solid #111a26; }
.nl-feature-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.nl-feature-grid.flip { grid-template-columns: 1.05fr 1fr; }
.nl-eyebrow {
  margin: 0 0 10px; font-family: var(--nl-display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em;
}
.nl-eyebrow.pink { color: var(--pink); }
.nl-eyebrow.cyan { color: var(--cyan); }
.nl-feature h3 {
  margin: 0 0 14px; font-family: var(--nl-display);
  font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1;
}
.nl-para { margin: 0 0 24px; color: var(--body-2); font-size: 15px; }
.nl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.nl-rows li { display: flex; align-items: flex-start; gap: 13px; }
.nl-ico {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); font-size: 13px;
}
.nl-rows b { display: block; color: #e5ebf3; font-size: 15px; }
.nl-rows span { color: var(--muted); font-size: 13px; }
.nl-shot {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  aspect-ratio: 16 / 11;
}
.nl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nl-shot.pink { box-shadow: 0 30px 70px -30px #ff2d9555; }
.nl-shot.cyan { box-shadow: 0 30px 70px -30px #00e5ff55; }

/* ---------- capability ribbon ---------- */
.nl-ribbon-wrap { padding: 64px 0; background: var(--bg); }
.nl-ribbon-bar { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #7A5CFF, #00E5FF, #FFD400, #FF2D95); }
.nl-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); }
.nl-ribbon > div { padding: 30px 22px; text-align: center; }
.nl-ribbon > div + div { border-left: 1px solid #141d2a; }
.nl-ribbon i { font-size: 24px; color: var(--tc); text-shadow: 0 0 18px color-mix(in srgb, var(--tc) 67%, transparent); }
.nl-ribbon b { display: block; margin: 12px 0 4px; font-family: var(--nl-display); font-size: 15px; font-weight: 600; color: #e5ebf3; }
.nl-ribbon span { color: var(--muted); font-size: 13px; }

/* ---------- funnel ---------- */
.nl-funnel-wrap { padding: 10px 0 74px; background: var(--bg); }
.nl-funnel {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  border: 1px solid #23304a; border-radius: 18px; padding: 44px;
  background: radial-gradient(120% 160% at 100% 0%, #1a1030 0%, #0b1220 60%);
}
.nl-funnel h3 { margin: 0 0 10px; font-family: var(--nl-display); font-size: 32px; font-weight: 700; color: #fff; }
.nl-funnel .nl-para { margin: 0; max-width: 560px; }
.nl-btn {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 11px;
  background: linear-gradient(135deg, #FF2D95, #c81f74); color: #fff;
  font-family: var(--nl-display); font-size: 15px; font-weight: 700;
  box-shadow: 0 0 24px #ff2d9555; transition: all .18s ease;
}
.nl-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 34px #ff2d9577; }

/* ---------- faq ---------- */
.nl-faq { padding: 20px 0 70px; background: var(--bg); }
.nl-faq h2 { font-family: var(--nl-display); font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 26px; }
.nl-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.nl-faq h3 { margin: 0 0 6px; font-size: 17px; color: #e5ebf3; font-family: var(--nl-display); font-weight: 700; }
.nl-faq p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ---------- tagline band ---------- */
.nl-tagline {
  padding: 74px 20px; text-align: center;
  background: linear-gradient(135deg, #12071f, #0a0a1f);
  border-top: 1px solid var(--hairline);
}
.nl-tag-big { margin: 0; font-family: var(--nl-display); font-size: 76px; font-weight: 700; line-height: 1; }
.nl-tag-big .w { color: #fff; }
.nl-tag-big .cy { color: var(--cyan); text-shadow: 0 0 34px #00e5ff77; }
.nl-tag-big .pk { color: var(--pink); text-shadow: 0 0 34px #ff2d9577; }

/* ---------- footer ---------- */
.nl-footer { padding: 30px 0; background: #070b11; border-top: 1px solid var(--hairline); }
.nl-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nl-made { color: #4d5a70; font-size: 13px; }
.nl-social { display: flex; gap: 10px; }
.nl-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid #1e2836; border-radius: 10px; color: #66748c;
  transition: all .2s;
}
.nl-social a:hover { color: var(--pink); border-color: var(--pink); transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nl-h1 { font-size: 32px; }
  .nl-eyebrow-pill { display: none; }
}
@media (max-width: 820px) {
  .nl-col { padding: 0 20px; }
  .nl-feature-grid, .nl-feature-grid.flip { grid-template-columns: 1fr; gap: 26px; }
  .nl-feature-grid.flip figure { order: -1; }
  .nl-ribbon { grid-template-columns: 1fr 1fr; }
  .nl-ribbon > div + div { border-left: none; }
  .nl-funnel { flex-direction: column; align-items: flex-start; }
  .nl-faq-grid { grid-template-columns: 1fr; }
  .nl-tag-big { font-size: 44px; }
  .nl-footer-row { flex-direction: column; }
}
@media (max-width: 700px) {
  /* the app is a desktop-class UI: attract screenshot instead of live embed */
  .nl-app { display: none; }
  .nl-app-mobile { display: block; position: relative; }
  .nl-app-mobile-note {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
    background: #080e14e0; color: #9aa8bd; font-size: 12.5px; text-align: center;
  }
  .nl-h1 { font-size: 27px; }
  .nl-lead h2 { font-size: 19px; }
  .nl-links { display: none; }
}
