:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #8b5cf6; /* Ungu SaaS */
  --accent: #38bdf8; /* Biru Muda */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.9rem;
  transition: 0.3s;
}
.nav-links a:hover {
  color: white;
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

/* --- BENTO GRID (PADAT FITUR) --- */
.bento-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
}

.bento-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-box:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Spesifik Ukuran Grid */
.box-large {
  grid-column: span 2;
}
.box-tall {
  grid-row: span 2;
}

/* Styling Konten Bento */
.bento-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.bento-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Widget Visual di dalam Box */
.visual-widget {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #555;
  overflow: hidden;
}
.mockup-cv {
  width: 100px; /* Ukuran relatif */
  height: 140px;
  background: white;
  border-radius: 2px;
  opacity: 0.9;
  transform: rotate(-5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: 0.3s;
}

/* Efek Hover: Kertas jadi lurus & mendekat */
.bento-box:hover .mockup-cv {
  transform: rotate(0deg) scale(1.1);
  opacity: 1;
}

/* --- ISI MOCKUP CV (Garis-garis CSS) --- */

/* Header: Foto Bulat & Garis Nama */
.mockup-header {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}
.mockup-photo {
  width: 20px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 50%;
}
.mockup-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.line-lg {
  height: 4px;
  width: 80%;
  background: #334155;
  border-radius: 2px;
}
.line-sm {
  height: 2px;
  width: 50%;
  background: #94a3b8;
  border-radius: 2px;
}

/* Body Content */
.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.line-text {
  height: 2px;
  width: 100%;
  background: #e2e8f0;
  border-radius: 1px;
}
.line-text.short {
  width: 70%;
}
.line-text.w-50 {
  width: 50%;
}

/* Aksen Warna Mockup (Biar mirip template Sidebar) */
.mockup-sidebar-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: #f1f5f9;
  z-index: 0;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 20px;
  margin-top: 50px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}
.copyright {
  color: #555;
  font-size: 0.8rem;
}

/* --- WIDGET MULTI-LAYOUT --- */

.layout-widget-container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #1e293b,
    #0f172a
  ); /* Background gelap elegan */
}

/* Base Card Layout Mini */
.mini-layout {
  width: 50px;
  height: 70px;
  background: white;
  border-radius: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
  opacity: 0.7;
}

/* --- ANIMASI HOVER (Kartu Menyebar) --- */
/* Saat Bento Box di-hover... */

/* Kartu Kiri (Standard) miring ke kiri */
.bento-box:hover .mini-layout.standard {
  transform: translateX(-10px) rotate(-10deg) scale(0.9);
  opacity: 0.8;
}

/* Kartu Tengah (Sidebar) maju ke depan & fokus */
.bento-box:hover .mini-layout.sidebar {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5); /* Glow Biru */
  opacity: 1;
  border: 1px solid #3b82f6;
}

/* Kartu Kanan (Executive) miring ke kanan */
.bento-box:hover .mini-layout.executive {
  transform: translateX(10px) rotate(10deg) scale(0.9);
  opacity: 0.8;
}

/* --- ISI DALAM MINI LAYOUT (CSS Drawing) --- */

