:root {
  --bg-apple: #f3f5f8;
  --card-glass: rgba(255, 255, 255, 0.78);
  --card-glass-hover: rgba(255, 255, 255, 0.96);
  --border-subtle: rgba(15, 23, 42, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.9);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --apple-blue: #0071e3;
  --apple-teal: #00a896;
  --apple-amber: #f59e0b;
  --apple-emerald: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background-color: var(--bg-apple);
  background-image: 
    radial-gradient(at 10% 10%, rgba(0, 113, 227, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 15%, rgba(0, 168, 150, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.06) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(243, 245, 248, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.home-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.home-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-brand-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.home-brand-text span {
  color: var(--apple-blue);
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-btn-donasi-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #b45309;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-btn-donasi-nav:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.home-btn-kontak-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--text-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.home-btn-kontak-nav:hover {
  background: var(--apple-blue);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.25);
}

.home-main {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-section {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0b2239 0%, #0f3156 55%, #0d4a56 100%);
  border-radius: 28px;
  padding: 44px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(11, 34, 57, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.home-hero-section::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.home-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #7dd3fc;
}

.home-live-dot-sm {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 10px #34d399;
}

.home-hero-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: #ffffff;
}

.home-highlight-amber {
  color: #fbbf24;
  display: block;
}

.home-hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 26px;
  font-weight: 400;
}

.home-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.home-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.home-iot-svg {
  width: 100%;
  max-width: 410px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.home-data-stream {
  stroke-dasharray: 5 5;
  animation: streamFlow 10s linear infinite;
}

.home-radar-pulse {
  transform-origin: 185px 150px;
  animation: radarWave 3s infinite ease-out;
}

.home-amal-pulse {
  transform-origin: 242px 210px;
  animation: radarWave 2.6s infinite ease-out;
}

.home-node-hover {
  transition: transform 0.3s ease;
  cursor: pointer;
}

@keyframes streamFlow {
  to { stroke-dashoffset: -100; }
}

@keyframes radarWave {
  0% { transform: scale(0.8); opacity: 0.85; }
  100% { transform: scale(2.1); opacity: 0; }
}

.home-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-gateway-card {
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), inset 0 1px 0 var(--border-highlight);
  border-radius: 24px;
  padding: 26px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.home-card-cctv { --accent: #0071e3; --accent-soft: rgba(0, 113, 227, 0.09); }
.home-card-iot { --accent: #00a896; --accent-soft: rgba(0, 168, 150, 0.09); }
.home-card-mitigasi { --accent: #d97706; --accent-soft: rgba(245, 158, 11, 0.11); }
.home-card-kontak { --accent: #059669; --accent-soft: rgba(16, 185, 129, 0.09); }

.home-gateway-card:hover {
  background: var(--card-glass-hover);
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 18px 38px -10px rgba(15, 23, 42, 0.1), inset 0 1px 0 #ffffff;
}

.home-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.home-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.home-gateway-card:hover .home-card-icon {
  transform: scale(1.06);
}

.home-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.04);
  padding: 5px 11px;
  border-radius: 999px;
}

.home-status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.home-card-title {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.home-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.home-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-card-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-gateway-card:hover .home-card-arrow {
  transform: translateX(4px);
}

/* BANNER BENTO DONASI & KOLABORASI */
.home-collab-banner {
  margin-top: 18px;
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), inset 0 1px 0 var(--border-highlight);
  border-radius: 24px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-collab-banner:hover {
  background: var(--card-glass-hover);
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 18px 38px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 #ffffff;
}

.home-collab-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-collab-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.home-collab-banner:hover .home-collab-icon {
  transform: scale(1.06);
}

.home-collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #d97706;
  margin-bottom: 4px;
}

.home-collab-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.home-collab-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-collab-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: #0b2239;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.home-collab-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.home-collab-banner:hover .home-collab-cta {
  background: #0071e3;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.25);
}

.home-collab-banner:hover .home-collab-arrow {
  transform: translateX(4px);
}

.home-blog-section {
  margin-top: 56px;
}

.home-section-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-section-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.home-section-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-blog-card {
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.home-blog-card:hover {
  background: var(--card-glass-hover);
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 18px 38px -10px rgba(15, 23, 42, 0.1);
}

.home-blog-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.home-blog-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-blog-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--apple-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.home-blog-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-excerpt {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-excerpt p {
  margin: 0;
}

.home-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.home-btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(243, 245, 248, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.home-pagination-arrow {
  display: block;
  flex-shrink: 0;
}

.home-btn-load-more:hover:not(:disabled) {
  background: var(--text-primary);
  color: #ffffff;
  transform: scale(1.02);
}

.home-btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.home-btn-hidden {
  display: none;
}

.home-main-footer {
  width: 100%;
  max-width: 1160px;
  margin: 60px auto 0;
  padding: 56px 48px 24px;
  background: linear-gradient(180deg, #142e4b 0%, #0e2137 100%);
  border-radius: 36px 36px 0 0;
  color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 -10px 40px rgba(14, 33, 55, 0.1);
}

.home-footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.home-footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  position: relative;
}

.home-footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 24px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.home-footer-col p {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.home-footer-mt {
  margin-top: 8px;
}

.home-footer-col a {
  color: #7dd3fc;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.home-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.home-social-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  color: #ffffff;
  transition: all 0.25s ease;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-social-btn:hover {
  background: #38bdf8;
  color: #0e2137;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
}

.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.home-footer-bottom strong {
  color: #ffffff;
  font-weight: 600;
}

/* Responsif */
@media (max-width: 1024px) {
  .home-hero-section {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .home-hero-visual {
    order: -1;
  }
  .home-iot-svg {
    max-width: 330px;
  }
  .home-gateway-grid, .home-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .home-collab-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .home-collab-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
  }
  .home-footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-header-inner {
    padding: 14px 20px;
  }
  .home-btn-donasi-nav {
    display: none;
  }
  .home-main {
    padding: 20px 16px 36px;
  }
  .home-hero-section {
    padding: 28px 22px;
    border-radius: 24px;
  }
  .home-gateway-grid, .home-blog-grid {
    grid-template-columns: 1fr;
  }
  .home-collab-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .home-blog-section {
    margin-top: 40px;
  }
  .home-blog-thumb {
    height: 200px;
  }
  .home-main-footer {
    padding: 40px 24px 24px;
    border-radius: 28px 28px 0 0;
  }
  .home-footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}