/* public/css/home.css — VEXHOST Homepage Redesign (public landing only, mobile-first) */

/* ═══════════════════════════════════════
   HERO CAROUSEL
═══════════════════════════════════════ */
.hero-carousel { position: relative; }
.hero-slide {
  display: none;
  align-items: center;
  gap: 32px;
  flex-direction: column;
  text-align: center;
  position: relative; z-index: 1;
}
.hero-slide.active { display: flex; animation: heroFade .5s ease both; }
@keyframes heroFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero-slide-text { min-width: 0; }
.hero-slide-visual {
  order: -1;
  min-width: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.rack-visual {
  width: 100%; max-width: 320px; aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--surface2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.rack-visual::before {
  content: '';
  position: absolute; top: -30%; right: -20%; width: 260px; height: 260px;
  background: var(--grad); opacity: .18; filter: blur(60px); border-radius: 50%;
}
.rack-unit {
  position: relative; z-index: 1;
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.rack-unit .rk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(34,197,94,.7); flex-shrink: 0; animation: pulse-green 2s infinite; }
.rack-unit .rk-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.rack-unit .rk-bar span { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.rack-unit .rk-label { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex-shrink: 0; }

.hero-carousel-nav {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px;
  position: relative; z-index: 1;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border2); border: none; cursor: pointer; padding: 0;
  transition: all .2s;
}
.hero-dot.active { width: 24px; border-radius: 4px; background: var(--grad-90); }
.hero-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.hero-arrow:hover { background: var(--surface3); border-color: var(--purple); }

/* ═══════════════════════════════════════
   STATS BAND
═══════════════════════════════════════ */
.stats-band { padding: 0 5%; margin-top: -30px; position: relative; z-index: 2; }
.stats-band-inner {
  max-width: 1100px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.stat-band-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.stat-band-item:nth-child(2n) { border-right: none; }
.stat-band-item:nth-last-child(-n+2) { border-bottom: none; }
.stat-band-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(139,47,201,0.12); color: #c084fc;
  display: flex; align-items: center; justify-content: center;
}
.stat-band-num { font-size: clamp(16px, 2.2vw, 24px); font-weight: 900; line-height: 1.1; }
.stat-band-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════════════
   FITUR — uniform icon grid (matches template)
═══════════════════════════════════════ */
.fitur-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.fitur-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 20px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); font-size: 12.5px; color: var(--text2);
  transition: all .2s;
}
.fitur-item:hover { border-color: var(--border2); background: var(--surface2); transform: translateY(-2px); }
.fitur-item-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(139,47,201,0.12); color: #c084fc;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════
   PANEL PREVIEW MOCKUP
