/* ============================================================
   JWebsiteKu - Main Stylesheet
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: all .25s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --dark: #f8fafc;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-600: #94a3b8;
  --gray-800: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.3);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--gray-50);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  padding: .9rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}
[data-theme="dark"] .navbar-main {
  background: rgba(15,23,42,.95) !important;
}
.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.navbar-brand-logo span,
.navbar-brand-logo .site-brand-fallback-icon {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 50%;
}
.site-brand-fallback-icon {
  font-size: 1.2rem;
}
.nav-link-custom {
  color: var(--gray-600) !important;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: .5rem;
  transition: var(--transition);
}
.nav-link-custom:hover { color: var(--primary) !important; background: var(--primary-light); }
.nav-link-custom.active { color: var(--primary) !important; background: var(--primary-light); }
.service-dropdown { border-radius: 1rem; min-width: 360px; padding: .65rem; }
.service-dropdown .dropdown-item { align-items: center; border-radius: .7rem; display: flex; gap: .8rem; padding: .65rem .75rem; }
.service-dropdown .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.service-dropdown .dropdown-item > i { align-items: center; background: var(--primary-light); border-radius: .55rem; color: var(--primary); display: inline-flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.service-dropdown .dropdown-item span { display: flex; flex: 1 1 auto; flex-direction: column; line-height: 1.25; min-width: 0; }
.service-dropdown .dropdown-item strong { color: var(--gray-900); display: block; font-size: .88rem; font-weight: 750; }
.service-dropdown .dropdown-item small { color: var(--gray-600); display: block; font-size: .72rem; line-height: 1.35; margin-top: .2rem; white-space: normal; }
.service-dropdown-all strong { color: var(--primary) !important; }
[data-theme="dark"] .service-dropdown { background: #1e293b; }
[data-theme="dark"] .service-dropdown .dropdown-item strong { color: #f8fafc; }
.btn-nav-cta {
  background: var(--gradient);
  color: #fff !important;
  border: none;
  padding: .55rem 1.4rem !important;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0c4a6e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .15;
}
.hero-glow-1 { background: #2563eb; top: -200px; right: -100px; }
.hero-glow-2 { background: #06b6d4; bottom: -200px; left: -100px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}
.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.btn-hero-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(37,99,235,.4);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,.5); color: #fff; }
.btn-hero-secondary {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}
.hero-stat-label { color: rgba(255,255,255,.6); font-size: .875rem; }
.hero-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: #fff;
}
.hero-card-icon {
  width: 52px; height: 52px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(37,99,235,.4);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

/* ============================================================
   PACKAGE CARDS
   ============================================================ */
