/* ═══════════════════════════════════════════════
   DiagnosKit — Home Page
   ═══════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 50%, rgba(58,171,219,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 20%, rgba(125,194,66,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #0D1B2A 0%, #1A2F45 40%, #0D2438 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,171,219,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,171,219,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-circle-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(58,171,219,0.12);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-circle-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(125,194,66,0.10);
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  animation: heroFloat 8s ease-in-out infinite reverse;
  animation-delay: 1s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%       { transform: translateY(calc(-50% - 12px)) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: var(--space-16) 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(58,171,219,0.15);
  border: 1px solid rgba(58,171,219,0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.6s var(--ease-out) both;
}

.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}

.hero-title .accent {
  color: var(--blue);
}

.hero-title .accent-green {
  color: var(--green);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 520px;
  animation: fadeUp 0.6s 0.2s var(--ease-out) both;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  animation: fadeUp 0.6s 0.4s var(--ease-out) both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-value span {
  color: var(--green);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── Hero Right Panel ── */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  z-index: 1;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 380px;
  animation: fadeUp 0.8s 0.3s var(--ease-out) both;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.hero-product-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-product-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.hero-product-item:hover {
  background: rgba(58,171,219,0.12);
  border-color: rgba(58,171,219,0.3);
}

.hero-product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-product-name {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.hero-product-time {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.hero-card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.ce-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(125,194,66,0.15);
  border: 1px solid rgba(125,194,66,0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* ── Announcement Banner ── */
.announcement {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
  padding: 10px 0;
  text-align: center;
}

.announcement-text {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.announcement-text strong {
  color: var(--white);
}

/* ── Section Styles ── */
.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-dark {
  background: var(--gray-900);
}

.section-light {
  background: var(--blue-light);
}

.section-gray {
  background: var(--gray-100);
}

.section-header {
  max-width: 600px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.section-title .accent { color: var(--blue); }
.section-title .accent-green { color: var(--green); }

.section-dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ── Category Cards ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.category-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.category-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.category-count {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  height: 160px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image-placeholder {
  font-size: 48px;
  opacity: 0.4;
}

.product-card-category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.product-card-ce {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.product-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.meta-chip svg { width: 10px; height: 10px; }

.product-card-footer {
  border-top: 1px solid var(--gray-100);
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-price-unit {
  font-size: 11px;
  color: var(--gray-500);
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.add-to-cart-btn:active {
  transform: translateY(0) scale(0.97);
}

.add-to-cart-btn.added {
  background: var(--green);
}

/* ── Trust Badges ── */
.trust-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.trust-text-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.trust-text-sub {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── How it Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue));
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  border: 3px solid var(--white);
}

.step-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark) 60%, #1A6B8A);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-20) 0;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  font-weight: 300;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  font-weight: 600;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* ── Footer ── */
.site-footer {
  background: var(--gray-900);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-2);
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--blue);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer-legal-link {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color var(--duration-fast);
}

.footer-legal-link:hover {
  color: rgba(255,255,255,0.7);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .steps-grid::before { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: var(--space-16) 0 var(--space-12); }
  .hero-stats { gap: var(--space-6); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .products-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid    { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
