/* ============================================================
   JK TECH — HOME PAGE SPECIFIC STYLES
   ============================================================ */

/* ── Hero Canvas ─────────────────────────────────────────────── */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-deep);
  padding: var(--header-h) 24px 0;
}

.hero-gradient-1 {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  top: -200px; left: -200px;
  pointer-events: none;
  z-index: 1;
}

.hero-gradient-2 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,196,255,0.06) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,162,39,0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.15s both;
}

.hero-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #FFE580 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 44px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.45s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.8s both;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px; height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: float 2s ease-in-out infinite;
}

/* ── Stats Section ───────────────────────────────────────────── */
.stats-band {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 0.6em;
  vertical-align: super;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Mission Section ─────────────────────────────────────────── */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
}

.mission-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-ring {
  position: absolute;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  animation: rotateSlow linear infinite;
}

.mission-ring:nth-child(1) { width: 88%; height: 88%; animation-duration: 20s; }
.mission-ring:nth-child(2) { width: 72%; height: 72%; animation-duration: 15s; animation-direction: reverse; }
.mission-ring:nth-child(3) { width: 56%; height: 56%; animation-duration: 10s; }

.mission-center {
  position: relative;
  z-index: 2;
  width: 100px; height: 100px;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-center img {
  width: 56px;
  height: auto;
  object-fit: contain;
}

.mission-orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold-glow);
}

/* ── Products Section ────────────────────────────────────────── */
.products-section { background: var(--bg-primary); }

.product-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  position: relative;
}

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

.product-card-shield:hover { border-color: rgba(30,232,170,0.3); box-shadow: var(--shadow-card), 0 0 40px rgba(30,232,170,0.1); }
.product-card-institute:hover { border-color: rgba(107,140,255,0.3); box-shadow: var(--shadow-card), 0 0 40px rgba(107,140,255,0.1); }

.product-card-header {
  padding: 36px 36px 28px;
  position: relative;
  overflow: hidden;
}

.product-card-shield .product-card-header {
  background: linear-gradient(135deg, rgba(30,232,170,0.05) 0%, transparent 60%);
  border-bottom: 1px solid rgba(30,232,170,0.1);
}

.product-card-institute .product-card-header {
  background: linear-gradient(135deg, rgba(107,140,255,0.05) 0%, transparent 60%);
  border-bottom: 1px solid rgba(107,140,255,0.1);
}

.product-icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.product-icon-shield { background: var(--shield-dim); color: var(--shield-color); border: 1px solid rgba(30,232,170,0.3); }
.product-icon-institute { background: var(--institute-dim); color: var(--institute-color); border: 1px solid rgba(107,140,255,0.3); }

.product-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-tagline-shield { color: var(--shield-color); }
.product-tagline-institute { color: var(--institute-color); }

.product-card-body { padding: 28px 36px 36px; }

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-shield { background: var(--shield-color); }
.dot-institute { background: var(--institute-color); }

.product-cta-shield { background: var(--shield-color); color: var(--bg-deep); }
.product-cta-shield:hover { filter: brightness(1.1); box-shadow: 0 8px 32px rgba(30,232,170,0.3); }
.product-cta-institute { background: var(--institute-color); color: var(--bg-deep); }
.product-cta-institute:hover { filter: brightness(1.1); box-shadow: 0 8px 32px rgba(107,140,255,0.3); }

/* ── Services Strip ──────────────────────────────────────────── */
.services-strip { position: relative; }

.services-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 48px;
  width: fit-content;
}

.services-tab {
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
}

.services-tab.active {
  background: var(--gold);
  color: var(--text-inverse);
}

.services-tab:not(.active):hover { color: var(--text-primary); }

.services-panel { display: none; }
.services-panel.active { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.service-item-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 16px;
}

.service-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-item-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}

.testimonial-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.testimonial-info p { font-size: 0.8rem; color: var(--text-muted); }

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(201,162,39,0.08) 0%, transparent 50%),
              var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-subtext {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

/* ── Responsive Home ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mission-layout { grid-template-columns: 1fr; gap: 48px; }
  .mission-visual { max-width: 320px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  /* services-panel auto-fits at 1024px+ */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 260px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .products-section .grid-2 { grid-template-columns: 1fr; }
  .services-panel.active { grid-template-columns: 1fr; }
  .services-tabs { width: 100%; justify-content: center; flex-wrap: wrap; border-radius: 16px; }
}

/* ── Hero Trust Bar ──────────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) 0.65s both;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  color: rgba(136,153,187,0.75);
}

.hero-trust-item i {
  color: var(--shield-color);
  font-size: 0.7rem;
}

.hero-trust-sep {
  color: rgba(136,153,187,0.3);
  font-size: 0.7rem;
}

/* ── Enhanced Stats Band ─────────────────────────────────────── */
.stats-band {
  background: linear-gradient(135deg, rgba(5,13,26,0.98), rgba(8,18,35,0.98));
  border-top: 1px solid rgba(201,162,39,0.08);
  border-bottom: 1px solid rgba(201,162,39,0.08);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,162,39,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.stat-value {
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

/* ── Enhanced Product Cards ──────────────────────────────────── */
.product-card {
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

/* ── CTA band enhancements ───────────────────────────────────── */
.cta-band {
  background: linear-gradient(
    135deg,
    rgba(201,162,39,0.06) 0%,
    rgba(2,8,18,0.98) 40%,
    rgba(0,196,255,0.03) 100%
  );
}

/* ── Section enhancements ────────────────────────────────────── */
.services-tab {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.services-tab:not(.active):hover {
  transform: translateY(-1px);
}

.service-item {
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,39,0.12);
}


/* ── Additional Mobile Fixes ─────────────────────────────────── */
@media (max-width: 480px) {
  .hero-gradient-1,
  .hero-gradient-2 {
    display: none;
  }

  .mission-visual {
    max-width: 240px;
  }

  .product-card-header {
    padding: 24px 20px 20px;
  }

  .product-card-body {
    padding: 20px 20px 24px;
  }

  .cta-heading {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .services-tabs {
    width: 100%;
  }

  .services-tab {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

@media (max-width: 360px) {
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .hero-trust-sep {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

