/* ═══════════════════════════════════════════════════════════════
   KhambasTech Landing — CSS
   Fonts: Inter (Google Fonts, loaded in HTML)
   Design: dark surface palette · brand violet-indigo · clean grid
═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ── */
:root {
  --brand-400: #a78bfa;
  --brand-500: #8b5cf6;
  --brand-600: #7c3aed;
  --brand-900: #1e1040;
  --surface-700: #1e1e2e;
  --surface-800: #16162a;
  --surface-900: #0e0e1a;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --emerald-400: #34d399;
  --amber-400: #fbbf24;
  --radius: 1rem;
  --font: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--surface-900);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}
.logo-icon-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212, 168, 75, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo:hover .logo-icon-img {
  filter: drop-shadow(0 4px 16px rgba(212, 168, 75, 0.6));
  transform: scale(1.05) rotate(-2deg);
}

/* Skip link para accesibilidad (a11y + SEO) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-600);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { top: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}
.btn-sm  { padding: 0.375rem 1rem;   font-size: 0.8125rem; }
.btn-lg  { padding: 0.75rem 1.75rem; font-size: 0.9375rem; }
.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  background: var(--brand-500);
  box-shadow: 0 6px 20px rgba(124,58,237,0.55);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(139,92,246,0.35);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-400);
  background: rgba(30,16,64,0.7);
  border: 1px solid rgba(167,139,250,0.2);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand-400) 0%, #c084fc 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 1.25rem 2rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.08);
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-dark { background: var(--surface-800); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--gray-400);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Carousel ── */
.carousel-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.carousel-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--surface-700);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: border-color 0.2s, transform 0.2s;
}
.carousel-card:hover {
  border-color: rgba(139,92,246,0.35);
  transform: translateY(-2px);
}
.carousel-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.carousel-card-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
}
.carousel-card-tagline {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.4;
}
.carousel-card-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
}
.badge-live     { background: rgba(52,211,153,0.12); color: var(--emerald-400); }
.badge-building { background: rgba(251,191,36,0.12);  color: var(--amber-400); }
.badge-planned  { background: rgba(255,255,255,0.06); color: var(--gray-400); }

/* ── Filters ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface-700);
  color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand-600);
  color: var(--white);
  border-color: var(--brand-500);
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.product-card {
  background: var(--surface-700);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.product-card-body { padding: 1.5rem; flex: 1; }
.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.product-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(30,16,64,0.8);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white);
}
.product-tagline {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.875rem;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}
.tag {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.05);
  color: var(--gray-500);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
}
.product-price {
  font-size: 0.8125rem;
  color: var(--gray-400);
}
.product-price strong { color: var(--white); font-size: 1rem; }
.product-card-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.625rem;
}
.product-card-actions .btn { flex: 1; font-size: 0.8125rem; padding: 0.5rem 1rem; }

/* ── Marketplace CTA ── */
.marketplace-cta {
  text-align: center;
  padding-top: 1rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--surface-800);
  padding: 3.5rem 0 1.75rem;
}
.footer-copy { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }
.accent { color: var(--brand-400); }

/* ── Proof bar (marquee-like) ── */
.proof-bar {
  background: var(--surface-800);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.proof-bar-inner {
  display: flex;
  gap: 2.5rem;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}
.proof-bar-inner span {
  white-space: nowrap;
  transition: color 0.2s;
  cursor: default;
}
.proof-bar-inner span:hover { color: var(--brand-400); }

/* ── Why Cards ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--surface-700);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 10px 30px rgba(124,58,237,0.15);
}
.why-card:hover::before { transform: scaleX(1); }
.why-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.6rem;
  background: rgba(124,58,237,0.1);
  border-radius: 0.75rem;
}
.why-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.why-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.why-card strong { color: var(--brand-400); }

/* ── Sectors ── */
.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.sector-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: all 0.25s ease;
  cursor: default;
}
.sector-chip:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(139,92,246,0.4);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── FAQ ── */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface-700);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0.875rem;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(139,92,246,0.25);
  background: var(--surface-800);
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand-400);
  font-weight: 300;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--brand-400); }
.faq-item p {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--gray-400);
}
.faq-item p strong { color: var(--brand-400); }

/* ── Footer rework ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.875rem;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover {
  color: var(--brand-400);
  transform: translateX(3px);
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.5rem;
  text-align: center;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links .btn-ghost { display: none; }
  .hero-stats { gap: 1.25rem; padding: 1rem 1.25rem; }
  .stat-num { font-size: 1.375rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
