/* ==============================================================================
   CIBIS PARK KAWASAN 3D SHOWCASE - ULTRA-PREMIUM DESIGN SYSTEM
   Theme: Dark Tech Architecture, Glassmorphism, Emerald & Cyan Accents
   ============================================================================== */

:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #111726;
  --bg-card: rgba(18, 25, 38, 0.85);
  --bg-card-hover: rgba(26, 36, 54, 0.92);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(16, 185, 129, 0.35);

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 24px;
}

/* ==============================================================================
   1. NAVBAR
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  height: 72px;
  display: flex;
  align-items: center;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f17;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-deploy-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #042f20;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}

.btn-deploy-guide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-emerald-glow);
}

/* ==============================================================================
   2. HERO SECTION
   ============================================================================== */
.hero-section {
  padding: 56px 24px 32px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-title span {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 840px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.stat-chip:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==============================================================================
   3. 3D WEBGL VIEWER CARD
   ============================================================================== */
.viewer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.viewer-header {
  padding: 16px 24px;
  background: rgba(18, 25, 38, 0.95);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.viewer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.viewer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.lighting-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
}

.btn-light-preset {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-light-preset:hover {
  color: var(--text-main);
}

.btn-light-preset.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Presets Toolbar */
.presets-toolbar {
  padding: 12px 20px;
  background: rgba(14, 20, 31, 0.98);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.presets-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

.presets-buttons-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.presets-buttons-scroll::-webkit-scrollbar {
  height: 4px;
}

.presets-buttons-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.btn-cam-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-cam-preset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-cam-preset.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Model Viewport */
.model-viewport {
  position: relative;
  width: 100%;
  height: 640px;
  background: radial-gradient(circle at center, #172133 0%, #0d121c 100%);
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  outline: none;
}

/* Floating HUD */
.viewer-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hud-item {
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  display: flex;
  gap: 5px;
}

.hud-label {
  color: var(--text-dim);
}

.hud-val {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Bottom Action Bar */
.viewer-action-bar {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-ar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.viewer-overlay-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* ==============================================================================
   4. ZONASI GRID
   ============================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.zone-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(14px);
}

.zone-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.zone-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.zone-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.zone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.zone-specs {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zone-specs strong {
  color: var(--text-muted);
}

/* ==============================================================================
   5. AUDIT REPORT CARDS
   ============================================================================== */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.audit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
}

.audit-card.problem {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, rgba(18, 25, 38, 0.9) 100%);
}

.audit-card.solution {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 25, 38, 0.9) 100%);
}

.audit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.audit-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audit-list li {
  font-size: 0.88rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.audit-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.audit-list strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 2px;
}

.audit-list span {
  color: var(--text-muted);
}

/* ==============================================================================
   6. DEPLOY CARDS
   ============================================================================== */
.deploy-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deploy-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.vercel-logo { color: #f8fafc; }
.netlify-logo { color: #2dd4bf; }
.cf-logo { color: #f97316; }

.deploy-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.deploy-code-block {
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  color: #a7f3d0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.deploy-status {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* ==============================================================================
   7. FOOTER
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 24px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-right {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .model-viewport { height: 480px; }
  .viewer-action-bar { bottom: 36px; padding: 4px 6px; }
  .action-btn { font-size: 0.7rem; padding: 4px 8px; }
  .presets-toolbar { overflow-x: auto; }
}
