/* ============================================
   KWT Labs — Homepage Premium Styles
   ============================================ */

.section { padding: 80px 0; }
.section--soft { background: var(--gray-50); }

/* ── Hero Premium ── */
.hero--premium {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(15, 111, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 61, 61, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #f0f6ff 0%, var(--white) 100%);
  overflow: hidden;
}

.hero--premium .hero-grid {
  min-height: 560px;
  align-items: center;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.hero-badge-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Hero Visual Scene */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 420px;
}

.hero-scene__box {
  position: absolute;
  width: 130px;
  padding: 14px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-scene__box--spider {
  background: linear-gradient(145deg, var(--primary), #0847a8);
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.hero-scene__box--mind {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  bottom: 60px;
  right: -10px;
  animation-delay: -2.5s;
}

.hero-scene__box-icon .icon {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.95);
}

.hero-scene__dashboard {
  position: relative;
  z-index: 4;
  margin: 40px auto 0;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(15, 111, 255, 0.12);
  overflow: hidden;
}

.hero-scene__float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  z-index: 5;
  font-size: 0.8rem;
}

.hero-scene__float--report {
  top: 80px;
  right: -20px;
  min-width: 140px;
}

.hero-scene__float--health {
  bottom: 100px;
  left: -30px;
  text-align: center;
}

.hero-scene__float-label {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-scene__float-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-scene__float-value--warn { color: var(--accent); }

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

/* Trust Cards Row */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-bottom: 48px;
}

.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.trust-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card__icon .icon { width: 24px; height: 24px; color: var(--primary); }

.trust-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Product Ecosystem ── */
.ecosystem {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.ecosystem-live {
  display: grid;
  gap: 20px;
}

.ecosystem-card {
  background: var(--white);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.ecosystem-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ecosystem-card--spider { border-color: rgba(15, 111, 255, 0.25); }
.ecosystem-card--mind { border-color: rgba(124, 58, 237, 0.25); }

.ecosystem-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--primary-light);
}

.ecosystem-card--mind .ecosystem-card__icon { background: #ede9fe; }

.ecosystem-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.ecosystem-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.ecosystem-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ecosystem-divider::before,
.ecosystem-divider::after {
  content: '';
  width: 2px;
  flex: 1;
  background: var(--gray-200);
  margin: 12px 0;
}

.ecosystem-soon h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.ecosystem-soon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-bottom: 1px dashed var(--gray-200);
}

.ecosystem-soon-list li:last-child { border-bottom: none; }

.ecosystem-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

/* ── Available Product Cards ── */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.avail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.avail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.avail-card--live { border-top: 3px solid var(--success); }
.avail-card--soon { border-top: 3px solid var(--gray-300); opacity: 0.92; }

.avail-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.avail-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avail-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.avail-card__cat {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.avail-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

/* ── Featured Product Rich Cards ── */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-showcase-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-showcase-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-showcase-card__top {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-showcase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 28px 16px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.product-showcase-card__meta span {
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.product-showcase-card__body {
  padding: 0 28px 28px;
}

.product-showcase-card__body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-showcase-card__body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-showcase-card__actions {
  display: flex;
  gap: 12px;
}

/* Screenshot Mock */
.screenshot-mock {
  margin: 0 28px 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  aspect-ratio: 16/10;
  position: relative;
}

.screenshot-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
}

.screenshot-mock__body {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.screenshot-mock__panel {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  height: 60px;
}

.screenshot-mock__panel--wide { grid-column: span 2; height: 40px; }

.screenshot-mock--mind {
  background: linear-gradient(180deg, #4c1d95 0%, #2e1065 100%);
}

.screenshot-mock__label {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

/* ── Why Choose Spider (Features) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--white));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon .icon { width: 28px; height: 28px; color: var(--primary); }

.feature-item h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Why KWT — Enhanced ── */
.why-card--enhanced {
  padding: 32px 24px;
}

.why-card--enhanced:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.why-card--enhanced .why-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.why-card--enhanced .why-icon .icon {
  width: 32px;
  height: 32px;
}

/* ── Screenshot Gallery ── */
.gallery-section { text-align: center; }

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-tab {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  color: var(--gray-600);
}

.gallery-tab.active,
.gallery-tab:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.gallery-main {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-mock {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  padding: 24px;
  position: relative;
}

.gallery-mock__ui {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-mock__row {
  display: flex;
  gap: 12px;
}

.gallery-mock__block {
  flex: 1;
  height: 48px;
  background: var(--gray-100);
  border-radius: 6px;
}

.gallery-mock__block--primary { background: var(--primary-light); }

/* ── Product Trust Info ── */
.trust-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.trust-info-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.trust-info-card__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── Video Section Enhanced ── */
.demo-section--enhanced {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-video--enhanced {
  position: relative;
  min-height: 380px;
  background: linear-gradient(135deg, #0f172a, #1a365d);
}

.demo-video__thumb {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,23,42,0.7), transparent 50%),
    linear-gradient(135deg, rgba(15,111,255,0.2), rgba(255,61,61,0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-video__caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Solutions Enhanced ── */
.solution-card--enhanced .solution-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.solution-card--enhanced .solution-icon .icon {
  width: 36px;
  height: 36px;
  color: var(--sol-color, var(--primary));
}

/* ── Roadmap Timeline ── */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--success), var(--gray-300));
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
}

.timeline-item--done .timeline-item__dot {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.timeline-item--pending .timeline-item__dot {
  background: var(--white);
}

.timeline-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.timeline-item--done h4::before {
  content: '\2713  ';
  color: var(--success);
}

.timeline-item--pending h4::before {
  content: '\25A1  ';
  color: var(--gray-400);
}

/* ── Update Cards Enhanced ── */
.update-card--rich {
  padding: 28px;
}

.update-card__version {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.update-card__whats-new {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 12px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--primary-light);
}

.update-card__whats-new li {
  padding: 3px 0;
  list-style: disc;
  margin-left: 16px;
}

/* ── Learning & Blog Thumbs ── */
.thumb-placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thumb-placeholder--blue {
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
}

.thumb-placeholder--purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.thumb-placeholder--green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.thumb-placeholder--orange {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.thumb-placeholder--red {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.thumb-placeholder .icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.6;
}

.thumb-placeholder--purple .icon { color: #7c3aed; }
.thumb-placeholder--green .icon { color: #059669; }

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card__img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.blog-card__img--seo {
  background: linear-gradient(135deg, #0F6FFF 0%, #0847a8 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.blog-card__img--ai {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.blog-card__img--win {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.blog-card__img-tag {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card__body p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* ── Newsletter Enhanced ── */
.newsletter-section--enhanced {
  background: linear-gradient(135deg, var(--primary) 0%, #0847a8 50%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section--enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,61,61,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-section--enhanced h2,
.newsletter-section--enhanced p {
  position: relative;
}

/* ── Footer Social ── */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-top--6 {
  grid-template-columns: 1.4fr repeat(5, 1fr);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ecosystem { grid-template-columns: 1fr; }
  .ecosystem-divider { flex-direction: row; padding: 16px 0; }
  .ecosystem-divider::before,
  .ecosystem-divider::after { width: auto; height: 2px; flex: 1; margin: 0 12px; }
  .avail-grid { grid-template-columns: 1fr; }
  .product-showcase { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-info-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-scene__float--report,
  .hero-scene__float--health { display: none; }
  .trust-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-scene__box { display: none; }
  .footer-top--6 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .trust-info-grid { grid-template-columns: 1fr; }
  .footer-top--6 { grid-template-columns: 1fr; }
}
