/* ==========================================================================
   Tandem Cards, Lists, Forms & Interactive Sliders
   ========================================================================== */

/* --- 0. Reusable Feature Lists, Steps & Form Inputs --- */

/* Feature Checklist */
.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: calc(var(--space-xs) / 2);
  /* aligns check icon with the first text line */
}

@media (max-width: 768px) {
  .check-icon {
    width: 24px;
    height: 24px;
    margin-top: calc(var(--space-xs) / 2);
  }
}

/* Automatically align check icon to center if there's only a single line/element in feature-text */
.feature-item:has(.feature-text > :only-child) {
  align-items: center;
}

.feature-item:has(.feature-text > :only-child) .check-icon {
  margin-top: 0;
}

/* Modifier class to align check icon vertically to center (for single-line lists) */
.feature-item.align-center {
  align-items: center;
}

.feature-item.align-center .check-icon {
  margin-top: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Numbered Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.step-item {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.step-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(146, 58, 255, 0.1);
  border: 1px solid rgba(146, 58, 255, 0.3);
  border-radius: var(--radius-sharp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-purple);
}

/* Models Banner */
.models-banner {
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.idea-icon-box {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idea-icon {
  width: 100%;
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

/* Input / Form Components */
.input-wrapper {
  display: flex;
  align-items: center;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sharp);
  padding: 0 var(--space-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.input-wrapper:focus-within {
  border-color: var(--primary-purple);
  box-shadow: 0 0 12px rgba(146, 58, 255, 0.2);
}

.input-wrapper.textarea {
  height: auto;
  padding: var(--space-md) var(--space-lg);
}

.input-wrapper.textarea textarea {
  resize: none;
  min-height: 120px;
}

.input-prefix {
  color: var(--secondary-grey-purple);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  margin-right: var(--space-xs);
  user-select: none;
}

.input-field {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  width: 100%;
  height: 100%;
  outline: none;
}

.input-field::placeholder {
  color: var(--secondary-grey-purple);
  opacity: 0.8;
}

/* --- 1. Glassmorphism Panels & Cards --- */
.glass-panel {
  background: var(--bg-card-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-sharp);
}

.interactive-card {
  position: relative;
}

.card-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.glass-card {
  width: 100%;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 5;
}

/* --- 1.2 Under-Glass Card Decor Overlay Primitive --- */
.decor-wrapper {
  position: relative;
  width: 100%;
}

.card-decor {
  position: absolute;
  z-index: 2;
  /* Layered strictly behind the glass card background (z-index: 5) */
  pointer-events: none;
  /* Prevent blocking mouse tilts / clicks */
}


/* Purple Card Modifier */
.purple-card {
  background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--secondary-blue-purple) 100%);
  border: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.card-desc {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --- 2. Card Grids --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  width: 100%;
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-2xl);
  gap: var(--space-lg);
  flex: 1 1 0;
  min-width: 0;
}

.grid-card-icon,
.positioning-card-icon {
  width: var(--card-icon-size);
  height: var(--card-icon-size);
  flex-shrink: 0;
}

@media (max-width: 768px) {

  .grid-card.card-row,
  .grid-card.row {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: var(--space-xl) var(--space-2xl);
    gap: var(--space-xl);
  }

  .grid-card-icon,
  .positioning-card-icon {
    width: 48px;
    height: 48px;
  }
}

.award-img {
  width: auto;
  height: 240px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

/* --- 3. Slider Component --- */
.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-container {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 var(--space-lg) var(--space-xs) var(--space-lg);
  scroll-padding-left: var(--space-lg);
  cursor: grab;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider-container::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: var(--space-lg);
}

@media (min-width: 1400px) {
  .slider-container {
    padding-left: calc((100% - 1400px) / 2 + var(--space-lg));
    padding-right: 0;
    scroll-padding-left: calc((100% - 1400px) / 2 + var(--space-lg));
  }

  .slider-container::after {
    width: calc((100% - 1400px) / 2 + var(--space-lg));
  }
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-container.active {
  cursor: grabbing;
}

.slider-img {
  flex-shrink: 0;
  width: 638px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sharp);
  scroll-snap-align: start;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
}

.feedback-slider-wrapper {
  position: relative;
  width: 100%;
  z-index: 5;
}

.feedback-slider-container {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 var(--space-lg) var(--space-sm) var(--space-lg);
  scroll-padding-left: var(--space-lg);
  cursor: grab;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.feedback-slider-container::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: var(--space-lg);
}

@media (min-width: 1400px) {
  .feedback-slider-container {
    padding-left: calc((100% - 1400px) / 2 + var(--space-lg));
    padding-right: 0;
    scroll-padding-left: calc((100% - 1400px) / 2 + var(--space-lg));
  }

  .feedback-slider-container::after {
    width: calc((100% - 1400px) / 2 + var(--space-lg));
  }
}

.feedback-slider-container::-webkit-scrollbar {
  display: none;
}

.feedback-slider-container.active {
  cursor: grabbing;
}

.slider-scrollbar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin-top: var(--space-xl);
  border-radius: var(--radius-sharp);
}

.slider-scrollbar-thumb {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple-dark) 0%, var(--secondary-blue-purple) 100%);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: var(--radius-sharp);
}

/* --- 4. Testimonial Feedback Cards --- */
.feedback-card {
  flex-shrink: 0;
  width: 518px;
  padding: var(--space-3xl);
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-radius: var(--radius-sharp);
}

.feedback-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(146, 58, 255, 0.4);
  flex-shrink: 0;
  align-self: flex-start;
  object-fit: cover;
  will-change: transform;
}

