/* Common Styles for Luna Case Studies */
:root {
  --navy-deep: #000a1f;
  --navy: #00143B;
  --navy-light: #1D2E7A;
  --cyan: #4CC9F0;
  --violet: #9B87F5;
  --ink: #F5F7FF;
  --ink-soft: #9FB3D9;
  --line: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy-deep);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6%;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(0, 10, 31, 0.85), transparent);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark svg {
  width: 30px;
  height: 30px;
}

.logo-mark span {
  font-family: 'Sora';
  font-weight: 600;
  font-size: 18px;
}

.back-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--cyan);
}

.case-hero {
  padding: 170px 6% 70px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.18), transparent 70%);
  top: -160px;
  right: -160px;
  filter: blur(10px);
}

.tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.case-hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -1px;
  max-width: 820px;
  line-height: 1.08;
  position: relative;
  z-index: 1;
}

.case-hero p.lead {
  margin-top: 22px;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.visit-btn {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  z-index: 1;
}

.visit-btn:hover {
  transform: translateY(-3px);
}

.thumb-wrap {
  margin: 0 6% 90px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
}

.thumb-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 6% 100px;
}

@media (max-width: 840px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.block-label {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.block h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.block p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 6% 60px;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.meta-chip b {
  color: var(--ink);
  font-weight: 500;
}

.next-section {
  padding: 80px 6% 100px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.next-section p {
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 15px;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

footer {
  padding: 30px 6%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.features-section {
  padding: 0 6% 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 201, 240, 0.4);
}

.feature-item h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-item p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.site-scroll {
  margin: 0 6% 90px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
  position: relative;
  height: 640px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.site-scroll img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  filter: saturate(0.92) brightness(0.94);
  transition: filter 0.5s ease;
}

.site-scroll:hover img {
  filter: saturate(1) brightness(1);
  animation: siteScroll var(--dur) linear forwards;
}

@keyframes siteScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(var(--ty));
  }
}

.site-scroll-hint {
  position: absolute;
  bottom: 18px;
  right: 20px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  background: rgba(0, 10, 31, 0.6);
  padding: 7px 14px;
  border-radius: 100px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
}

.site-scroll:hover .site-scroll-hint {
  opacity: 0;
}

.site-scroll-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(0, 10, 31, 0.85));
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 720px) {
  .site-scroll {
    height: 460px;
  }
}