.package-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .package-card { background: #1e293b; border-color: #334155; }
.package-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-xl); }
.package-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.package-card.popular::before {
  content: '⭐ Paling Populer';
  position: absolute;
  top: 1.25rem; right: -1.8rem;
  background: var(--gradient);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.package-icon {
  width: 60px; height: 60px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.package-price span { font-size: .95rem; font-weight: 500; color: var(--gray-600); }
.package-features { list-style: none; padding: 0; margin: 1.25rem 0; }
.package-features li {
  padding: .45rem 0;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px dashed var(--gray-200);
}
.package-features li:last-child { border: none; }
.package-features li i { color: var(--success); font-size: .85rem; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;   /* potret */
  cursor: pointer;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,23,42,.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-placeholder {
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  height: 100%;
  min-height: 220px;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}
[data-theme="dark"] .testimonial-card { background: #1e293b; border-color: #334155; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.testimonial-stars { color: #f59e0b; font-size: .9rem; }
.testimonial-quote { color: var(--gray-600); font-size: .95rem; line-height: 1.7; font-style: italic; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: var(--transition);
}
[data-theme="dark"] .faq-item { background: #1e293b; border-color: #334155; }
.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--gray-600); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); color: #fff; }
.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-custom:hover { background: var(--primary); color: #fff; }

/* ============================================================
   CARDS / GENERAL
   ============================================================ */
.card-custom {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
[data-theme="dark"] .card-custom { background: #1e293b; border-color: #334155; }
.card-custom .card-header-custom {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
}
[data-theme="dark"] .footer-main { background: #020617; }
.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .75rem;
}
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1.25rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-link { color: rgba(255,255,255,.6); display: block; padding: .3rem 0; font-size: .9rem; transition: var(--transition); }
.footer-link:hover { color: #fff; padding-left: .5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: .5rem;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
  margin-right: .4rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  animation: pulse-wa 2s infinite;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float a:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.dark-toggle {
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  padding: .4rem .8rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: var(--transition);
  font-size: .9rem;
}
.dark-toggle:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.feature-item:hover { background: var(--primary-light); }
.feature-icon {
  min-width: 50px; height: 50px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.feature-title { font-weight: 700; margin-bottom: .25rem; }
.feature-desc { color: var(--gray-600); font-size: .9rem; }

/* ============================================================
   PUBLIC INNER PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0c4a6e 100%);
  color: #fff;
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6,182,212,.25), transparent 32%),
              radial-gradient(circle at 10% 80%, rgba(37,99,235,.3), transparent 34%);
}
.page-hero .container { position: relative; }
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #bfdbfe;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.page-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 760px;
}
.page-lead {
  color: rgba(255,255,255,.76);
  font-size: 1.08rem;
  max-width: 680px;
  margin-top: 1rem;
}
.page-section { padding: 5rem 0; }
.page-section-alt { background: var(--gray-50); }
[data-theme="dark"] .page-section-alt { background: #0f172a; }
.service-tile,
.domain-option,
.faq-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
}
[data-theme="dark"] .service-tile,
[data-theme="dark"] .domain-option,
[data-theme="dark"] .faq-panel {
  background: #1e293b;
  border-color: #334155;
}
.service-tile:hover,
.domain-option:hover,
.faq-panel:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.tile-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.page-cta {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 4rem 0;
}
/* ---- Kartu portofolio (grid 3 kolom, gambar potret) ---- */
.porto-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.porto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .porto-card { background: #1e293b; border-color: #334155; }
.porto-media {
  aspect-ratio: 3/4;              /* potret */
  background: var(--gradient);
  overflow: hidden;
  position: relative;
}
.porto-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.porto-card:hover .porto-media img { transform: scale(1.06); }
.porto-media-empty {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: .75; font-size: 2.5rem;
}
.porto-cat {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(15,23,42,.72); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .3rem .65rem; border-radius: 999px;
}
.porto-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.porto-title { font-size: 1.02rem; font-weight: 800; line-height: 1.3; margin: 0 0 .35rem; }
.porto-desc { color: var(--gray-600); font-size: .85rem; margin: 0 0 .7rem; }
.porto-meta { color: var(--gray-600); font-size: .75rem; margin-bottom: .7rem; }
.porto-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--primary); font-weight: 700; font-size: .85rem;
  text-decoration: none; word-break: break-word;
}
.porto-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .page-hero { padding: 4rem 0 3rem; }
  .page-section { padding: 3.5rem 0; }
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.step-item { text-align: center; position: relative; padding: 0 1rem; }
.step-number {
  width: 64px; height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(37,99,235,.3);
}
.step-connector {
  position: absolute;
  top: 32px; right: -50%;
  width: 100%; height: 2px;
  background: var(--gray-200);
  z-index: -1;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
.aos-animate { opacity: 1; }

/* ============================================================
   MISC UTILS
   ============================================================ */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-xl);
}
.bg-gradient-primary { background: var(--gradient) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.text-muted-custom { color: var(--gray-600) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.shadow-lg-custom { box-shadow: var(--shadow-lg) !important; }

/* Counter animation */
.counter-number { font-feature-settings: 'tnum'; }

/* Preloader */
#preloader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s;
}
[data-theme="dark"] #preloader { background: #0f172a; }
.loader-ring {
  width: 48px; height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .step-connector { display: none; }
}
/* Legal pages */
.legal-layout { align-items: flex-start; }
.legal-nav { position: sticky; top: 6.5rem; border-left: 2px solid var(--gray-200); padding-left: 1.25rem; }
.legal-nav-title { color: var(--gray-900); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }
.legal-nav a { color: var(--gray-600); display: block; font-size: .9rem; padding: .45rem 0; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.legal-nav a:hover { color: var(--primary); transform: translateX(4px); }
.legal-content { max-width: 780px; }
.legal-section { border-bottom: 1px solid var(--gray-200); padding: 0 0 2.25rem; margin-bottom: 2.25rem; scroll-margin-top: 7rem; }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-section h2 { color: var(--gray-900); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; margin-bottom: 1rem; }
.legal-section h3 { color: var(--gray-900); font-size: 1rem; font-weight: 700; margin: 1.35rem 0 .5rem; }
.legal-section p, .legal-section li { color: var(--gray-600); line-height: 1.8; }
.legal-section ul { padding-left: 1.15rem; }
.legal-section li + li { margin-top: .45rem; }
.legal-meta { align-items: center; color: var(--gray-600); display: flex; flex-wrap: wrap; font-size: .86rem; gap: .6rem 1.25rem; margin-top: 1.25rem; }
[data-theme="dark"] .legal-nav { border-color: #334155; }
[data-theme="dark"] .legal-nav-title, [data-theme="dark"] .legal-section h2, [data-theme="dark"] .legal-section h3 { color: #f8fafc; }
[data-theme="dark"] .legal-section { border-color: #334155; }
@media (max-width: 991.98px) { .legal-nav { position: static; margin-bottom: 2.5rem; } }

/* Renewal package page */
.renewal-highlight { background: linear-gradient(135deg, #0f172a, #1e3a8a); border-radius: 1.5rem; color: #fff; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.renewal-highlight::after { background: rgba(255,255,255,.08); border-radius: 50%; content: ''; height: 280px; position: absolute; right: -90px; top: -120px; width: 280px; }
.renewal-highlight > * { position: relative; z-index: 1; }
.renewal-price { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; }
.renewal-price span { font-size: .85rem; font-weight: 500; letter-spacing: 0; opacity: .7; }
.renewal-package-row { align-items: center; border-bottom: 1px solid var(--gray-200); display: grid; gap: 1rem; grid-template-columns: minmax(180px,1.4fr) minmax(130px,.7fr) auto; padding: 1.35rem 0; transition: padding .2s ease; }
.renewal-package-row:hover { padding-left: .5rem; }
.renewal-package-row:last-child { border-bottom: 0; }
.renewal-package-name { color: var(--gray-900); font-size: 1.05rem; font-weight: 800; }
.renewal-package-price { color: var(--primary); font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
[data-theme="dark"] .renewal-package-row { border-color: #334155; }
[data-theme="dark"] .renewal-package-name { color: #f8fafc; }
@media (max-width: 767.98px) { .renewal-package-row { grid-template-columns: 1fr auto; } .renewal-package-desc { grid-column: 1 / -1; grid-row: 2; } .renewal-package-action { grid-column: 1 / -1; } }

/* Service detail pages */
.service-detail-hero { overflow: hidden; }
.service-detail-price { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; }
.service-detail-price span { font-size: .85rem; font-weight: 500; letter-spacing: 0; opacity: .7; }
.service-detail-icon { align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 2rem; display: flex; font-size: clamp(4rem, 9vw, 7rem); height: min(280px, 35vw); justify-content: center; margin-left: auto; transform: rotate(3deg); width: min(320px, 100%); }
.service-audience { border-left: 2px solid var(--primary); padding: .15rem 0 .15rem 1.25rem; }
.service-audience h3 { color: var(--gray-900); font-size: 1rem; font-weight: 800; }
.service-feature-line { align-items: flex-start; border-bottom: 1px solid var(--gray-200); display: flex; gap: .85rem; padding: 1rem 0; }
.service-feature-line:last-child { border-bottom: 0; }
.service-feature-line i { color: var(--primary); margin-top: .3rem; }
[data-theme="dark"] .service-audience h3 { color: #f8fafc; }
[data-theme="dark"] .service-feature-line { border-color: #334155; }
@media (max-width: 991.98px) { .service-dropdown { min-width: 100%; box-shadow: none !important; } .service-detail-icon { margin: 1rem 0 0; height: 180px; } }

/* Source code catalog */
.source-product { border-bottom: 1px solid var(--gray-200); padding: 2rem 0; }
.source-product:first-child { padding-top: 0; }
.source-product:last-child { border-bottom: 0; padding-bottom: 0; }
.source-preview { aspect-ratio: 400 / 600; max-width: 400px; width: 100%; background: linear-gradient(135deg,#e0e7ff,#dbeafe); border-radius: 1.1rem; overflow: hidden; position: relative; }
.source-preview img { height: 100%; object-fit: cover; object-position: top; transition: transform .45s ease; width: 100%; }
.source-product:hover .source-preview img { transform: scale(1.035); }
.source-preview-placeholder { align-items: center; color: var(--primary); display: flex; font-size: 3rem; height: 100%; justify-content: center; }
.source-stack { color: var(--primary); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-title { color: var(--gray-900); font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; }
.source-price { color: var(--primary); font-size: 1.45rem; font-weight: 800; }
.source-features { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.source-feature { background: var(--gray-100); border-radius: 999px; color: var(--gray-600); font-size: .76rem; padding: .35rem .7rem; }
[data-theme="dark"] .source-product { border-color: #334155; }
[data-theme="dark"] .source-title { color: #f8fafc; }
[data-theme="dark"] .source-feature { background: #334155; color: #cbd5e1; }

/* Blog */
.blog-cover { aspect-ratio: 16/9; background: linear-gradient(135deg,#dbeafe,#e0e7ff); border-radius: 1.25rem; overflow: hidden; }
.blog-cover img { height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.blog-cover-placeholder { align-items: center; color: var(--primary); display: flex; font-size: 2.5rem; height: 100%; justify-content: center; }
.blog-category { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

/* ---- Kartu blog (grid 4 kolom, gambar di atas) ---- */
.blog-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .blog-card { background: #1e293b; border-color: #334155; }
.blog-card .blog-cover { aspect-ratio: 16/10; border-radius: 0; }   /* gambar menempel di atas kartu */
.blog-card:hover .blog-cover img { transform: scale(1.06); }
.blog-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-title { font-size: 1rem; font-weight: 800; line-height: 1.35; margin: .35rem 0 .4rem; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--gray-600); font-size: .84rem; margin: 0 0 .7rem; }
.blog-card-date { color: var(--gray-600); font-size: .74rem; margin-bottom: .7rem; }
.blog-card-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--primary); font-weight: 700; font-size: .85rem; text-decoration: none;
}
.blog-card-more i { transition: transform .2s ease; }
.blog-card-more:hover i { transform: translateX(3px); }
.article-body { color: var(--gray-700); font-size: 1.05rem; line-height: 1.9; margin: 0 auto; max-width: 760px; }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2,.article-body h3,.article-body h4 { color:var(--gray-900); font-weight:800; line-height:1.3; margin:2.25rem 0 1rem; }
.article-body ul,.article-body ol { margin-bottom:1.5rem; padding-left:1.5rem; }
.article-body li+li { margin-top:.45rem; }
.article-body blockquote { border-left:4px solid var(--primary); color:var(--gray-600); font-style:italic; margin:2rem 0; padding:.5rem 1.25rem; }
.article-body pre,.article-body code { background:var(--gray-100); border-radius:.4rem; font-size:.9em; }
.article-body pre { overflow:auto; padding:1rem; }
.article-body code { padding:.15rem .35rem; }
.article-cover { border-radius: 1.25rem; display: block; margin: 0 auto 2.5rem; max-height: 520px; object-fit: cover; width: min(100%,960px); }
[data-theme="dark"] .article-body { color:#cbd5e1; }
[data-theme="dark"] .article-body h2,[data-theme="dark"] .article-body h3,[data-theme="dark"] .article-body h4 { color:#f8fafc; }
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:4.5rem;align-items:start}.article-main{min-width:0}.article-sidebar{position:sticky;top:100px}.article-back{padding-top:2.5rem;margin-top:2.5rem;border-top:1px solid #e8ecf2}.sidebar-section{padding:0 0 2rem;margin-bottom:2rem;border-bottom:1px solid #e8ecf2}.sidebar-title{font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--primary);padding-bottom:.8rem;border-bottom:2px solid #17223b;margin-bottom:.5rem}.popular-item{display:grid;grid-template-columns:36px 1fr;gap:.75rem;padding:1rem 0;border-bottom:1px solid #edf0f5;color:inherit}.popular-item>strong{font-size:1.35rem;color:#c9d1df;line-height:1}.popular-item h3,.bestseller-item h3{font-size:.88rem;font-weight:750;line-height:1.4;margin:0 0 .3rem}.popular-item small,.bestseller-item small{display:block;color:#8590a3;font-size:.72rem}.bestseller-item{display:grid;grid-template-columns:72px 1fr;gap:.85rem;align-items:center;padding:1rem 0;border-bottom:1px solid #edf0f5;color:inherit}.bestseller-thumb{width:72px;height:54px;border-radius:.55rem;overflow:hidden;background:#eef3ff;color:var(--primary);display:flex;align-items:center;justify-content:center}.bestseller-thumb img{width:100%;height:100%;object-fit:cover}.bestseller-item strong{color:var(--primary);font-size:.82rem}.related-articles{margin-top:4.5rem}.section-heading-compact span{font-size:.75rem;color:var(--primary);font-weight:800;letter-spacing:.12em;text-transform:uppercase}.section-heading-compact h2{font-size:1.65rem;font-weight:800;margin:.35rem 0 1.5rem}.related-article-item{display:grid;grid-template-columns:150px 1fr auto;gap:1.25rem;align-items:center;padding:1rem 0;border-top:1px solid #e8ecf2;color:inherit}.related-article-thumb{width:150px;height:92px;border-radius:.7rem;overflow:hidden;background:#eef3ff;color:var(--primary);display:flex;align-items:center;justify-content:center}.related-article-thumb img{width:100%;height:100%;object-fit:cover}.related-article-item span{color:var(--primary);font-size:.7rem;font-weight:800;text-transform:uppercase}.related-article-item h3{font-size:1rem;font-weight:750;margin:.25rem 0}.related-article-item small{color:#8590a3}.related-arrow{color:var(--primary);transition:transform .2s ease}.related-article-item:hover .related-arrow{transform:translateX(4px)}
@media(max-width:991.98px){.article-layout{grid-template-columns:1fr;gap:3rem}.article-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:2rem}.sidebar-section{margin:0}}
@media(max-width:575.98px){.article-sidebar{grid-template-columns:1fr}.related-article-item{grid-template-columns:92px 1fr}.related-article-thumb{width:92px;height:70px}.related-arrow{display:none}.article-layout{gap:2.5rem}}
