/* ========================
   CSS Variables - BeLogic AI Brand
   ======================== */
:root {
  --deep-black: #141622;
  --crystal-white: #FEFEFE;
  --royal-violet: #7106FD;
  --graphite-gray: #3C364C;
  --soft-silver: #EEEEEE;
  
  --border-subtle: rgba(238, 238, 238, 0.16);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ========================
   Webinar Banner
   ======================== */
.webinar-announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--royal-violet);
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.webinar-announcement-banner:hover {
  background-color: #5a04d4;
}

.webinar-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

.webinar-banner-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot-banner {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  animation: pulse-banner 2s ease-in-out infinite;
}

@keyframes pulse-banner {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.webinar-banner-live-text {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.webinar-banner-text {
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
}

@media (min-width: 640px) {
  .webinar-banner-text {
    font-size: 1rem;
  }
}

.webinar-banner-cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FEFEFE;
}

.webinar-banner-cta:hover {
  text-decoration: underline;
}

.separator-dot {
  display: none;
}

@media (min-width: 640px) {
  .separator-dot {
    display: inline;
  }
}

/* ========================
   Reset & Base Styles
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: #F8F9FA;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 3.5rem;
}

@media (min-width: 640px) {
  body {
    padding-top: 5rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

/* ========================
   Layout
   ======================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ========================
   Header
   ======================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: 1rem;
  height: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .header-content {
    height: 5rem;
    padding: 0 1.5rem;
  }
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-image {
  height: 2.5rem;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--crystal-white);
}

@media (min-width: 640px) {
  .logo-image {
    height: 3rem;
  }
  .logo-text {
    font-size: 1.5rem;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soft-silver);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--royal-violet);
}

/* Back Link */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--crystal-white);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--soft-silver);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--crystal-white);
  transition: color 0.2s;
}

.mobile-menu-button:hover {
  color: var(--royal-violet);
}

@media (min-width: 1024px) {
  .mobile-menu-button {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--deep-black);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 200;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-header h3 {
  color: var(--crystal-white);
  margin: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--crystal-white);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mobile-menu-close:hover {
  opacity: 0.7;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  color: var(--soft-silver);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--crystal-white);
}

.mobile-cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--royal-violet);
  color: var(--crystal-white);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  margin-top: auto;
}

.mobile-cta-button:hover {
  background-color: rgba(113, 6, 253, 0.9);
  transform: translateY(-2px);
}

/* ========================
   Buttons & CTAs
   ======================== */
.cta-button {
  display: none;
  padding: 0.625rem 1.5rem;
  background-color: var(--royal-violet);
  color: var(--crystal-white);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .cta-button {
    display: inline-flex;
    align-items: center;
  }
}

.cta-button:hover {
  background-color: rgba(113, 6, 253, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(113, 6, 253, 0.5);
}

.cta-button-large {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--royal-violet);
  color: white;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  transition: all 0.2s;
  border: none;
}

@media (max-width: 640px) {
  .cta-button-large {
    padding: 0.875rem 1.5rem;
  }
}

.cta-button-large:hover {
  background-color: #5c05d4;
  transform: translateY(-2px);
}

/* ========================
   Hero Section
   ======================== */
.hero-section {
  padding: 4rem 0 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2rem 0 1rem;
  }
}

.hero-title {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: #6b7280;
}

/* ========================
   Controls Section
   ======================== */
.controls-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .controls-section {
    padding: 1.5rem 0;
  }
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 640px) {
  .controls-wrapper {
    gap: 0.75rem;
  }
}

/* Search & Reset Row */
.search-reset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .search-reset-row {
    gap: 0.5rem;
  }
}

.search-box {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

@media (max-width: 640px) {
  .search-icon {
    width: 16px;
    height: 16px;
    left: 0.75rem;
  }
}

#search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #1a1a1a;
  font-size: 1rem;
  transition: all 0.2s;
}

@media (max-width: 640px) {
  #search-input {
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    font-size: 0.875rem;
  }
}

#search-input:focus {
  outline: 2px solid var(--royal-violet);
  outline-offset: 0;
  border-color: var(--royal-violet);
}

#search-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Filter Tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .filter-tags {
    gap: 0.375rem;
    justify-content: flex-start;
  }
}