═══════════════════════════════════════ */
.panel-mock-frame {
  max-width: 920px; margin: 0 auto;
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--bg3);
}
.panel-mock-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--border);
}
.panel-mock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.panel-mock-title { margin-left: 8px; font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-mock-body { display: flex; min-height: 300px; }
.panel-mock-sidebar {
  width: 170px; flex-shrink: 0; padding: 16px 10px;
  border-right: 1px solid var(--border); display: none;
  flex-direction: column; gap: 4px;
}
.panel-mock-nav-item { padding: 9px 12px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.panel-mock-nav-item.active { background: rgba(139,47,201,0.12); color: #c084fc; }
.panel-mock-main { flex: 1; min-width: 0; padding: 14px; }
.panel-mock-stats { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.panel-mock-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.panel-mock-stat-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted2); }
.panel-mock-stat-val { font-size: 15px; font-weight: 800; }
.panel-mock-console {
  background: #060410; border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 12px; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.8;
  color: #6ee7b7; height: 130px; overflow: hidden;
}
.panel-mock-console .dim { color: #3d3360; }

/* ═══════════════════════════════════════
   DOWNLOAD APK — COMING SOON + RESPONSIVE DEVICE FRAME
   Base = mobile: only the phone frame is visible.
   Media queries below SWITCH which single frame is shown.
═══════════════════════════════════════ */
.apk-section {
  max-width: 1100px; margin: 0 auto;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  padding: 32px 22px; display: flex; flex-direction: column; text-align: center; gap: 26px;
  overflow: hidden; position: relative;
}
.apk-text { min-width: 0; }
.apk-visual { min-width: 0; display: flex; justify-content: center; }

.device-frame { display: none; }

.phone-frame {
  width: 180px; height: 360px;
  border: 8px solid #1a1424; border-radius: 32px;
  background: var(--bg3); position: relative; box-shadow: var(--shadow-lg);
  flex-direction: column; overflow: hidden;
}
.phone-frame::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 5px; background: #1a1424; border-radius: 4px; z-index: 2;
}
.tablet-frame {
  width: 250px; height: 330px;
  border: 10px solid #1a1424; border-radius: 20px;
  background: var(--bg3); box-shadow: var(--shadow-lg);
  flex-direction: column; overflow: hidden;
}
.laptop-frame { width: 100%; max-width: 340px; }
.laptop-frame .lf-screen {
  border: 8px solid #1a1424; border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--bg3); height: 190px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.laptop-frame .lf-base {
  height: 13px; background: #211a2c;
  border-radius: 0 0 8px 8px; position: relative;
}
.laptop-frame .lf-base::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 56px; height: 5px; background: #2c2338; border-radius: 0 0 4px 4px;
}
.device-screen-content { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.device-screen-row { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.device-screen-row.grad { background: var(--grad); opacity: .5; width: 60%; }
.device-screen-card { flex: 1; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); margin-top: 4px; }

.apk-badge-soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3);
  margin-bottom: 14px;
}

/* Base/mobile: phone frame ON, others OFF */
.device-frame.phone-frame  { display: flex; }
.device-frame.tablet-frame { display: none; }
.device-frame.laptop-frame { display: none; }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.testi-stars { color: #fcd34d; font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-quote { font-size: 13px; color: var(--text2); line-height: 1.75; margin-bottom: 16px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 700; }
.testi-role { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════ */
.final-cta {
  max-width: 900px; margin: 0 auto; text-align: center;
  background: linear-gradient(155deg, rgba(139,47,201,0.12), rgba(232,22,58,0.08));
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  padding: 36px 20px; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139,47,201,0.15), transparent 65%);
}
.final-cta h2 { position: relative; font-size: clamp(19px,3.4vw,32px); margin-bottom: 12px; }
.final-cta p  { position: relative; color: var(--muted); margin-bottom: 24px; font-size: 13.5px; }
.final-cta .btn { position: relative; }

/* ═══════════════════════════════════════
   RESPONSIVE — progressively enhanced
   from mobile-first base above
═══════════════════════════════════════ */

/* Tablet (≥768px) */
@media (min-width: 768px) {
  .hero-slide { flex-direction: row; text-align: left; gap: 48px; }
  .hero-slide-visual { order: 0; }
  .hero-carousel-nav { justify-content: flex-start; }
  .rack-visual { max-width: 380px; }

  .stats-band { margin-top: -40px; }
  .stats-band-inner { grid-template-columns: repeat(4, 1fr); }
  .stat-band-item { border-bottom: none; }
  .stat-band-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .stat-band-item:last-child { border-right: none; }

  .fitur-grid { grid-template-columns: repeat(3, 1fr); }

  .apk-section { flex-direction: row; text-align: left; align-items: center; padding: 40px; }
  .apk-text, .apk-visual { flex: 1 1 0; }

  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-mock-stats { grid-template-columns: repeat(3, 1fr); }
  .final-cta { padding: 48px 32px; }

  /* Switch: phone OFF, tablet ON */
  .device-frame.phone-frame  { display: none; }
  .device-frame.tablet-frame { display: flex; }
  .device-frame.laptop-frame { display: none; }
}

/* Laptop / desktop (≥1024px) */
@media (min-width: 1024px) {
  .fitur-grid { grid-template-columns: repeat(4, 1fr); }
  .panel-mock-sidebar { display: flex; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }

  /* Switch: tablet OFF, laptop ON */
  .device-frame.phone-frame  { display: none; }
  .device-frame.tablet-frame { display: none; }
  .device-frame.laptop-frame { display: block; }
}