/* 1. Layout Standard (Vertical Flow) */
.mini-layout.standard {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.std-head {
  width: 40%;
  height: 4px;
  background: #334155;
  margin-bottom: 2px;
}
.std-line {
  width: 100%;
  height: 2px;
  background: #cbd5e1;
}

/* 2. Layout Sidebar (2 Kolom) */
.mini-layout.sidebar {
  display: flex;
}
.sb-left {
  width: 30%;
  height: 100%;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  gap: 2px;
}
.sb-dot {
  width: 8px;
  height: 8px;
  background: #475569;
  border-radius: 50%;
} /* Foto profil */
.sb-bar {
  width: 60%;
  height: 2px;
  background: #334155;
}
.sb-right {
  width: 70%;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-head {
  width: 80%;
  height: 4px;
  background: #334155;
  margin-bottom: 2px;
}

/* 3. Layout Executive (Centered) */
.mini-layout.executive {
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 2px solid #334155;
}
.exe-head {
  width: 50%;
  height: 4px;
  background: #334155;
  margin-bottom: 2px;
}
.exe-line {
  width: 90%;
  height: 2px;
  background: #cbd5e1;
}

/* --- WIDGET PRIVASI (Glowing Shield) --- */
.privacy-widget {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(34, 197, 94, 0.1),
    transparent 70%
  );
}

.shield-container {
  position: relative;
  width: 60px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-icon-lg {
  font-size: 2.5rem;
  color: #22c55e; /* Hijau Sukses */
  z-index: 2;
  position: relative;
}

/* Animasi Cincin Berdenyut */
.shield-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  opacity: 0;
  z-index: 1;
  animation: pulse-green 2s infinite ease-out;
}
.shield-pulse:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes pulse-green {
  0% {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
  }
}

/* --- WIDGET DRAG & DROP (Moving List) --- */
.drag-widget {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.drag-item {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 100%;
  position: relative;
}

/* Item khusus yang bergerak */
.drag-item.moving {
  background: #f59e0b; /* Warna Amber/Kuning */
  width: 90%; /* Sedikit lebih pendek */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 5;
  animation: drag-loop 3s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

/* Cursor Tangan Hantu */
.cursor-hand {
  font-size: 12px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: -5px;
  bottom: -8px;
}

@keyframes drag-loop {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(20px);
    opacity: 1;
    scale: 1.05;
  } /* Turun ke bawah */
}

/* --- WIDGET AI SUPER (The Neural Core) --- */

.ai-widget-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at top, #1e1b4b, #0f172a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Grid Digital Halus */
.ai-grid-bg {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
      rgba(168, 85, 247, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: perspective(300px) rotateX(60deg) translateY(-100px)
    translateZ(-100px);
  animation: grid-move 10s linear infinite;
  opacity: 0.3;
}

/* Inti AI (Orb) */
.ai-orb {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #f0abfc, #a855f7, #581c87);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 10;
  animation: float-orb 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Cincin Orbit di sekitar Orb */
.ai-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 121, 249, 0.3);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.ring-1 {
  width: 70px;
  height: 70px;
  animation: spin-right 8s linear infinite;
  border-top-color: transparent;
  border-left-color: transparent;
}
.ring-2 {
  width: 90px;
  height: 90px;
  animation: spin-left 12s linear infinite;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

/* Sinar Data (Beam) */
.ai-beam {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #a855f7, transparent);
  margin-top: 10px;
  opacity: 0.8;
  animation: beam-pulse 2s infinite;
}

/* Kartu Hasil Tulisan (Hologram) */
.ai-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 8px;
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: perspective(500px) rotateX(10deg);
}

/* Baris Teks yang Mengetik Sendiri */
.ai-line {
  height: 4px;
  background: #e9d5ff;
  border-radius: 2px;
  width: 0%; /* Start kosong */
  box-shadow: 0 0 5px rgba(233, 213, 255, 0.5);
  animation: typing 3s infinite ease-out;
}
.ai-line:nth-child(1) {
  animation-delay: 0.5s;
  width: 0%;
  max-width: 90%;
}
.ai-line:nth-child(2) {
  animation-delay: 1.2s;
  width: 0%;
  max-width: 70%;
}
.ai-line:nth-child(3) {
  animation-delay: 1.9s;
  width: 0%;
  max-width: 50%;
}

/* --- ANIMATIONS --- */
@keyframes grid-move {
  0% {
    transform: perspective(300px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(300px) rotateX(60deg) translateY(30px);
  }
}
@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin-right {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes spin-left {
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
@keyframes beam-pulse {
  0%,
  100% {
    height: 20px;
    opacity: 0.3;
  }
  50% {
    height: 50px;
    opacity: 1;
  }
}
@keyframes typing {
  0% {
    width: 0;
    opacity: 0.5;
  }
  20% {
    width: var(--max-w, 100%);
    opacity: 1;
  }
  80% {
    width: var(--max-w, 100%);
    opacity: 1;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

/* --- TESTIMONIALS (INFINITE MARQUEE) --- */
.testimonials-section {
  padding: 50px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, var(--bg-dark), #151e32);
}
.marquee-container {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}
.marquee-container:hover {
  animation-play-state: paused;
} /* Stop saat di-hover */

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.3s;
}
.review-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  background: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}
.user-text h4 {
  font-size: 0.9rem;
  margin: 0;
}
.user-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-style: italic;
}
.stars {
  color: #f59e0b;
  font-size: 0.8rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- FAQ SECTION (ACCORDION) --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

details {
  width: 100%;
  cursor: pointer;
}
summary {
  padding: 20px;
  list-style: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: 0.3s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-body {
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .bento-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .box-large,
  .box-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-box {
    min-height: 250px;
  }
}
