/* ================================================================
   Qubify Component Styles
   Path: public/assets/css/components.css

   Buttons, cards, forms, stats, pillars, leadership, and sections.
   ================================================================ */

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  font-size: 0.9375rem;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(94, 53, 177, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 53, 177, 0.45);
}

.btn-secondary {
  background-color: #fff;
  color: var(--color-neutral-800);
  border-color: var(--color-neutral-100);
}

.btn-secondary:hover {
  background-color: var(--color-neutral-50);
  border-color: #D6D1E8;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 42px;
  font-size: 1.05rem;
  width: 100%;
  justify-content: center;
}

.icon-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

/* ── Stack Grid (4 Pillars) ───────────────────────────────────── */
.stack-section {
  padding: 100px 0;
  background-color: var(--color-neutral-50);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stack-card {
  background: #FFFFFF;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid var(--color-neutral-100);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stack-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(94, 53, 177, 0.08);
}

.stack-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--color-brand-primary-ghost);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  margin-bottom: 16px;
}

.pillar-featured {
  border: 2px solid var(--color-brand-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FF 100%);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-brand-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.pillar-description {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pillar-tags span {
  font-size: 11px;
  font-weight: 600;
  background: var(--color-neutral-50);
  color: var(--color-neutral-700);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-neutral-100);
}

/* ── MoR Deep Dive Section ────────────────────────────────────── */
.mor-deepdive-section {
  padding: 110px 0;
  background: #FFFFFF;
}

.mor-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.mor-feature-box {
  padding: 36px;
  border-radius: 14px;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mor-feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(94, 53, 177, 0.06);
}

.mor-box-icon {
  width: 44px;
  height: 44px;
  background: var(--color-brand-primary-ghost);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
}

.mor-feature-box h4 {
  font-size: 1.25rem;
  margin: 16px 0 10px 0;
}

.mor-feature-box p {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  line-height: 1.55;
}

/* ── TikTok Shop & Marketplace Section ────────────────────────── */
.tiktok-marketplace-section {
  padding: 110px 0;
  background: #0D0A1C;
  color: #FFFFFF;
}

.tiktok-marketplace-section h2,
.tiktok-marketplace-section h3,
.tiktok-marketplace-section h5 {
  color: #FFFFFF;
}

.tiktok-marketplace-section .section-lead {
  color: #A9A4C2;
  max-width: 720px;
}

.tiktok-marketplace-section .badge-eyebrow {
  background: rgba(94, 53, 177, 0.15);
  color: var(--color-brand-primary-light);
}

.partner-lockup {
  margin-bottom: 24px;
}

.partner-lockup img {
  height: 42px;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 54px 0;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-cell {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-brand-highlight);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: #8C86A8;
  line-height: 1.4;
}

/* TikTok Features Grid */
.tiktok-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tt-feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tt-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.tt-feature-card h5 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.tt-feature-card p {
  font-size: 0.875rem;
  color: #9F9AB8;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Amazon Showcase Panel */
.amazon-showcase-panel {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.amazon-panel-content h3 {
  margin-bottom: 16px;
}

.amazon-panel-content p {
  color: #A9A4C2;
  margin-bottom: 24px;
}

.amazon-kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amazon-kpis div {
  font-size: 0.9375rem;
  color: #C8C4DC;
}

.amazon-kpis strong {
  color: var(--color-brand-highlight);
}

.rounded-img {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ── Leadership Section ───────────────────────────────────────── */
.leadership-section {
  padding: 100px 0;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 48px auto 0 auto;
}

.leader-card {
  text-align: center;
  padding: 40px;
  border-radius: 16px;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(94, 53, 177, 0.08);
}

.leader-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px auto;
}

.leader-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(94, 53, 177, 0.15);
}

.avatar-cube-badge {
  position: absolute;
  bottom: 0;
  right: 6px;
  width: 32px;
  height: 32px;
  background: var(--color-brand-primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-display);
  border: 2px solid #fff;
}

.leader-name {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.leader-role {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  margin-bottom: 12px;
}

.leader-bio {
  font-size: 0.9375rem;
  color: var(--color-neutral-600);
  margin-bottom: 18px;
  line-height: 1.55;
}

.leader-email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-neutral-800);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.leader-email-link:hover {
  color: var(--color-brand-primary);
}

/* ── Contact Form Section ─────────────────────────────────────── */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F3FC 100%);
}

.contact-card-wrapper {
  max-width: 820px;
  margin: 40px auto 0 auto;
  background: #FFFFFF;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--color-neutral-100);
  box-shadow: 0 20px 50px rgba(15, 12, 32, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-neutral-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-neutral-100);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background-color: var(--color-neutral-50);
  transition: border-color 0.2s, background-color 0.2s;
  color: var(--color-neutral-800);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-neutral-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--color-brand-primary-ghost);
}

.form-footer {
  margin-top: 28px;
  text-align: center;
}

.privacy-notice {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--color-neutral-500);
}

.privacy-notice a {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

/* ── Multi-Step Form Component ───────────────────────────────── */
.form-step-header {
  margin-bottom: 32px;
}

.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-neutral-500);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-indicator.active {
  color: var(--color-brand-primary);
}

.step-indicator.completed {
  color: #00875A;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--color-neutral-100);
  color: var(--color-neutral-600);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.step-indicator.active .step-number {
  background: var(--color-brand-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--color-brand-primary-ghost);
}

.step-indicator.completed .step-number {
  background: #00875A;
  color: #FFFFFF;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--color-neutral-100);
  border-radius: 2px;
}

.step-progress-track {
  width: 100%;
  height: 4px;
  background: var(--color-neutral-100);
  border-radius: 4px;
  overflow: hidden;
}

.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-primary), #7C4DFF);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-intro {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-neutral-100);
}

.step-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: 4px;
}

.step-subheading {
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  margin: 0;
}

.required-star {
  color: var(--color-brand-primary);
  font-weight: bold;
}

.optional-tag {
  font-size: 0.75rem;
  color: var(--color-neutral-500);
  font-weight: 400;
}

.step2-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.field-error-msg {
  color: #E53935;
  font-size: 0.775rem;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.has-error input {
  border-color: #E53935 !important;
  background-color: #FFF8F8 !important;
}

.has-error .field-error-msg {
  display: block;
}

.form-step {
  animation: formStepFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formStepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Feedback */
.form-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-feedback.success {
  background: #E6F9F0;
  color: #00875A;
  border: 1px solid #B2DFDB;
}

.form-feedback.error {
  background: #FFF3F0;
  color: var(--color-danger);
  border: 1px solid #FFCDD2;
}

/* Spinner */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stack-grid            { grid-template-columns: repeat(2, 1fr); }
  .stats-ribbon          { grid-template-columns: repeat(2, 1fr); }
  .tiktok-features-grid  { grid-template-columns: repeat(2, 1fr); }
  .amazon-showcase-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stack-grid            { grid-template-columns: 1fr; }
  .mor-quad-grid         { grid-template-columns: 1fr; }
  .tiktok-features-grid  { grid-template-columns: 1fr; }
  .leadership-grid       { grid-template-columns: 1fr; }
  .form-grid             { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .contact-card-wrapper  { padding: 24px 16px; }
  .stats-ribbon          { grid-template-columns: 1fr; padding: 24px; }
  .step-connector        { width: 28px; }
  .step2-actions         { flex-direction: column-reverse; width: 100%; gap: 12px; }
  .step2-actions .btn    { width: 100%; justify-content: center; }
}
