/* ── Shared Case Study Styles ── */
/* Single blue accent: #4C75FF (matches index.html throughout) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #000005; color: #f8f8f8; font-family: 'Lexend', sans-serif; overflow-x: hidden; cursor: none; }

/* Cursor */
#cursor { width: 10px; height: 10px; border-radius: 50%; background: rgba(76,117,255,0.9); box-shadow: 0 0 12px 4px rgba(76,117,255,0.5); position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width 0.2s, height 0.2s; }
#cursor.hovered { width: 26px; height: 26px; background: rgba(76,117,255,0.3); }
#cursor-trail { width: 6px; height: 6px; border-radius: 50%; background: rgba(76,117,255,0.4); position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: left 0.18s ease, top 0.18s ease; }

/* Nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 200px; transition: background 0.4s, backdrop-filter 0.4s; }
nav.scrolled { background: rgba(0,0,5,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(76,117,255,0.12); }
.nav-logo { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(16px,2vw,22px); color: #f8f8f8; text-decoration: none; letter-spacing: 0.05em; cursor: none; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 15px; color: #bdbdbd; text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; cursor: none; }
.nav-links a:hover, .nav-links a.active { color: #f8f8f8; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #f8f8f8; border-radius: 2px; }
.nav-mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,5,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 28px; color: #f8f8f8; text-decoration: none; cursor: none; }
.nav-mobile-menu .close-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #f8f8f8; font-size: 32px; cursor: none; }

/* Layout */
.page-padding { max-width: 840px; margin: 0 auto; padding: 0 48px; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(76,117,255,0.18) 30%, rgba(76,117,255,0.18) 70%, transparent); margin: 0 auto; max-width: 840px; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Back link */
.back-link-wrap { padding: 120px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Lexend', sans-serif; font-size: 14px; font-weight: 600; color: #4C75FF; text-decoration: none; cursor: none; letter-spacing: 0.04em; transition: gap 0.2s; }
.back-link:hover { gap: 14px; }
.back-link svg { transition: transform 0.2s; }
.back-link:hover svg { transform: translateX(-4px); }

/* Hero header */
.case-header { padding: 48px 0 64px; }
.case-subline { font-size: 18px; color: #828282; margin-bottom: 16px; line-height: 1.5; }
.case-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(32px,4.5vw,52px); color: #f8f8f8; line-height: 1.15; text-wrap: pretty; margin-bottom: 0; }

/* Hero image */
.hero-image-wrap { margin: 0 auto 80px; max-width: 840px; padding: 0 48px; }
.hero-image { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; }
.img-ph { width: 100%; height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(45deg, rgba(76,117,255,0.03) 0px, rgba(76,117,255,0.03) 1px, transparent 1px, transparent 14px); font-family: 'Lexend', sans-serif; font-size: 14px; color: rgba(76,117,255,0.4); text-align: center; padding: 24px; }
.img-ph strong { font-size: 17px; color: rgba(76,117,255,0.6); font-weight: 700; }
.img-caption { font-family: 'Lexend', sans-serif; font-size: 15px; color: #828282; text-align: center; margin-top: 14px; line-height: 1.5; }

/* Section label + content */
.cs-section { padding: 72px 0; }
.section-label { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #4C75FF; margin-bottom: 20px; display: block; }
.cs-heading { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(22px,2.8vw,32px); color: #f8f8f8; line-height: 1.2; margin-bottom: 20px; text-wrap: pretty; }
.cs-body { font-family: 'Lexend', sans-serif; font-size: clamp(15px,1.4vw,18px); color: #bdbdbd; line-height: 1.8; text-wrap: pretty; }
.cs-body + .cs-body { margin-top: 16px; }
.cs-body br { display: block; content: ''; margin-top: 10px; }

/* Sub-heading within body */
.cs-subhead { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(18px,1.8vw,22px); color: #f8f8f8; margin: 32px 0 10px; line-height: 1.3; }

/* Meta row */
.meta-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(76,117,255,0.1); }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 13px; color: #525252; text-transform: uppercase; letter-spacing: 0.1em; }
.meta-value { font-family: 'Lexend', sans-serif; font-size: 16px; color: #f8f8f8; }

/* Cards (problem / goal) */
.cs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.cs-card { display: flex; gap: 20px; padding: 28px 24px; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(76,117,255,0.1); transition: border-color 0.3s, box-shadow 0.3s; }
.cs-card:hover { border-color: rgba(76,117,255,0.3); box-shadow: 0 0 32px rgba(76,117,255,0.08); }
.cs-card-accent { width: 4px; flex-shrink: 0; border-radius: 4px; }
.cs-card-body { display: flex; flex-direction: column; gap: 10px; }
.cs-card-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; color: #f8f8f8; }
.cs-card-text { font-family: 'Lexend', sans-serif; font-size: 15px; color: #bdbdbd; line-height: 1.75; white-space: pre-line; }

/* Numbered insights */
.cs-insights { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.cs-insight { display: flex; gap: 20px; }
.cs-insight-num { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 32px; color: #4C75FF; opacity: 0.5; flex-shrink: 0; line-height: 1; min-width: 40px; }
.cs-insight-body { display: flex; flex-direction: column; gap: 8px; }
.cs-insight-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; color: #f8f8f8; }
.cs-insight-text { font-family: 'Lexend', sans-serif; font-size: 15px; color: #bdbdbd; line-height: 1.75; }

/* Impact grid */
.cs-impact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.cs-impact-item { padding: 24px 28px; border-radius: 14px; background: rgba(76,117,255,0.04); border: 1px solid rgba(76,117,255,0.12); }
.cs-impact-num { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 14px; color: #4C75FF; letter-spacing: 0.1em; margin-bottom: 8px; }
.cs-impact-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; color: #f8f8f8; margin-bottom: 8px; }
.cs-impact-text { font-family: 'Lexend', sans-serif; font-size: 15px; color: #bdbdbd; line-height: 1.7; }

/* Before/after */
.cs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.cs-compare-col { padding: 24px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); }
.cs-compare-col.after { border-color: rgba(76,117,255,0.2); background: rgba(76,117,255,0.04); }
.cs-compare-label { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.cs-compare-col .cs-compare-label { color: #828282; }
.cs-compare-col.after .cs-compare-label { color: #4C75FF; }
.cs-compare-text { font-family: 'Lexend', sans-serif; font-size: 15px; color: #bdbdbd; line-height: 1.75; white-space: pre-line; }

/* Mockup pair */
.cs-mockup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.cs-mockup { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cs-mockup-img { width: 100%; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; }
.cs-mockup-caption { font-family: 'Lexend', sans-serif; font-size: 14px; color: #828282; text-align: center; }

/* Image full width */
.cs-image-block { margin: 40px 0; }
.cs-image-block .cs-image { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; }
.cs-image-block .cs-image.tall { aspect-ratio: 4/3; }

/* Feature columns */
.cs-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 32px; }
.cs-feature { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(76,117,255,0.08); }
.cs-feature-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 17px; color: #f8f8f8; }
.cs-feature-text { font-family: 'Lexend', sans-serif; font-size: 14px; color: #bdbdbd; line-height: 1.7; }

/* Next project */
.next-project { padding: 72px 0; }
.next-label { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 11px; color: #4C75FF; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; }
.next-card {
  display: flex; align-items: center; gap: 48px;
  border-radius: 20px; padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(76,117,255,0.1);
  text-decoration: none; color: inherit; cursor: none;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.next-card:hover {
  transform: translateY(-8px);
  border-color: rgba(76,117,255,0.55);
  box-shadow: 0 0 40px rgba(76,117,255,0.18), 0 0 80px rgba(76,117,255,0.06);
  background: rgba(76,117,255,0.04);
}
.next-card-image { flex: 0 0 340px; height: 220px; border-radius: 14px; overflow: hidden; min-width: 0; }
.next-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.next-card:hover .next-card-image img { transform: scale(1.04); }
.next-card-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.next-card-sub { font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600; color: #4C75FF; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.next-card-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(16px,1.6vw,22px); color: #f8f8f8; line-height: 1.3; text-wrap: pretty; margin: 0; }
.next-card-arrow { font-family: 'Lexend', sans-serif; font-size: 14px; color: #4C75FF; transition: transform 0.2s; display: inline-block; }
.next-card:hover .next-card-arrow { transform: translateX(6px); }

/* Contact */
.cs-contact { padding: 80px 0; text-align: center; }
.cs-contact h2 { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: clamp(24px,3vw,40px); color: #f8f8f8; margin-bottom: 14px; }
.cs-contact p { font-size: clamp(14px,1.4vw,17px); color: #828282; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cs-contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-btn { position: relative; overflow: hidden; padding: 14px 28px; border-radius: 10px; background: linear-gradient(135deg,#4C75FF 0%,#2039E2 100%); color: #DBEBff; font-family: 'Lexend',sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; cursor: none; border: none; transition: transform 0.2s, box-shadow 0.3s; display: inline-block; }
.cta-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.18); border-radius: 50%; transform: translate(-50%,-50%); transition: width 0.5s, height 0.5s, opacity 0.5s; opacity: 0; }
.cta-btn:hover::before { width: 280px; height: 280px; opacity: 1; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(76,117,255,0.4); }

/* Footer */
footer { border-top: 1px solid rgba(76,117,255,0.12); padding: 40px 0; }
.footer-inner { padding: 0 200px; display: flex; align-items: center; justify-content: space-between; }
.footer-social { display: flex; gap: 16px; }
.social-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(76,117,255,0.2); display: flex; align-items: center; justify-content: center; color: #bdbdbd; text-decoration: none; cursor: none; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.social-icon:hover { background: rgba(76,117,255,0.15); border-color: rgba(76,117,255,0.5); color: #4C75FF; transform: translateY(-2px); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: 'Inter',sans-serif; font-size: 14px; color: #525252; text-decoration: none; cursor: none; transition: color 0.2s; }
.footer-links a:hover { color: #f8f8f8; }
.footer-copy { font-family: 'Inter',sans-serif; font-size: 14px; color: #525252; text-align: center; margin-top: 20px; padding: 0 200px; }

@media (max-width: 1100px) {
  nav { padding: 20px 48px; }
  .footer-inner { padding: 0 48px; }
  .footer-copy { padding: 0 48px; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-padding { padding: 0 24px; }
  .hero-image-wrap { padding: 0 24px; }
  .footer-inner { padding: 0 24px; flex-direction: column; gap: 20px; align-items: center; }
  .footer-links { display: none; }
  .footer-copy { padding: 0 24px; }
  .cs-cards { grid-template-columns: 1fr; }
  .cs-compare { grid-template-columns: 1fr; }
  .cs-mockup-pair { grid-template-columns: 1fr; }
  .cs-features { grid-template-columns: 1fr; }
  .next-card { flex-direction: column; gap: 24px; }
  .next-card-image { flex: none; width: 100%; height: 200px; }
}
