:root {
  color-scheme: dark;
  --p24-primary: #FF9F1C;
  --p24-primary-hover: #FFBF69;
  --p24-secondary: #2EC4B6;
  --p24-accent: #CBF3F0;
  --p24-bg: #0F172A;
  --p24-bg-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --p24-text: #F8FAFC;
  --p24-text-muted: #94A3B8;
  --p24-glass: rgba(255, 255, 255, 0.05);
  --p24-glass-border: rgba(255, 255, 255, 0.1);
  --p24-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Baloo 2', system-ui, -apple-system, sans-serif;
  background: var(--p24-bg);
  color: var(--p24-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.p24-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.p24-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6vw;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--p24-glass-border);
  transition: all 0.3s ease;
}

.p24-logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.p24-logo-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.3));
  transition: transform 0.3s ease;
}

.p24-logo-container:hover .p24-logo-img {
  transform: rotate(10deg) scale(1.1);
}

.p24-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: linear-gradient(to right, #fff, var(--p24-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p24-nav a {
  margin-left: 2rem;
  color: var(--p24-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  position: relative;
}

.p24-nav a:hover {
  opacity: 1;
  color: var(--p24-primary);
}

.p24-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--p24-primary);
  transition: width 0.3s ease;
}

.p24-nav a:hover::after {
  width: 100%;
}

.p24-nav-link-login {
  margin-left: 1rem;
  font-weight: 600;
  color: var(--p24-text);
  text-decoration: none;
}

.p24-nav-phone-btn {
  display: flex;
  align-items: center;
  color: var(--p24-primary);
  border: 1px solid var(--p24-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-left: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.p24-nav-phone-btn:hover {
  background: rgba(255, 159, 28, 0.1);
  box-shadow: 0 0 15px rgba(255, 159, 28, 0.3);
}

.p24-nav-phone-icon {
  margin-right: 0.5rem;
}

/* Hero Section */
.p24-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Header offset */
  overflow: hidden;
}

.p24-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4) saturate(1.1);
  z-index: 0;
}

.p24-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--p24-bg) 100%);
  z-index: 1;
}

.p24-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 6vw;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p24-hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 159, 28, 0.15);
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: 50px;
  color: var(--p24-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  animation: float 3s ease-in-out infinite;
}

.p24-hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(135deg, var(--p24-primary) 0%, #FF5E5B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p24-hero-subtitle {
  font-size: 1.25rem;
  color: var(--p24-text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.p24-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

.p24-demo-group {
  flex-wrap: wrap;
  justify-content: center;
}

.p24-hero-cta {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: var(--p24-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
}

.p24-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.6);
  background: var(--p24-primary-hover);
}

.p24-hero-cta--secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.p24-hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.p24-hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  perspective: 1000px;
}

.p24-hero-feature {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--p24-glass-border);
  border-radius: 24px;
  padding: 2rem;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.p24-hero-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.p24-hero-feature:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: var(--p24-primary);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

.p24-hero-feature:hover::before {
  opacity: 1;
}

.feature-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.p24-hero-feature:hover .feature-icon-img {
  transform: scale(1.1) rotate(5deg);
}

.p24-hero-feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.p24-hero-feature p {
  font-size: 0.95rem;
  color: var(--p24-text-muted);
}

/* Main Content */
.p24-main {
  background: var(--p24-bg);
  padding: 0; /* Reset padding for full-width sections */
  position: relative;
}

/* Detailed Features Section */
.p24-features-section {
  padding: 6rem 6vw;
  background: var(--p24-bg);
  position: relative;
}

.p24-features-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  background: linear-gradient(to right, #fff, var(--p24-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p24-feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.p24-feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.p24-feature-content {
  flex: 1;
}

.p24-feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  padding: 3rem;
  border: 1px solid var(--p24-glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  min-height: 300px;
}

.p24-feature-visual img,
.p24-feature-visual video {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.p24-feature-row:hover .p24-feature-visual img,
.p24-feature-row:hover .p24-feature-visual video {
  transform: scale(1.02);
}

.p24-feature-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--p24-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.p24-feature-content p {
  font-size: 1.1rem;
  color: var(--p24-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.p24-feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.p24-feature-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--p24-text);
}

.p24-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--p24-secondary);
  font-weight: bold;
}

