/* ============================================
   ORVINIEL — Components
   Buttons, Cards, Labels, Dividers, Forms
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  border-radius: var(--radius);
  transition: background-color var(--duration) ease, color var(--duration) ease, border-color var(--duration) ease;
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--indigo-light);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--light-grey);
}

.btn--outline-dark:hover {
  background: var(--ivory);
}

.btn--white {
  background: var(--white);
  color: var(--indigo);
}

.btn--white:hover {
  background: var(--ivory);
}

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

/* ---- Text Links ---- */
.text-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration) ease;
}

.text-link:hover {
  gap: 10px;
}

.text-link--grey {
  color: var(--mid-grey);
}

.text-link__arrow {
  font-size: 18px;
  line-height: 1;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 40px;
  transition: transform var(--duration) ease, box-shadow var(--duration) ease, border-color var(--duration) ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(55, 48, 163, 0.10);
}

.card--bordered-top {
  border-top: 3px solid var(--indigo);
}

.card--bordered-top:hover {
  border-top-color: var(--indigo-light);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.card__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.card__body {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid-grey);
}

.card__tag {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-top: 32px;
}

/* Insight card stat */
.card__stat {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--indigo);
  margin-bottom: 16px;
}

/* ---- Stat Block ---- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
}

.stat-cell {
  padding: 32px;
  border-bottom: 1px solid var(--light-grey);
}

.stat-cell:nth-child(odd) {
  border-right: 1px solid var(--light-grey);
}

.stat-cell:nth-child(n+3) {
  border-bottom: none;
}

.stat__number {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--indigo);
}

.stat__label-primary {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-top: 8px;
}

.stat__label-secondary {
  font-weight: 400;
  font-size: 13px;
  color: var(--mid-grey);
}

/* ---- Values Strip ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-col {
  padding: 32px 24px;
  border-top: 3px solid var(--indigo);
  border-right: 1px solid var(--light-grey);
}

.value-col:last-child {
  border-right: none;
}

.value-col__number {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}

.value-col__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-top: 12px;
}

.value-col__body {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid-grey);
  margin-top: 10px;
}

/* ---- Marquee ---- */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  animation: scroll 38s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

.marquee__logo {
  height: 36px;
  margin: 0 48px;
  filter: grayscale(100%) opacity(0.40);
  transition: filter 300ms ease;
}

.marquee__logo:hover {
  filter: grayscale(0%) opacity(1);
}

.marquee__logo-text {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--mid-grey);
  opacity: 0.5;
  margin: 0 48px;
  white-space: nowrap;
  transition: opacity 300ms ease;
}

.marquee__logo-text:hover {
  opacity: 1;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---- Divider Accent ---- */
.accent-divider {
  width: 40px;
  height: 2px;
  background: var(--indigo);
  margin: 32px 0;
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  transition: border-color var(--duration) ease;
}

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

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

/* ---- Steps ---- */
.step {
  padding: 24px 0;
  border-bottom: 1px solid var(--light-grey);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 8px;
}

.step__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.step__body {
  font-weight: 400;
  font-size: 15px;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(248, 247, 244, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.scroll-indicator__text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 247, 244, 0.40);
}

/* ---- Testimonial ---- */
.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial__quote {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 24px;
}

.testimonial__author {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
}

/* ---- Product Tag ---- */
.product-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--indigo-pale);
  color: var(--indigo);
}
