/* QuickApp professional landing enhancements */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(211, 10, 16, .12), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(255, 208, 0, .16), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fff8f8 45%, #ffffff 100%);
  padding: 48px 0 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 16ch;
  margin-inline: auto;
  animation: qaFadeUp .7s ease both;
}

.hero h1 .hl,
.hero h1 span,
.sec-header h2 .hl {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), #ff4d4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-logo {
  animation: qaFadeUp .7s .08s ease both;
}

.hero-logo img {
  height: 64px;
  filter: drop-shadow(0 8px 20px rgba(211, 10, 16, .18));
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  animation: qaFadeUp .7s .16s ease both;
}

.hero-btns {
  animation: qaFadeUp .7s .24s ease both;
  gap: 12px;
}

.hero-btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(211, 10, 16, .18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(211, 10, 16, .24);
}

.hero-illustration {
  position: relative;
  margin-top: 28px;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: qaFadeUp .8s .3s ease both;
}

.qa-hero-visual {
  position: relative;
  width: min(920px, 100%);
  height: 360px;
  margin: 0 auto;
}

.qa-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}

.qa-hero-glow--red {
  width: 280px;
  height: 280px;
  background: rgba(211, 10, 16, .35);
  right: 18%;
  bottom: 20px;
  animation: qaPulse 4s ease-in-out infinite;
}

.qa-hero-glow--yellow {
  width: 220px;
  height: 220px;
  background: rgba(255, 208, 0, .4);
  left: 16%;
  bottom: 40px;
  animation: qaPulse 4s .8s ease-in-out infinite;
}

.qa-hero-phone {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 220px;
  height: 420px;
  background: #111;
  border-radius: 36px;
  border: 3px solid #222;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
  padding: 12px;
  z-index: 2;
  animation: qaFloatY 5s ease-in-out infinite;
}

.qa-phone-notch {
  width: 88px;
  height: 10px;
  background: #222;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 10px;
}

.qa-phone-screen {
  background: linear-gradient(160deg, #fff, #fff5f5);
  height: calc(100% - 20px);
  border-radius: 28px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--primary);
}

.qa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(255, 208, 0, .25);
}

.qa-phone-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.qa-mini-card {
  background: #fff;
  border: 1px solid rgba(211, 10, 16, .08);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  box-shadow: 0 8px 16px rgba(211, 10, 16, .06);
}

.qa-mini-card span {
  font-size: 1.25rem;
}

.qa-phone-cta {
  background: linear-gradient(90deg, var(--primary), #ff3b3b);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
  font-size: .9rem;
}

.qa-float {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  white-space: nowrap;
}

.qa-float--1 {
  left: 8%;
  top: 28%;
  animation: qaFloatY 3.6s ease-in-out infinite;
}

.qa-float--2 {
  right: 10%;
  top: 22%;
  animation: qaFloatY 4.2s .4s ease-in-out infinite;
}

.qa-float--3 {
  right: 14%;
  bottom: 18%;
  animation: qaFloatY 3.8s .7s ease-in-out infinite;
}

/* Services redesign */
.services-section {
  padding: 72px 0 56px;
  background: #fff;
}

.services-section .sec-header {
  margin-bottom: 28px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.svc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(211, 10, 16, .08);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
  min-height: 230px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  opacity: 0;
  transform: translateY(18px);
}

.svc-card.is-in {
  opacity: 1;
  transform: none;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(211, 10, 16, .12);
  border-color: rgba(211, 10, 16, .22);
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 208, 0, .22), transparent 70%);
  pointer-events: none;
}

.svc-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.svc-card-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(211, 10, 16, .08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.svc-card-ico img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.svc-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--title);
}

.svc-card .svc-short {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: .95rem;
}

.svc-card .svc-desc,
.svc-card .svc-desc p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
  font-size: .95rem;
}

.svc-card-thumb {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  height: 110px;
  background: #f7f7f7;
}

.svc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.svc-card:hover .svc-card-thumb img {
  transform: scale(1.06);
}

/* Footer polish */
.footer .f-brand p,
.footer-brand-copy {
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  line-height: 1.85 !important;
  color: #f0f0f5 !important;
  max-width: 420px;
  font-weight: 600;
  margin-top: 14px !important;
}

.newsletter-area h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes qaFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes qaFloatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes qaPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.08); opacity: .7; }
}

.qa-hero-phone {
  animation-name: qaPhoneFloat;
}

@keyframes qaPhoneFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

@media (max-width: 768px) {
  .qa-hero-visual { height: 300px; }
  .qa-hero-phone { width: 180px; height: 340px; }
  .qa-float--1 { left: 2%; top: 12%; font-size: .75rem; }
  .qa-float--2 { right: 2%; top: 8%; font-size: .75rem; }
  .qa-float--3 { display: none; }
  .hero { padding-top: 28px; }
}

/* --- Text-only hero (no phone mockup) --- */
.hero--text-only {
  padding: 56px 0 64px;
  text-align: center;
}

.hero--text-only .hero-illustration,
.hero-illustration {
  display: none !important;
}

.hero--text-only h1 {
  max-width: 18ch;
}

.hero--text-only .hero-lead {
  max-width: 640px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.75;
}

.hero-extra {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  opacity: .92;
  animation: qaFadeUp .7s .2s ease both;
}

.svc-card-thumb {
  display: none !important;
}

.cta-desc {
  margin: 10px 0 18px;
  max-width: 36rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-user-btn {
  display: inline-flex;
  pointer-events: none;
}

/* Visible scrollbars for horizontal tracks */
.sp-track,
.feat-grid,
.earn-grid,
.stats-grid,
.test-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(211, 10, 16, .45) rgba(0, 0, 0, .06);
  -ms-overflow-style: auto;
  padding-bottom: 14px;
}

.sp-track::-webkit-scrollbar,
.feat-grid::-webkit-scrollbar,
.earn-grid::-webkit-scrollbar,
.stats-grid::-webkit-scrollbar,
.test-grid::-webkit-scrollbar {
  display: block;
  height: 8px;
}

.sp-track::-webkit-scrollbar-track,
.feat-grid::-webkit-scrollbar-track,
.earn-grid::-webkit-scrollbar-track,
.stats-grid::-webkit-scrollbar-track,
.test-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .06);
  border-radius: 999px;
}

.sp-track::-webkit-scrollbar-thumb,
.feat-grid::-webkit-scrollbar-thumb,
.earn-grid::-webkit-scrollbar-thumb,
.stats-grid::-webkit-scrollbar-thumb,
.test-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #d30a10, #ffd000);
  border-radius: 999px;
}

.special .slider-wrap {
  position: relative;
}

.special .sp-track {
  padding-inline: 8px;
}

.special .sp-card {
  min-width: 240px;
}

/* Subscribe button — brand red */
.nl-form button {
  background: #D30A10 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(211, 10, 16, .28);
}
.nl-form button:hover {
  background: #B0080D !important;
}

/* Why QuickApp — responsive grid (no horizontal scroll) */
.special .sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.special .sp-grid .sp-card {
  min-width: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border: 1px solid rgba(211, 10, 16, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.special .sp-grid .sp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 10, 16, .28);
  box-shadow: 0 16px 36px rgba(211, 10, 16, .1);
}

.special .sp-grid .sp-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(211, 10, 16, .08);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.special .sp-grid .sp-ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.special .sp-grid h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--title);
}

.special .sp-grid p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: .92rem;
}

@media (max-width: 992px) {
  .special .sp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .special .sp-grid {
    grid-template-columns: 1fr;
  }
}