/* About / Mission Section */
.p24-mission-section {
  padding: 6rem 6vw;
  background: linear-gradient(180deg, var(--p24-bg) 0%, #162032 100%);
  text-align: center;
}

.p24-mission-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--p24-glass-border);
  border-radius: 40px;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.p24-mission-container::before {
  content: '"';
  position: absolute;
  top: 2rem;
  left: 3rem;
  font-size: 10rem;
  color: var(--p24-primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.p24-mission-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.p24-mission-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--p24-text-muted);
  margin-bottom: 2rem;
}

.p24-mission-highlight {
  color: var(--p24-secondary);
  font-weight: 600;
}

.p24-section {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.p24-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--p24-text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p24-section p {
  font-size: 1.1rem;
  color: var(--p24-text-muted);
  margin-bottom: 1rem;
}

.p24-section a {
  color: var(--p24-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--p24-primary);
  transition: all 0.2s;
}

.p24-section a:hover {
  color: var(--p24-primary-hover);
  border-bottom-style: solid;
}

/* Footer */
.p24-footer {
  background: #020617;
  padding: 3rem 6vw;
  text-align: center;
  color: var(--p24-text-muted);
  border-top: 1px solid var(--p24-glass-border);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .p24-feature-row {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
  }
  
  .p24-feature-row:nth-child(even) {
    flex-direction: column;
  }
  
  .p24-feature-content h3 {
    justify-content: center;
  }
  
  .p24-feature-list {
    text-align: left;
    display: inline-block;
  }
  
  .p24-mission-container {
    padding: 2rem;
  }
  
  .p24-mission-container::before {
    display: none;
  }

  .p24-feature-visual {
    padding: 1.5rem;
    min-height: auto;
  }

  .p24-feature-visual img {
    border-radius: 15px;
  }
}

@media (max-width: 768px) {
  .p24-header {
    padding: 1rem 5vw;
  }
  
  .p24-logo-text {
    font-size: 1.2rem;
  }
  
  .p24-nav {
    display: none; /* Simple hide for now, could be hamburger */
  }
  
  .p24-hero h1 {
    font-size: 2.5rem;
  }
  
  .p24-hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .p24-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .p24-hero-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) and (max-height: 700px) {
  .p24-hero {
    padding-top: 64px;
  }

  .p24-hero-badge {
    margin-bottom: 1rem;
  }

  .p24-hero h1 {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .p24-hero-subtitle {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }

  .p24-cta-group {
    margin-bottom: 1.5rem;
  }

  .p24-demo-group {
    margin-top: 0.5rem;
  }

  .p24-hero-features {
    display: none;
  }
}

@media (max-width: 768px) and (max-height: 670px) {
  .p24-hero {
    align-items: flex-start;
  }

  .p24-hero-content {
    padding-top: 0.5rem;
  }

  .p24-hero-badge {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .p24-hero h1 {
    font-size: clamp(2rem, 6.5vw, 2.7rem);
    margin-bottom: 0.75rem;
  }

  .p24-hero-subtitle {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
  }

  .p24-cta-group {
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    max-width: 260px;
  }

  .p24-hero-cta {
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
  }

  .p24-demo-group {
    margin-top: 0.25rem;
  }

  .p24-demo-group .p24-hero-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* --- Image Lightbox (Zoom Feature) --- */
.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  padding: 2vw;
  backdrop-filter: blur(8px);
}

.image-lightbox.show {
  display: flex;
}

.image-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.image-lightbox .lightbox-content {
  position: relative;
  display: inline-block;
  max-width: 96vw;
  max-height: 85vh;
  overflow: visible;
}

.image-lightbox .lightbox-img {
  max-width: 96vw;
  max-height: 85vh;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 0.15s ease;
  cursor: zoom-out;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox .lightbox-img.zoomed {
  cursor: move;
}

.image-lightbox .lightbox-controls {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 5;
}

.image-lightbox .zoom-btn,
.image-lightbox .download-btn {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  font-family: inherit;
}

.image-lightbox .zoom-btn {
  width: 48px;
  border-radius: 50%;
  font-size: 24px;
}

.image-lightbox .download-btn {
  padding: 0 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
}

.image-lightbox .zoom-btn:hover,
.image-lightbox .download-btn:hover {
  background: var(--p24-primary);
  border-color: var(--p24-primary);
  transform: translateY(-2px);
}

.image-lightbox .zoom-btn:active,
.image-lightbox .download-btn:active {
  transform: scale(0.95);
}

body.modal-open {
  overflow: hidden;
}

/* Indicators for zoomable images */
.zoomable-image {
  transition: all 0.3s ease;
}

.zoomable-image:hover {
  filter: brightness(1.1);
}
