/* ============================================================
   QUBIQ SCORECARD LANDING PAGE — DESIGN SYSTEM
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #814AC8;
  --primary-light: #9B5DE5;
  --primary-dark: #713BDD;
  --secondary: #C066FD;
  --bg-dark-1: #0F0A1F;
  --bg-dark-2: #1B0F3B;
  --bg-dark-3: #2A145A;
  --bg-dark-4: #120E24;
  --text-white: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dark: #1A1A1A;
  --success: #4CAF50;
  --danger: #E53935;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(129, 74, 200, 0.3);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  --container-narrow: 800px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--bg-dark-1);
  overflow-x: hidden;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
}

strong {
  color: var(--text-white);
  font-weight: 600;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section__heading {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 24px;
}

.section__subheading {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50px;
}

.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(129, 74, 200, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.btn--full {
  width: 100%;
}


/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.section--hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(129, 74, 200, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero__headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subheadline {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__trust {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ============================================================
   SECTION 2: PROBLEM
   ============================================================ */
.section--problem {
  background: var(--bg-dark-4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--problem .section__heading {
  font-size: 2rem;
  margin-bottom: 40px;
}

.problem__copy p {
  margin-bottom: 20px;
}

.problem__copy p:last-child {
  margin-bottom: 0;
}

.problem__closing {
  margin-top: 32px;
  padding: 24px;
  border-left: 4px solid var(--primary);
  background: rgba(129, 74, 200, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}


/* ============================================================
   SECTION 3: OFFER
   ============================================================ */
.section--offer {
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
}

.section--offer .section__heading {
  text-align: center;
}

.section--offer .section__subheading {
  text-align: center;
}

.offer__intro {
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.fascinations {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fascination {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.fascination:hover {
  border-color: var(--border-glow);
}

.fascination__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.fascination__content {
  line-height: 1.7;
}


/* ============================================================
   SECTION 4: VALUE STACK
   ============================================================ */
.section--value {
  background: var(--bg-dark-3);
}

.section--value .section__heading {
  text-align: center;
  margin-bottom: 48px;
}

.value-stack {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.value-stack__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--primary);
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-stack__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.value-stack__row:last-child {
  border-bottom: none;
}

.value-stack__row:hover {
  background: rgba(129, 74, 200, 0.06);
}

.value-stack__item {
  font-size: 1rem;
  color: var(--text-white);
  padding-right: 16px;
}

.value-stack__price {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 500;
}

.value-total {
  text-align: center;
  margin-top: 48px;
}

.value-total__value {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.value-total__value span {
  color: var(--text-muted);
  text-decoration: line-through;
}

.value-total__cost {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
}

.value-total__cost span {
  color: var(--success);
}

.value-why {
  margin-top: 40px;
  text-align: center;
}

.value-why p {
  margin-bottom: 16px;
}

.value-why__closing {
  font-size: 1.25rem;
  margin-top: 8px;
}


/* ============================================================
   SECTION 5: PROOF
   ============================================================ */
.section--proof {
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%);
}

.section--proof .section__heading {
  text-align: center;
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 48px;
}

.proof__narrative {
  margin-bottom: 64px;
}

.proof__narrative p {
  margin-bottom: 20px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.metric-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.metric-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 40px rgba(129, 74, 200, 0.1);
}

.metric-card__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.testimonial__name {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.95rem;
}

.testimonial__title {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ============================================================
   SECTION 6: QUALIFICATION
   ============================================================ */
.section--qualify {
  background: var(--bg-dark-4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section--qualify .section__heading {
  text-align: center;
  margin-bottom: 48px;
}

.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.qualify-col__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
}

.qualify-col--yes .qualify-col__title {
  border-color: var(--success);
}

.qualify-col--no .qualify-col__title {
  border-color: var(--danger);
}

.qualify-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qualify-item {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.qualify-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.qualify-icon--yes {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid var(--success);
}

.qualify-icon--yes::after {
  content: '\2713';
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}

.qualify-icon--no {
  background: rgba(229, 57, 53, 0.15);
  border: 1px solid var(--danger);
}

.qualify-icon--no::after {
  content: '\2717';
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
}

.qualify__closing {
  text-align: center;
  font-size: 1.125rem;
  margin-top: 48px;
  color: var(--text-white);
}


/* ============================================================
   SECTION 7: HOW IT WORKS
   ============================================================ */
.section--how {
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
}

.section--how .section__heading {
  text-align: center;
  margin-bottom: 64px;
}

.steps {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 48px;
}

.step:last-child {
  padding-bottom: 0;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.step__connector {
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--border-subtle));
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.step__time {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
}

.step__desc {
  color: var(--text-light);
  line-height: 1.7;
}


/* ============================================================
   SECTION 8: FAQ
   ============================================================ */
.section--faq {
  background: var(--bg-dark-3);
}

.section--faq .section__heading {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  color: var(--text-white);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-light);
  transition: transform var(--transition);
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-light);
  line-height: 1.7;
}


/* ============================================================
   SECTION 9: FINAL CTA
   ============================================================ */
.section--final-cta {
  background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-3) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 74, 200, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta__headline {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 24px;
}

.final-cta__body {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.final-cta__body + .btn {
  margin-top: 16px;
}

.final-cta__limited {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ============================================================
   SECTION 10: APPLICATION FORM
   ============================================================ */
.section--apply {
  background: var(--bg-dark-1);
  border-top: 1px solid var(--border-subtle);
}

.section--apply .section__heading {
  text-align: center;
  margin-bottom: 48px;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.95rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(129, 74, 200, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.form-select option {
  background: var(--bg-dark-2);
  color: var(--text-white);
}

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

.application-form .btn {
  margin-top: 8px;
}

/* Form Confirmation */
.form-confirmation {
  text-align: center;
  padding: 48px 24px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--radius);
}

.form-confirmation__icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.form-confirmation h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.form-confirmation p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form validation */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not([value=""]),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  background: var(--bg-dark-1);
  border-top: 1px solid var(--border-subtle);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — TABLET (768px)
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section__heading {
    font-size: 1.75rem;
  }

  .hero__headline {
    font-size: 2.25rem;
  }

  .hero__subheadline {
    font-size: 1.1rem;
  }

  .section--hero::before {
    width: 400px;
    height: 400px;
  }

  /* Value Stack */
  .value-stack__header {
    display: none;
  }

  .value-stack__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 20px;
  }

  .value-stack__price {
    font-size: 0.9rem;
  }

  .value-total__cost {
    font-size: 2rem;
  }

  /* Metrics */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .metric-card {
    padding: 24px 16px;
  }

  .metric-card__number {
    font-size: 2.25rem;
  }

  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Qualification */
  .qualify-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Final CTA */
  .final-cta__headline {
    font-size: 1.75rem;
  }

  /* Steps */
  .step {
    gap: 16px;
  }

  .step__number {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .step__connector {
    left: 22px;
    top: 44px;
  }

  /* Footer */
  .footer__content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .btn--large {
    padding: 16px 36px;
    font-size: 1rem;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .section__heading {
    font-size: 1.5rem;
  }

  .hero__headline {
    font-size: 1.85rem;
  }

  .hero__subheadline {
    font-size: 1rem;
  }

  .section--problem .section__heading {
    font-size: 1.5rem;
  }

  .fascination {
    padding: 16px;
    gap: 14px;
  }

  .fascination__icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .metric-card__number {
    font-size: 1.75rem;
  }

  .metric-card__label {
    font-size: 0.75rem;
  }

  .final-cta__headline {
    font-size: 1.5rem;
  }

  .btn--large {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
  }

  .qualify-item {
    font-size: 0.95rem;
  }

  .step__title {
    font-size: 1.1rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 16px 20px;
  }

  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }
}