@media (max-width: 768px) {
  .feedback-card-avatar {
    box-shadow: none;
  }
}

.feedback-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--text-white);
  margin: 0;
}



/* ==========================================================================
   Responsive Components overrides
   ========================================================================== */
@media (max-width: 1280px) {
  .glass-card {
    padding: var(--space-2xl);
  }

  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .card-grid>*:last-child:nth-child(odd),
  .card-grid.cols-3>*:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .feedback-card {
    width: 420px;
  }
}

@media (max-width: 768px) {
  .glass-card {
    padding: var(--space-xl);
  }

  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .grid-card {
    padding: var(--space-2xl) var(--space-xl);
  }

  .grid-card.card-row,
  .grid-card.row {
    padding: var(--space-lg) var(--space-xl);
    gap: var(--space-md);
  }

  .slider-img {
    width: 80vw;
    max-width: 320px;
    height: 180px;
  }

  .feedback-card {
    width: 85vw;
    max-width: 380px;
    padding: var(--space-xl);
  }
}

/* --- 5. Meet Us & Our Team Sections --- */
.meet-us-section,
.our-team-section {
  position: relative;
  overflow: visible;
}

/* --- 6. Testimonials (Partner Feedback) Section --- */
.partner-feedback-section {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: var(--space-4xl) 0;
}

.partner-feedback-section .piramid-decor-wrapper-right {
  position: absolute;
  top: calc(52% - 80px);
  right: 40px;
  transform: translateY(-50%) rotate(-31.91deg);
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .partner-feedback-section .piramid-decor-wrapper-right {
    display: none;
  }
}

.partner-feedback-section .piramid-decor-img-right {
  width: 220px;
  height: 200px;
  object-fit: contain;
}

.partner-feedback-section .piramid-glow-right {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-purple-rgb), 0.2) 0%, rgba(var(--primary-purple-rgb), 0) 75%);
  z-index: -1;
  pointer-events: none;
}

/* --- 7. Team Verification Section --- */
.team-check-section {
  position: relative;
  overflow: visible;
}

.verify-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.verify-panel {
  width: 100%;
  max-width: 1000px;
  padding: var(--space-3xl);
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .verify-panel {
    padding: var(--space-xl);
  }
}

.verify-content {
  max-width: 900px;
  position: relative;
  z-index: 5;
}

.verify-content h3 {
  margin-top: var(--space-md);
  max-width: 90%;
}

.verify-form {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: 500px;
}

@media (max-width: 768px) {
  .verify-form {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }
}

.verify-form .input-wrapper {
  width: 325px;
}

@media (max-width: 768px) {
  .verify-form .input-wrapper {
    width: 100%;
  }
}

.verify-form .verify-btn {
  height: 60px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .verify-form .verify-btn {
    width: 100%;
  }
}

.verify-result-msg {
  margin-top: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  min-height: 0;
  height: 0;
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease, height 0.3s ease;
  overflow: hidden;
}

.verify-result-msg.show {
  margin-top: var(--space-lg);
  min-height: 24px;
  height: auto;
  opacity: 1;
  transform: translateY(0);
}

.verify-result-msg.success {
  color: var(--color-success);
}

.verify-result-msg.error {
  color: var(--color-error);
}

.team-check-section .cylinder-decor-wrapper {
  position: absolute;
  right: -60px;
  top: -120px;
  width: 260px;
  height: 290px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .team-check-section .cylinder-decor-wrapper {
    display: none;
  }
}

.team-check-section .cylinder-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-check-section .cylinder-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(var(--primary-purple-rgb), 0.16) 0%, rgba(var(--primary-purple-rgb), 0) 70%);
  z-index: -1;
  pointer-events: none;
  left: -90px;
  top: -80px;
}

/* --- 8. Call To Action (CTA) Section --- */
.cta-section {
  position: relative;
  overflow: visible;
  padding: var(--space-4xl) 0;
}

.cta-box {
  background-color: var(--bg-pure-black);
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: var(--space-4xl);
  width: 100%;
  overflow: visible;
}

@media (max-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 0;
  }
}

.cta-box .card-border-svg {
  z-index: 20;
}

.cta-box .card-border-svg rect {
  stroke-width: 10px;
}

@media (max-width: 768px) {
  .cta-box .card-border-svg rect {
    stroke-width: 6px;
  }
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 11;
  padding: var(--space-3xl) 0 var(--space-3xl) var(--space-3xl);
}

@media (max-width: 768px) {
  .cta-content {
    padding: var(--space-xl) var(--space-xl) 0 var(--space-xl);
  }
}

.cta-content .btn-primary {
  margin-top: var(--space-xl);
}

.cta-video-wrapper {
  position: relative;
  z-index: 6;
  overflow: hidden;
  display: flex;
  opacity: 0;
}

@media (max-width: 768px) {
  .cta-video-wrapper {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: auto;
    aspect-ratio: 16 / 9;
    margin-top: 0;
  }
}

.cta-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Low-Performance Device Graceful Fallbacks (Budget Hardware Only)
   ========================================================================== */
html.low-perf .glass-panel,
body.low-perf .glass-panel,
html.low-perf .glass-card,
body.low-perf .glass-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(28, 22, 38, 0.95) !important;
}

html.low-perf .has-glow::before,
body.low-perf .has-glow::before {
  display: none !important;
}

html.low-perf .hero-video,
body.low-perf .hero-video {
  display: none !important;
}

html.low-perf .hero-lcp-image,
body.low-perf .hero-lcp-image {
  opacity: 1 !important;
  display: block !important;
}