:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #777777;
  --accent: #14A1F9;
  --accent-2: #7a1cf1;
  --btn: #0525D8;
  --card: #0b0b0f;
  --border: #161621;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #0f0f16;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img {
  height: 72px;
  margin: 20px;
  width: auto;
  transition: transform 200ms ease;
}
.logo:hover img { transform: translateY(-1px) scale(1.02); }
.site-nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 2em;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.nav-link:hover {
  box-shadow: 0 0 0 1px rgb(20, 161, 249), 0 0 18px rgb(102, 196, 255), inset 0 0 24px rgb(208, 173, 255);
  transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.jlp-ux.com/img2/hero.png') center center / cover no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.08) saturate(1.18);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  top: 20%;
  left: 24vw;
  max-width: 500px;
  width: 36vw;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.44);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-title {
  font-family: 'Inter', 'Inter Display', Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #e0e6fc;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

/* ===== FEATURED CASE STUDIES ===== */
.featured {
  padding: 80px 0 24px;
  border-top: 1px solid var(--border);
}
.section-title {
  text-align: center;
  color: var(--accent);
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0 28px;
}
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 0 36px;
  border-bottom: 1px solid #0f0f16;
}
.feature-row:last-of-type { border-bottom: 0; }
.feature-row.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-text {
  padding: 50px;
}
.feature-head {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1em;
  margin: 0 0 10px;
}
.feature-desc {
  font-size: 1.25rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  line-height: 1.2em;
  margin: 0 0 28px;
}
.feature-media {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* normal row */
  height: 100%;
}
.feature-row.reverse .feature-media {
  justify-content: flex-start; /* reversed row */
}
.feature-media img, .neon-panel {
  max-width: 330px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: radial-gradient(120% 120% at 20% -10%, rgba(122,28,241,0.4) 0%, rgba(20,161,249,0.25) 40%, rgba(8,16,32,0.4) 70%), #0a0a0e;
}
.neon-panel {
  height: 260px;
}

/* ===== CASE STUDY CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
}

.case-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #222;
  background: #181828;
}

.card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #222;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-body {
  padding: 18px 18px 20px 18px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}
.card-title {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}
.card-desc {
  margin: 0 0 14px 0;
  color: #b4badf;
  font-size: 1rem;
}
.btn-primary {
  align-self: flex-start;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  color: #fff;
  background: var(--btn);
  border: none;
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 0 0 1px rgba(5,37,216,0.45), 0 2px 14px rgba(20,161,249,0.12);
  cursor: pointer;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 0 1.5px var(--accent), 0 4px 18px rgba(20,161,249,0.18);
  text-decoration: none;
  outline: none;
}
.btn-secondary {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 6px;
  color: #3af;
  background: #25253f;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #1b2340;
  color: #fff;
}

/* ===== MORE CASE STUDIES ===== */
.more-cases {
  padding: 8px 0 60px;
  border-top: 1px solid var(--border);
}
.more-title {
  font-weight: 600;
  padding: 50px 0 50px 0;
  font-size: 2em;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 14px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 40px;
  color: #b8c4ff;
}
.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #a5a9c3;
}

/* ===== SPACER ANCHORS ===== */
.spacer { height: 1px; }

/* ===== REVEAL-ON-SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.65,.2,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .hero {
    height: 56vw;
    min-height: 360px;
  }
  .hero-copy {
    top: 25%;
    left: 12vw;
    max-width: 40vw;
    width: 40vw;
  }
  .section-title { font-size: 38px; }
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hero-copy {
    left: 5vw;
    max-width: 80vw;
    width: 80vw;
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 97vw;
  }
  .case-card {
    border-radius: 10px;
  }
  .card-media {
    border-radius: 10px 10px 0 0;
  }
  .hero {
    height: 320px;
    min-height: 220px;
  }
  .hero-bg {
    background-position: 70% center;
  }
  .hero-copy {
    top: 18%;
    left: 5vw;
    max-width: 92vw;
    width: 92vw;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .section-title { font-size: 1.5rem; }
}
@media (max-width: 390px) {
  .nav-wrap { height: 64px; }
  .hero-title { font-size: 1.15rem; }
  .hero-tagline { font-size: 0.9rem; }
  .hero-copy { max-width: 98vw; }
  .section-title { font-size: 1.1rem; }
  .feature-head { font-size: 1rem; }
  .feature-desc { font-size: 0.9rem; }
}
