:root {
  --ink: #0b1220;
  --ink-soft: #22304a;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

body.public-site {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(180deg, #f9fafb 0%, #eef2f7 55%, #f9fafb 100%);
  min-height: 100vh;
}

body.public-site::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

body.public-site > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
}

.site-shell {
  padding-top: 28px;
  padding-bottom: 80px;
}

.main-nav {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav .navbar-brand {
  gap: 12px;
  color: var(--ink);
  align-items: center;
}

.main-nav .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.main-nav .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.main-nav .brand-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.main-nav .brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav .nav-link {
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.main-nav .navbar-nav {
  gap: 6px;
  align-items: center;
}

.main-nav .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 10px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand);
}

.topbar {
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 0.78rem;
}

.topbar-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover { color: #60a5fa; }

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(226, 232, 240, 0.35);
  display: inline-block;
}

.hero {
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #2563eb 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hero-carousel .carousel-item {
  min-height: 520px;
  position: relative;
}

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 29, 0.85) 0%, rgba(10, 16, 29, 0.65) 45%, rgba(10, 16, 29, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 90px 20px;
}

.hero-content h1,
.hero-content .lead,
.hero-content .badge-soft {
  color: #ffffff;
}

.hero-content .badge-soft {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-content-inner {
  max-width: 560px;
}

.hero-aside {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.hero-aside h5,
.hero-aside .metric .value {
  color: #fff;
}

.hero-aside .metric .label {
  color: rgba(255, 255, 255, 0.7);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 10% 70%, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0.9;
}

.hero > * { position: relative; z-index: 1; }

.hero .display-5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-carousel {
  position: relative;
}

.hero-carousel .carousel-item {
  position: relative;
}

.hero-slide {
  height: 220px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.55));
}

.hero-slide-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 36px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: invert(1);
}

.metric {
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.metric .value {
  font-weight: 700;
  font-size: 1.2rem;
}

.metric .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
}

.service-section {
  margin-top: 70px;
}

.service-section .section-title {
  font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.6rem);
}

.service-section .section-lead {
  color: #4b5563;
}

.card-elevated {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-elevated:focus-within {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), var(--shadow-md);
}

.card-ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-success:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary,
.btn-outline-success {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--brand-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.15);
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.12);
  padding: 0.7rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.table thead th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 700;
}

.page-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem);
}

.content p,
.content ul,
.content ol {
  line-height: 1.8;
  color: var(--ink-soft);
}

.content ul,
.content ol { padding-left: 1.2rem; }

.content img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.section-pad { padding: 90px 0; }

.footer-modern {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 300px at 10% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(800px 300px at 90% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.06);
}

.footer-modern .brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
}

.footer-modern .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.footer-modern a.text-muted:hover { color: var(--brand) !important; }

.soft-surface {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.struktur-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.struktur-card h5 { margin-bottom: 6px; font-weight: 600; }
.struktur-card p { margin: 0; color: var(--muted); }

.produk-card { border-radius: var(--radius); overflow: hidden; }
.produk-card img { height: 200px; object-fit: cover; }

.produk-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.produk-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}

.produk-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cta-strip {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(29, 78, 216, 0.9));
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-strip p { color: rgba(255, 255, 255, 0.85); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card .body {
  padding: 16px 18px 20px;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card h5 { font-weight: 700; }
.service-card p { color: var(--muted); }

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 120px at 10% 0%, rgba(37, 99, 235, 0.12), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}

.service-card:hover .service-tag {
  transform: translateY(-1px);
}

.service-card h5,
.gallery-card h5,
.produk-card h5 {
  transition: transform 0.25s ease;
}

.service-card:hover h5,
.gallery-card:hover h5,
.produk-card:hover h5 {
  transform: translateY(-2px);
}

.reveal {
  animation: reveal 0.8s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .hero { padding: 50px 22px; }
  .hero-grid { grid-template-columns: 1fr; }
  .service-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .main-nav .nav-link { margin-bottom: 6px; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 70px 18px;
  }
  .hero-carousel .carousel-item {
    min-height: 520px;
  }
}

@media (max-width: 576px) {
  .produk-card img { height: 180px; }
  .gallery-card img { height: 180px; }
  .struktur-card img { width: 90px; height: 90px; }
}
