:root {
  --bg-app: #0f1115;
  --bg-panel: #181b21;
  --border: #2d313a;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-glow: rgba(79, 70, 229, 0.5);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.nav-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* --- Buttons --- */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary.large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  background-image: radial-gradient(
    circle at top center,
    #1e1b4b 0%,
    transparent 60%
  );
}

.badge {
  background: rgba(79, 70, 229, 0.1);
  color: #818cf8;
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: inline-block;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 20px 0;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(90deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
}

/* --- Hero Visual (Mockup) --- */
.hero-visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}

.mockup-window {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: rotateX(2deg); /* Efek 3D */
  transition: 0.5s;
}

.mockup-window:hover {
  transform: rotateX(0deg) scale(1.02);
}

.mockup-header {
  background: var(--bg-panel);
  padding: 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ef4444;
}
.yellow {
  background: #f59e0b;
}
.green {
  background: #22c55e;
}

.mockup-body {
  display: flex;
  height: 400px;
}

.mockup-sidebar {
  width: 250px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mockup-preview {
  flex: 1;
  background: #000;
  background-image: radial-gradient(#2d313a 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Skeleton UI for mockup */
.skeleton-line {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
}
.skeleton-box {
  height: 100px;
  background: var(--border);
  border-radius: 4px;
}
.w-40 {
  width: 40%;
}
.w-60 {
  width: 60%;
}
.w-80 {
  width: 80%;
}
.w-100 {
  width: 100%;
}

.mini-card {
  width: 300px;
  height: 180px;
  background: var(--bg-panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mini-circle {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
}

/* Glow Effect behind mockup */
.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.2;
  z-index: -1;
}

/* --- Features (Bento Grid Fixed) --- */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.bento-grid {
  display: grid;
  /* Kunci: Membagi kolom menjadi 3 bagian yang sama rata */
  grid-template-columns: repeat(3, 1fr);
  /* Mengatur tinggi baris minimal agar kartu terlihat proporsional */
  grid-auto-rows: minmax(240px, auto);
  gap: 25px; /* Memberikan jarak antar kartu agar tidak berdempetan */
  width: 100%;
}

.bento-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box; /* Penting agar padding tidak merusak layout */
}

.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Span 2 Kolom (Untuk kartu Magic Themes & Texture) */
.span-2 {
  grid-column: span 2;
}

/* Icon Styles */
.icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* --- RESPONSIVE FIX (LOWER BREAKPOINT) --- */
/* Kita turunkan batasnya ke 768px (Ukuran Tablet/iPad Portrait) */
/* Ini menjamin tampilan di Laptop tetap Grid 3 Kolom */
@media (max-width: 768px) {
  .bento-grid {
    display: flex; /* Ganti ke Flexbox Stack untuk Mobile */
    flex-direction: column;
    gap: 20px;
  }

  .bento-card {
    width: 100%;
    min-height: auto; /* Tinggi menyesuaikan isi */
  }

  .span-2 {
    grid-column: auto; /* Reset span di mobile */
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .nav-links {
    display: none;
  }
}

/* --- CTA Section --- */
.cta-section {
  padding: 60px 0;
}
.cta-box {
  background: linear-gradient(135deg, var(--bg-panel), #1e1b4b);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 20px;
  text-align: center;
}
.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.cta-box p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  padding-top: 60px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 15px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4 {
  color: white;
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- HOW IT WORKS STYLES --- */

.steps-container {
  padding: 80px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

/* Membuat efek Zig-Zag (Genap dibalik posisinya) */
.step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.step-text {
  flex: 1;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05); /* Transparan samar */
  line-height: 1;
  margin-bottom: -20px;
  position: relative;
  z-index: -1;
  -webkit-text-stroke: 1px var(--border); /* Garis tepi angka */
}

.step-text h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 15px;
  margin-top: 0;
}

.step-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Visual Container */
.step-visual {
  flex: 1;
  height: 300px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  /* Center isi visual */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- CSS Visuals untuk setiap langkah --- */

/* Visual 1: Input Form */
.mock-input-group {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.mock-label {
  width: 30%;
  height: 8px;
  background: var(--text-muted);
  opacity: 0.5;
  border-radius: 4px;
}
.mock-input {
  width: 100%;
  height: 40px;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Visual 2: Color Palette */
.mock-palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.mock-color {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--bg-panel);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Visual 3: Download Action */
.mock-btn {
  padding: 15px 30px;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid white;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  .step-item {
    flex-direction: column-reverse !important; /* Gambar di atas, Teks di bawah */
    gap: 30px;
    text-align: center;
    margin-bottom: 80px;
  }

  .step-visual {
    width: 100%;
    height: 250px;
  }

  .step-number {
    font-size: 3rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
}

/* --- LEGAL PAGES STYLES --- */

/* Header khusus halaman teks (lebih simpel dari Hero) */
.page-header {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
  background: radial-gradient(
    circle at top center,
    #1e1b4b 0%,
    transparent 50%
  );
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
}

.page-header p {
  color: var(--text-muted);
}

/* Container untuk teks panjang */
.legal-content {
  max-width: 800px; /* Lebar optimal untuk membaca */
  margin: 0 auto;
  padding: 60px 20px;
}

.legal-content h2 {
  color: white;
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary); /* Aksen garis di kiri judul */
  padding-left: 15px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7; /* Spasi baris agar enak dibaca */
}

.legal-content ul,
.legal-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.last-updated {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --- TEMPLATES & SHOWCASE STYLES --- */

/* Grid khusus untuk kartu gambar (2 kolom di tablet, 3 di desktop) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Container */
.gallery-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Area Preview (Mockup CSS) */
.card-preview {
  width: 100%;
  aspect-ratio: 1.91 / 1; /* Rasio standar Open Graph 1200x630 */
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Detail di bawah kartu */
.card-info {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-info h3 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}
.card-info p {
  margin: 5px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tombol kecil di kartu */
.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  color: white;
  transition: 0.2s;
}
.btn-sm:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* --- CSS-ONLY PREVIEW STYLES (Membuat tampilan template tanpa gambar) --- */

/* Base Elements */
.mini-title {
  width: 70%;
  height: 12px;
  background: white;
  margin-bottom: 8px;
  border-radius: 4px;
  opacity: 0.9;
}
.mini-sub {
  width: 50%;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}
.mini-brand {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Variant 1: Modern Gradient */
.preview-modern {
  background: linear-gradient(135deg, #111827, #1e1b4b);
}
.preview-modern .mini-title {
  background: linear-gradient(90deg, #818cf8, #c084fc);
}

/* Variant 2: Clean Light (Tapi versi dark mode) */
.preview-clean {
  background: #181b21;
  background-image: radial-gradient(#374151 1px, transparent 1px);
  background-size: 10px 10px;
  align-items: flex-start; /* Left align */
  padding-left: 30px;
}

/* Variant 3: Bold Center */
.preview-bold {
  background: #000;
  border: 4px solid #4f46e5;
}
.preview-bold .mini-title {
  height: 20px;
  width: 80%;
}

/* Variant 4: Pattern Grid */
.preview-grid {
  background: #0f1115;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Variant 5: Diagonal */
.preview-diagonal {
  background: repeating-linear-gradient(
    45deg,
    #1f2937,
    #1f2937 10px,
    #111827 10px,
    #111827 20px
  );
}
