/* ==============================================================================
   MARKASJOKI - MINIMALIST LUXURY DESIGN SYSTEM (MAX 4 COLORS)
   1. Canvas / Surface: Obsidian (#0b0f19) / Pure White (#ffffff)
   2. Typography / Text: Monochrome Crisp White (#f8fafc) / Charcoal (#0f172a)
   3. Primary Brand Accent: Royal Blue (#2563eb)
   4. Status & Action: Emerald Mint (#10b981)
   ============================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #18223a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #2563eb;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-subtle: rgba(37, 99, 235, 0.12);

  --status-active: #10b981;
  --status-active-subtle: rgba(16, 185, 129, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   LIGHT MODE EXCELLENCE OVERRIDES
   ============================================================================== */
:root[data-theme="light"], html.light-mode {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #2563eb;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.12);
  --primary-subtle: rgba(37, 99, 235, 0.08);

  --status-active: #059669;
  --status-active-subtle: rgba(5, 150, 105, 0.08);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #0f172a;
}

html.light-mode body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image: none !important;
}

html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode h5,
html.light-mode h6 {
  color: #0f172a !important;
}

html.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

html.light-mode .brand-logo {
  color: #0f172a !important;
}

html.light-mode .nav-link {
  color: #475569 !important;
}
html.light-mode .nav-link:hover {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06) !important;
}
html.light-mode .nav-link.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

html.light-mode .btn-outline {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
html.light-mode .btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

html.light-mode .theme-toggle-btn {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

html.light-mode .card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
html.light-mode .card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  border-color: #cbd5e1 !important;
}

html.light-mode .stats-counter-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
html.light-mode .stats-counter-card .stat-desc {
  color: #64748b !important;
}

html.light-mode .section-keunggulan {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

html.light-mode .badge-info,
html.light-mode .badge-primary {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

html.light-mode .badge-success {
  background: rgba(5, 150, 105, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.2) !important;
}

html.light-mode .badge-warning {
  background: rgba(100, 116, 139, 0.08) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.2) !important;
}

html.light-mode .form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
html.light-mode .form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
html.light-mode .form-label {
  color: #334155 !important;
}

html.light-mode .footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
html.light-mode .footer h4 {
  color: #0f172a !important;
}
html.light-mode .footer a {
  color: #475569 !important;
}
html.light-mode .footer a:hover {
  color: #2563eb !important;
}

/* ==============================================================================
   BASE & RESET
   ============================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.stats-counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.stats-counter-card .stat-desc {
  color: var(--text-muted);
}
.section-keunggulan {
  background: rgba(11, 15, 25, 0.5);
  border-top: 1px solid var(--border-subtle);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  background: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  width: 100%;
  padding: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* FLASH ALERTS */
.alert-container {
  margin-top: 20px;
}

.alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: slideDown 0.25s ease;
}

.alert-success {
  background: var(--status-active-subtle);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* CARDS & GRIDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-service {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0 8px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.badge-info,
.badge-primary {
  background: var(--primary-subtle);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-success {
  background: var(--status-active-subtle);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-warning {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* FORMS */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* FOOTER */
.footer {
  margin-top: auto;
  background: #070a12;
  border-top: 1px solid var(--border-subtle);
  padding: 45px 0 25px 0;
  color: var(--text-muted);
  font-size: 14px;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .grid-cards { grid-template-columns: 1fr; }
}
