:root {
  --qc-bg: #fafafa;
  --qc-surface: rgba(255, 255, 255, 0.9);
  --qc-surface-strong: #ffffff;
  --qc-ink: #18181b;
  --qc-muted: #71717a;
  --qc-line: rgba(24, 24, 27, 0.12);
  --qc-primary: #18181b;
  --qc-primary-soft: rgba(24, 24, 27, 0.10);
  --qc-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  --qc-radius: 1.5rem;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--qc-bg);
  color: var(--qc-ink);
  font-family: "Onest", "Segoe UI", sans-serif;
}

.site-shell {
  overflow-x: clip;
}

.qc-container {
  margin-inline: auto;
  width: min(100% - 2rem, 80rem);
}

.qc-section {
  padding-block: 5rem;
}

.qc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid rgba(24, 24, 27, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--qc-primary);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qc-grid-glow {
  position: relative;
}

.qc-grid-glow::before {
  content: "";
  position: absolute;
  inset: auto auto -2rem -2rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(24, 24, 27, 0.05), transparent 68%);
  pointer-events: none;
}

.qc-card {
  border: 1px solid var(--qc-line);
  background: var(--qc-surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--qc-shadow);
  border-radius: var(--qc-radius);
}

.qc-card-strong {
  background: #ffffff;
}

.qc-link {
  color: var(--qc-ink);
  transition: color 0.2s ease;
}

.qc-link:hover {
  color: var(--qc-primary);
}

.qc-richtext {
  color: #3f3a33;
  line-height: 1.85;
}

.qc-richtext h2,
.qc-richtext h3,
.qc-richtext h4 {
  color: #171410;
  margin-top: 1.8rem;
  margin-bottom: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.qc-richtext p,
.qc-richtext ul,
.qc-richtext ol,
.qc-richtext blockquote {
  margin-bottom: 1rem;
}

.qc-richtext ul,
.qc-richtext ol {
  padding-left: 1.2rem;
}

.qc-richtext li {
  margin-bottom: 0.5rem;
}

.qc-richtext a {
  color: var(--qc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qc-richtext blockquote {
  border-left: 3px solid rgba(24, 24, 27, 0.8);
  padding-left: 1rem;
  color: #52525b;
}

.qc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 24, 27, 0.1), transparent);
}

.qc-mesh {
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.qc-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
  pointer-events: none;
}

.qc-orb-a {
  background: radial-gradient(circle, rgba(24, 24, 27, 0.05), transparent 72%);
}

.qc-orb-b {
  background: radial-gradient(circle, rgba(24, 24, 27, 0.03), transparent 70%);
}

.qc-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.qc-stat-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(26, 18, 6, 0.32);
  backdrop-filter: blur(14px);
  color: white;
}

/* ─── Infinite Ticker ─── */
.qc-ticker-swiper .swiper-wrapper {
  transition-timing-function: linear;
  will-change: transform;
}

.qc-ticker-swiper .swiper-slide {
  width: auto;
}

.qc-faq-answer {
  display: none;
}

.qc-faq-item.is-open .qc-faq-answer {
  display: block;
}

.qc-mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.qc-mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Mobile Panel Styles ─── */
.qc-body-lock {
  overflow: hidden;
}

/* ─── Input Styles ─── */
.qc-input, .qc-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  outline: none;
}

.qc-input:focus, .qc-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.qc-input::placeholder, .qc-textarea::placeholder {
  color: #52525b;
}

/* Light theme inputs */
.bg-white .qc-input, .bg-white .qc-textarea {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #18181b;
}

.bg-white .qc-input:focus, .bg-white .qc-textarea:focus {
  background: #ffffff;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05);
}

/* ─── Phone Input Format ─── */
.qc-phone-container {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  margin-top: 1.25rem; /* Label space */
}

.qc-phone-container:focus-within {
  background: #ffffff;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05);
}

.qc-phone-label {
  position: absolute;
  top: -10px;
  left: 60px;
  background: white;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #b91c1c; /* Red asterisk color */
  z-index: 10;
}

.qc-phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 100%;
  min-height: 48px;
  background: #e4e4e7;
  color: #18181b;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid #e4e4e7;
  border-radius: 0.75rem 0 0 0.75rem;
}

.qc-phone-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.875rem 1rem;
  color: #18181b;
  font-size: 14px;
  outline: none;
}

/* ─── Two panel system ─── */
[data-panels-track] {
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .qc-section {
    padding-block: 4rem;
  }

  .qc-container {
    width: min(100% - 1.25rem, 80rem);
  }

  .qc-card {
    border-radius: 1.25rem;
  }
}