.filter-tag {
  padding: 0.5rem 1rem;
  background-color: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

@media (max-width: 640px) {
  .filter-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

.filter-tag:hover {
  border-color: var(--royal-violet);
  color: var(--royal-violet);
  background-color: rgba(113, 6, 253, 0.05);
}

.filter-tag.active {
  background-color: var(--royal-violet);
  border-color: var(--royal-violet);
  color: white;
}

.reset-button {
  padding: 0.75rem 1.25rem;
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .reset-button {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
}

.reset-button:hover {
  color: #374151;
  border-color: #d1d5db;
  background-color: #f9fafb;
  transform: translateY(-1px);
}

/* ========================
   Cases Grid
   ======================== */
.cases-section {
  padding: 3rem 0;
  min-height: 400px;
}

@media (max-width: 640px) {
  .cases-section {
    padding: 2rem 0;
    min-height: 300px;
  }
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================
   Case Card
   ======================== */
.case-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 640px) {
  .case-card {
    padding: 1.25rem;
  }
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(113, 6, 253, 0.15), 0 8px 10px -6px rgba(113, 6, 253, 0.1);
  border-color: var(--royal-violet);
}

.case-card:focus-visible {
  outline: 2px solid var(--royal-violet);
  outline-offset: 2px;
}

/* Case Card Header with Character */
.case-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.case-card-content {
  flex: 1;
  min-width: 0;
}

.case-card-character {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(113, 6, 253, 0.1) 0%, rgba(113, 6, 253, 0.05) 100%);
  box-shadow: 0 4px 12px rgba(113, 6, 253, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover .case-card-character {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 20px rgba(113, 6, 253, 0.25);
}

.character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .case-card-character {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .case-card-character {
    width: 110px;
    height: 110px;
  }
}

.case-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.case-card-summary {
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-tag {
  padding: 0.25rem 0.75rem;
  background-color: rgba(113, 6, 253, 0.1);
  color: var(--royal-violet);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.case-card-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.kpi-badge {
  padding: 0.375rem 0.875rem;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.case-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--royal-violet);
  font-weight: 600;
  font-size: 0.9375rem;
}

.case-card:hover .case-card-footer {
  gap: 0.75rem;
}

/* ========================
   No Results
   ======================== */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
}

.no-results p {
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* ========================
   Case Detail Page
   ======================== */
.case-detail-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .case-detail-hero {
    padding: 1.5rem 0 1rem;
  }
}

.case-detail-title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .case-detail-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
}

.case-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
}

@media (max-width: 640px) {
  .case-detail-meta {
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .meta-label {
    font-size: 0.6875rem;
  }
}

.meta-value {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

@media (max-width: 640px) {
  .meta-value {
    font-size: 0.875rem;
  }
}

.case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-detail-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.kpi-badge-large {
  padding: 0.625rem 1.25rem;
  background-color: var(--royal-violet);
  color: white;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .kpi-badge-large {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

.case-detail-content {
  padding: 3rem 0;
}

@media (max-width: 640px) {
  .case-detail-content {
    padding: 1.5rem 0;
  }
}

.content-section {
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .content-section {
    margin-bottom: 1.5rem;
  }
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-size: 1.875rem;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--royal-violet);
  font-size: 1.125rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .content-section h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

.content-section p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .content-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.875rem;
  }
}

.content-section ul {
  list-style: none;
  margin: 1rem 0;
}

.content-section li {
  padding-left: 1.5rem;
  position: relative;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .content-section li {
    font-size: 0.9375rem;
    padding-left: 1.25rem;
    margin-bottom: 0.625rem;
  }
}

.content-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--royal-violet);
  font-weight: 700;
}

.content-section strong {
  color: #1a1a1a;
  font-weight: 600;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stack-badge {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ========================
   Static Case Detail Pages
   ======================== */
.case-detail {
  min-height: 50vh;
}

.case-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .case-header {
    padding: 1rem 0 0.75rem;
  }
}

.case-title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #1a1a1a;
  font-weight: 700;
}

@media (max-width: 640px) {
  .case-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

.case-summary {
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .case-summary {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
  }
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
}

@media (max-width: 640px) {
  .case-meta {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .case-tags {
    gap: 0.375rem;
  }
}

.case-tags .tag {
  padding: 0.375rem 0.875rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .case-tags .tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

.case-body {
  padding: 3rem 0;
}

@media (max-width: 640px) {
  .case-body {
    padding: 1rem 0;
  }
}

.case-section {
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .case-section {
    margin-bottom: 1rem;
  }
}

.case-section h2 {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 640px) {
  .case-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

.case-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--royal-violet);
  font-size: 1.125rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .case-section h3 {
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    margin-bottom: 0.375rem;
  }
}

.case-section p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .case-section p {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }
}

.case-section ul,
.case-section ol {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .case-section ul,
  .case-section ol {
    margin: 0.5rem 0;
  }
}

.case-section ol {
  counter-reset: list-counter;
}

.case-section li {
  padding-left: 1.75rem;
  position: relative;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .case-section li {
    font-size: 0.8125rem;
    padding-left: 1.25rem;
    margin-bottom: 0.375rem;
    line-height: 1.5;
  }
}

.case-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--royal-violet);
  font-weight: 700;
}

.case-section ol li {
  counter-increment: list-counter;
}

.case-section ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--royal-violet);
  font-weight: 700;
}

.case-section li ul {
  margin-top: 0.5rem;
}

