/* Trang chủ — mockup Bảo hành điện tử */
.page-index { background: #f8fafc; }
.page-index .site-main { padding: 0; overflow-x: hidden; }

/* Header: pill + gạch chân */
.page-index .site-header {
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: none;
}
.page-index .header-inner { height: 72px; }
.page-index .nav-main a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #64748b;
  background: transparent !important;
  position: relative;
}
.page-index .nav-main a .ni { font-size: 14px; }
.page-index .nav-main a:hover { color: #1890ff; }
.page-index .nav-main a.active {
  color: #1890ff;
  font-weight: 600;
  background: #e8f4ff !important;
}
.page-index .nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #1890ff;
  border-radius: 2px;
}
.page-index .btn-login {
  background: #1890ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.page-index .btn-login:hover { background: #0056b3; color: #fff; }

/* Layout chính + sidebar app (mockup phải) */
.home-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}
.home-main { flex: 1; min-width: 0; }

/* Hero */
.home-hero {
  position: relative;
  padding: 40px 0 56px;
  background: linear-gradient(180deg, #e3f0ff 0%, #f0f7ff 40%, #f8fafc 100%);
}
.home-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23e8f4ff' fill-opacity='0.5' d='M0,64 C300,120 600,0 900,48 L1200,80 L1200,120 L0,120 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.home-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 10px;
}
.home-hero .tagline {
  font-size: 20px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 14px;
}
.home-hero .desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 28px;
}
.home-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(24, 144, 255, 0.12);
  padding: 6px 6px 6px 16px;
  max-width: 540px;
  margin-bottom: 14px;
}
.home-search-box .si { color: #94a3b8; flex-shrink: 0; }
.home-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 10px;
  font-size: 14px;
  min-width: 0;
}
.home-search-box button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #40a9ff, #1890ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(24, 144, 255, 0.35);
}
.home-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-quick-btns a {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.home-quick-btns a:hover {
  border-color: #91caff;
  color: #1890ff;
}

/* Hero 3D: khiên + điện thoại */
.hero-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}
.hero-3d {
  position: relative;
  width: 320px;
  height: 320px;
}
.hero-glow-bg {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-pedestal {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 20px;
  background: linear-gradient(180deg, #69b1ff, #1890ff);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(24, 144, 255, 0.5);
}
.hero-shield-3d {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 100px;
  background: linear-gradient(160deg, #69b1ff 0%, #1890ff 50%, #0056b3 100%);
  clip-path: polygon(50% 0%, 100% 16%, 100% 70%, 50% 100%, 0% 70%, 0% 16%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(0, 86, 179, 0.4);
  z-index: 2;
}
.hero-phone-3d {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 100px;
  height: 180px;
  background: linear-gradient(145deg, #1e293b, #334155);
  border-radius: 20px;
  border: 3px solid #475569;
  padding: 12px 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 3;
}
.hero-phone-screen {
  height: 100%;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.hero-phone-screen .check {
  width: 36px;
  height: 36px;
  background: #52c41a;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}
.hero-phone-screen span {
  font-size: 9px;
  color: #334155;
  font-weight: 600;
  line-height: 1.3;
}

/* Dịch vụ — 4 thẻ */
.home-services {
  padding: 48px 0;
  background: #f8fafc;
}
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(24, 144, 255, 0.12);
}
.svc-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.svc-card.blue .icon-circle { background: #e6f4ff; }
.svc-card.green .icon-circle { background: #f6ffed; }
.svc-card.purple .icon-circle { background: #f9f0ff; }
.svc-card.orange .icon-circle { background: #fff7e6; }
.svc-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.svc-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

/* Vì sao chọn */
.home-why {
  padding: 56px 0 72px;
  background: #fff;
}
.home-why .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 36px;
}
.why-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.why-card .icon-shape {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.why-card.blue .icon-shape { background: #e6f4ff; }
.why-card.green .icon-shape { background: #f6ffed; }
.why-card.purple .icon-shape { background: #f9f0ff; }
.why-card.orange .icon-shape { background: #fff7e6; }
.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}
.why-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Sidebar app (desktop mockup) */
.home-app-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #003d82 0%, #0056b3 100%);
  color: #fff;
  min-height: calc(100vh - 72px);
  padding: 24px 16px;
  display: none;
  position: sticky;
  top: 72px;
}
.home-app-sidebar .sb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.home-app-sidebar .sb-logo span { font-size: 12px; font-weight: 700; }
.home-app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}
.home-app-sidebar nav a:hover,
.home-app-sidebar nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.home-app-sidebar .sb-download {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}
.home-app-sidebar .qr {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 1280px) {
  .home-app-sidebar { display: flex; flex-direction: column; }
  .page-index .home-layout .container { max-width: 100%; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 1100px) {
  .services-grid-4,
  .why-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 32px; }
  .hero-visual-wrap { min-height: 260px; }
  .services-grid-4,
  .why-grid-4 { grid-template-columns: 1fr; }
  .home-search-box { flex-wrap: wrap; border-radius: 12px; padding: 12px; }
  .home-search-box button { width: 100%; justify-content: center; margin-top: 8px; }
  .page-index .nav-main a.active::after { display: none; }
}
