/* ========================================
   LAW PAGES - AVANT-GARDE STYLING
   ======================================== */

/* Law Page Container */
.law-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A0A0F 0%, #1a1a2e 50%, #0A0A0F 100%);
  color: #F5F5F7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Law Hero Section */
.law-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.law-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(78, 168, 222, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.law-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #F5F5F7 0%, #4EA8DE 50%, #C6A15B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

.law-hero .subtitle {
  font-size: 1.5rem;
  color: #C6A15B;
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

.law-hero .statement {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.law-hero .statement strong {
  color: #4EA8DE;
  font-weight: 600;
}

/* Essence List */
.essence-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.essence-list li {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  background: rgba(78, 168, 222, 0.05);
  border-left: 3px solid #4EA8DE;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.essence-list li:hover {
  background: rgba(78, 168, 222, 0.1);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(78, 168, 222, 0.2);
}

/* Contrast Quote */
.contrast-quote {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 800px;
  background: linear-gradient(135deg, rgba(198, 161, 91, 0.1) 0%, rgba(78, 168, 222, 0.1) 100%);
  border-left: 4px solid #C6A15B;
  border-radius: 12px;
  font-size: 1.25rem;
  font-style: italic;
  color: #C6A15B;
  font-family: 'IBM Plex Serif', Georgia, serif;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(198, 161, 91, 0.15);
}

/* Section Styling */
.law-section {
  padding: 60px 0;
  position: relative;
}

.law-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #F5F5F7 0%, #4EA8DE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.law-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #4EA8DE 0%, #C6A15B 100%);
  border-radius: 2px;
}

.law-section h3 {
  font-size: 1.5rem;
  color: #4EA8DE;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Problem Cards */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.problem-card {
  padding: 2rem;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(78, 168, 222, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4EA8DE 0%, #C6A15B 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.problem-card:hover::before {
  transform: scaleX(1);
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(78, 168, 222, 0.25);
  border-color: rgba(78, 168, 222, 0.4);
}

.problem-card h4 {
  color: #C6A15B;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.problem-card p {
  line-height: 1.8;
  color: #D1D1D6;
}

.problem-card strong {
  color: #4EA8DE;
}

/* Application Cards */
.application-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.app-card {
  padding: 1.5rem;
  background: rgba(78, 168, 222, 0.05);
  border: 1px solid rgba(78, 168, 222, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.app-card:hover {
  background: rgba(78, 168, 222, 0.1);
  border-color: rgba(78, 168, 222, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 168, 222, 0.2);
}

.app-card h4 {
  color: #4EA8DE;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-card h4::before {
  content: '→';
  color: #C6A15B;
  font-size: 1.5rem;
}

/* Mental Commands */
.mental-commands {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(198, 161, 91, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(198, 161, 91, 0.2);
}

.mental-commands h4 {
  color: #C6A15B;
  margin-bottom: 1rem;
}

.mental-commands ul {
  list-style: none;
  padding: 0;
}

.mental-commands li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(198, 161, 91, 0.1);
  border-radius: 8px;
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-style: italic;
  color: #F5F5F7;
  transition: all 0.3s ease;
}

.mental-commands li:hover {
  background: rgba(198, 161, 91, 0.15);
  transform: translateX(8px);
}

/* Quick Test */
.quick-test {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(78, 168, 222, 0.3);
}

.test-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(78, 168, 222, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.test-item:hover {
  background: rgba(78, 168, 222, 0.1);
}

.test-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #4EA8DE;
}

.test-item label {
  flex: 1;
  cursor: pointer;
  line-height: 1.6;
}

/* Toolkit */
.toolkit {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(78, 168, 222, 0.05) 0%, rgba(198, 161, 91, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(78, 168, 222, 0.2);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.checklist li {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  margin-bottom: 0.75rem;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.checklist li::before {
  content: '☐';
  position: absolute;
  left: 1rem;
  color: #4EA8DE;
  font-size: 1.2rem;
}

.checklist li:hover {
  background: rgba(26, 26, 46, 0.8);
  transform: translateX(4px);
}

.metric {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(198, 161, 91, 0.1);
  border-left: 4px solid #C6A15B;
  border-radius: 8px;
}

.metric strong {
  color: #C6A15B;
  font-size: 1.1rem;
}

/* Connections */
.connections {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(78, 168, 222, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(78, 168, 222, 0.2);
  text-align: center;
}

.connections a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(78, 168, 222, 0.1);
  color: #4EA8DE;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(78, 168, 222, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.connections a:hover {
  background: rgba(78, 168, 222, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(78, 168, 222, 0.3);
}

/* Back to Home */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: rgba(198, 161, 91, 0.1);
  color: #C6A15B;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(198, 161, 91, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.back-home:hover {
  background: rgba(198, 161, 91, 0.2);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(198, 161, 91, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .law-hero {
    padding: 80px 0 60px;
  }
  
  .law-hero h1 {
    font-size: 2rem;
  }
  
  .problem-cards,
  .application-cards {
    grid-template-columns: 1fr;
  }
  
  .law-section {
    padding: 40px 0;
  }
}

/* Animation */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
   LAW1 - VIDEO SPLIT SCREEN
   ======================================== */

.video-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: rgba(26, 26, 46, 0.6);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(78, 168, 222, 0.2);
  transition: all 0.3s ease;
}

.video-wrapper:hover {
  border-color: rgba(78, 168, 222, 0.4);
  box-shadow: 0 8px 32px rgba(78, 168, 222, 0.25);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold);
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-style: italic;
}

.law1-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.law1-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

.law1-hero .hero-quote {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Law 2 Hero Styles */
.law2-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.law2-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

/* Law 3 Hero Styles */
.law3-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.law3-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

/* Law 4 Hero Styles */
.law4-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.law4-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

/* Law 4 Before/After Slider */
.gi-law4-demo {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 16px;
}

.gi-before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  background: #0a0a0f;
  touch-action: none;
}

.gi-before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.gi-before-after .after {
  z-index: 1;
}

.gi-before-after .before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path .1s ease-out;
}

/* Handle/slider control */
.gi-handle {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 4px;
  background: var(--accent);
  transform: translateX(-2px);
  z-index: 3;
  cursor: ew-resize;
  outline: none;
}

.gi-handle:focus {
  box-shadow: 0 0 0 4px rgba(255, 217, 61, .25);
}

.gi-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fffdf7;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.gi-caption {
  text-align: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Law 5 Hero Styles */
.law5-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.law5-hero .hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

/* Responsive for video/image split */
@media (max-width: 768px) {
  .video-split,
  .image-split,
  .image-triple {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .law1-hero h1,
  .law2-hero h1,
  .law3-hero h1,
  .law4-hero h1,
  .law5-hero h1 {
    font-size: 2rem;
  }
  
  .gi-before-after {
    border-radius: 12px;
  }
  
  .gi-grip {
    width: 28px;
    height: 28px;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .gi-before-after .before {
    transition: none;
  }
}