.case-section li ul li::before {
  content: "•";
  color: var(--royal-violet);
  font-weight: 700;
}

.case-section strong {
  color: #1a1a1a;
  font-weight: 700;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.results-list li {
  padding-left: 1.75rem;
  position: relative;
  color: #4b5563;
  margin-bottom: 0.875rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.results-list strong {
  color: #1a1a1a;
  font-weight: 700;
}

.results-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--royal-violet);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Compact Results Section */
.results-compact {
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .results-compact {
    margin-bottom: 0.75rem;
  }
}

.results-list-compact {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.results-list-compact li {
  padding-left: 1.25rem;
  position: relative;
  color: #4b5563;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.results-list-compact li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--royal-violet);
  font-weight: 700;
}

.results-list-compact strong {
  color: var(--royal-violet);
  font-weight: 700;
}

@media (max-width: 640px) {
  .results-list-compact li {
    font-size: 0.8125rem;
    padding-left: 1rem;
    margin-bottom: 0.375rem;
  }
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.kpis-section {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 3rem;
}

@media (max-width: 640px) {
  .kpis-section {
    padding: 1rem 0.75rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
  }
}

.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .kpis-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
}

.kpi-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}

@media (max-width: 640px) {
  .kpi-card {
    padding: 0.625rem 0.5rem;
    border-radius: 0.5rem;
  }
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--royal-violet);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .kpi-value {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
}

.kpi-label {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .kpi-label {
    font-size: 0.625rem;
    line-height: 1.3;
  }
}

/* ========================
   CTA Section
   ======================== */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--royal-violet) 0%, #5c05d4 100%);
}

@media (max-width: 640px) {
  .cta-section {
    padding: 1.5rem 0;
  }
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
  color: white;
  font-size: 2rem;
}

@media (max-width: 640px) {
  .cta-content h2 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

.cta-content p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 2vw, 1.125rem);
}

@media (max-width: 640px) {
  .cta-content p {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
  }
}

.cta-button-large {
  background-color: white;
  color: var(--royal-violet);
}

.cta-button-large:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* ========================
   Footer
   ======================== */
.site-footer {
  padding: 1.5rem 0;
  background-color: var(--deep-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .site-footer {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: 4rem 0;
  }
}

.footer-content {
  text-align: center;
  color: var(--crystal-white);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--crystal-white);
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
}

.footer-text {
  color: var(--soft-silver);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--crystal-white);
}

.footer-description {
  color: var(--soft-silver);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-heading {
  font-weight: 700;
  color: var(--crystal-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--soft-silver);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--crystal-white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-silver);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--crystal-white);
}

.footer-contact-link svg {
  flex-shrink: 0;
  color: var(--royal-violet);
}

.footer-icon-violet {
  color: var(--royal-violet);
}

.footer-linkedin-link {
  margin-bottom: 1rem;
}

.footer-linkedin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-silver);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
}

.footer-linkedin:hover {
  color: var(--crystal-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft-silver);
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--crystal-white);
}

.footer-cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  background-color: var(--royal-violet);
  color: var(--crystal-white);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-align: center;
}

.footer-cta-button:hover {
  background-color: rgba(113, 6, 253, 0.9);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--soft-silver);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: var(--soft-silver);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: var(--crystal-white);
}

/* ========================
   Error Page
   ======================== */
.error-container {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 500px;
  padding: 2rem;
}

.error-content h1 {
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.error-content p {
  margin-bottom: 2rem;
  color: #6b7280;
  font-size: 1.125rem;
}

/* ========================
   Accessibility & Focus
   ======================== */
*:focus-visible {
  outline: 2px solid var(--royal-violet);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================
   Loading State
   ======================== */
.loading {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

/* ========================
   Contact Modal
   ======================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.contact-modal.active {
  display: flex;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.contact-modal-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  width: 90%;
  max-width: 640px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.3s ease-out;
  padding: 1.5rem;
  overflow-y: auto;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-black);
  margin-bottom: 0.5rem;
}

.contact-modal-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
  transition: color 0.2s;
  flex-shrink: 0;
  height: fit-content;
}

.contact-modal-close:hover {
  color: var(--deep-black);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--deep-black);
  font-size: 0.875rem;
}

.required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--royal-violet);
  box-shadow: 0 0 0 3px rgba(113, 6, 253, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  min-height: 1rem;
}

.form-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--royal-violet);
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.form-submit:hover:not(:disabled) {
  background-color: rgba(113, 6, 253, 0.9);
  transform: translateY(-2px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========================
   Toast Notifications
   ======================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1100;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.toast-success {
  color: #10b981;
}

.toast-error {
  color: #ef4444;
}

.toast-title {
  font-weight: 600;
  color: var(--deep-black);
  margin-bottom: 0.25rem;
}

.toast-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
}
