/* ==========================================================================
   Nano Page Specific Styles
   ========================================================================== */

/* Hero */
.nano-hero {
  padding: 110px 0 25px;
  text-align: center;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Subtle floating cell decoration */
.nano-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nano-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.nano-hero p {
  font-size: 1.05rem;
  color: #666;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

/* Tighter spacing for section after hero */
.nano-hero + .section {
  padding-top: 30px;
}

/* Video Player */
.video-player {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.video-player:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 60px rgba(10, 14, 39, 0.2),
    0 15px 30px rgba(123, 104, 238, 0.1);
}

.video-player video {
  width: 100%;
  display: block;
}

.video-title {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 25px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  pointer-events: none;
  text-align: left;
  max-width: 70%;
}

.video-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-title p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Video section - tighter spacing */
.video-section {
  padding-top: 30px !important;
  padding-bottom: 40px !important;
}

/* Purple Section */
.section-purple {
  background: linear-gradient(135deg, var(--color-primary) 0%, #5a4dc2 100%);
  color: white;
  text-align: center;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
.section-purple::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-purple::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-purple h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  letter-spacing: -0.01em;
}

.section-purple .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* Bundle Cards */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Decorative blob behind cards */
.bundle-grid::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.08), transparent 70%);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morphBlob 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.bundle-card {
  position: relative;
  background: white;
  border: 2px solid rgba(123, 104, 238, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.bundle-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.bundle-card.featured {
  background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
  border-color: var(--color-primary);
}

/* Push button to bottom of card */
.bundle-card .btn {
  margin-top: auto;
}

/* Fix btn-primary visibility */
.bundle-card .btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5a4dc2);
  color: white;
  border: none;
}

.popular-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-pink));
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(123, 104, 238, 0.4);
  margin-bottom: 15px;
}

.bundle-card h3 {
  font-size: 1.35rem;
  color: var(--color-text);
  margin-bottom: 15px;
}

.bundle-description {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.bundle-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  flex-grow: 1;
}

.bundle-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 0.95rem;
}

.bundle-features li:last-child {
  border-bottom: none;
}

.bundle-features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 10px;
}

@media (max-width: 900px) {
  .bundle-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Light Section for Form */
.section-light {
  background: #f8f9fa;
}

/* Narrow Container */
.container-narrow {
  max-width: 700px;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
}

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

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.form-group .required {
  font-weight: normal;
  color: #999;
  font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-purple);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-purple);
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
}

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

  .contact-form {
    padding: 25px;
  }
}

/* FAQ Section */
.faq-list {
  margin-top: 40px;
  position: relative;
}

/* DNA pattern decoration */
.faq-list::before {
  content: '';
  position: absolute;
  right: -150px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  background:
    linear-gradient(45deg, transparent 48%, rgba(123, 104, 238, 0.05) 49%, rgba(123, 104, 238, 0.05) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(0, 217, 255, 0.05) 49%, rgba(0, 217, 255, 0.05) 51%, transparent 52%);
  background-size: 20px 20px;
  animation: dnaFloat 20s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes dnaFloat {
  from { transform: translateY(-50%) translateX(0); }
  to { transform: translateY(-50%) translateX(-40px); }
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--color-accent-cyan);
  padding-left: 20px;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  color: var(--color-accent-cyan);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  padding: 0 15px;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5a4dc2);
  color: white;
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a4dc2, var(--color-primary));
  border-color: #5a4dc2;
}

/* Multi-Card Product Carousel */
.products-carousel-section {
  padding: 70px 0;
  background: #f8fafb;
}

.products-carousel-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 50px;
  color: var(--color-text);
  font-weight: 600;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  padding: 15px 0;
  margin: -15px 0;
}

.carousel-cards {
  display: flex;
  gap: 25px;
  transition: transform 0.4s ease-out;
}

.product-card {
  width: 31%; flex-basis: 31%;
  flex-shrink: 0;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease-out;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.01);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.product-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-nav {
  background: white;
  border: 2px solid var(--color-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.carousel-nav:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 5px 20px rgba(123, 104, 238, 0.3);
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

.carousel-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.carousel-nav:disabled:hover {
  background: white;
  color: var(--color-primary);
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Tablet: Show 2 cards */
@media (max-width: 900px) {
  .product-card {
    width: 47%; flex-basis: 47%;
  }
}

/* Mobile: Show 1 card centered */
@media (max-width: 600px) {
  .carousel-wrapper {
    gap: 8px;
    padding: 0 15px;
  }

  .carousel-container {
    overflow: hidden;
    width: 100%;
  }

  .carousel-cards {
    gap: 16px;
  }

  .product-card {
    min-width: 100%;
    width: 100%;
    flex-basis: 100%;
    flex-shrink: 0;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .carousel-nav svg {
    width: 16px;
    height: 16px;
  }

  .product-info p {
    -webkit-line-clamp: 2;
  }
}
