/* ═══════════════════════════════════════════════════════ */
/* ROOT VARIABLES & THEMES                                 */
/* ═══════════════════════════════════════════════════════ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(108,92,231,0.3);
  
  --z-bg: -1;
  --z-content: 1;
  --z-header: 100;
  --z-modal: 1000;
  --z-fab: 900;
  --z-toast: 1100;
}

[data-theme='light'] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f1f5;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-heavy: rgba(255, 255, 255, 0.85);
  
  --text-primary: #1a1a2e;
  --text-secondary: #5a5b7a;
  --text-tertiary: #8b8ca7;
  --text-inverse: #ffffff;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  
  --accent-primary: #6C5CE7;
  --accent-secondary: #00D2FF;
  --accent-warm: #FF6B6B;
  --accent-success: #00C48C;
  --accent-warning: #FFB800;
  
  --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #00D2FF 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFB800 100%);
  --gradient-success: linear-gradient(135deg, #00C48C 0%, #00D2FF 100%);
  --gradient-card: linear-gradient(135deg, rgba(108,92,231,0.05) 0%, rgba(0,210,255,0.05) 100%);
  --gradient-featured: linear-gradient(135deg, rgba(108,92,231,0.08) 0%, rgba(0,210,255,0.08) 100%);
  
  --orb-1: rgba(108, 92, 231, 0.15);
  --orb-2: rgba(0, 210, 255, 0.12);
  --orb-3: rgba(255, 107, 107, 0.10);
  --orb-4: rgba(0, 196, 140, 0.08);
  --orb-5: rgba(255, 184, 0, 0.08);
  
  --grid-color: rgba(0, 0, 0, 0.03);
  --header-bg: rgba(248, 249, 252, 0.8);
}

[data-theme='dark'] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111628;
  --bg-tertiary: #1a1f35;
  --bg-card: rgba(20, 24, 50, 0.6);
  --bg-card-hover: rgba(30, 35, 65, 0.8);
  --bg-glass: rgba(15, 19, 40, 0.6);
  --bg-glass-heavy: rgba(15, 19, 40, 0.85);
  
  --text-primary: #e8e9f0;
  --text-secondary: #a0a1b5;
  --text-tertiary: #6b6d85;
  --text-inverse: #0a0e1a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --accent-primary: #8B7CF7;
  --accent-secondary: #22E5FF;
  --accent-warm: #FF8080;
  --accent-success: #00E5A0;
  --accent-warning: #FFD04A;
  
  --gradient-primary: linear-gradient(135deg, #8B7CF7 0%, #22E5FF 100%);
  --gradient-warm: linear-gradient(135deg, #FF8080 0%, #FFD04A 100%);
  --gradient-success: linear-gradient(135deg, #00E5A0 0%, #22E5FF 100%);
  --gradient-card: linear-gradient(135deg, rgba(139,124,247,0.08) 0%, rgba(34,229,255,0.08) 100%);
  --gradient-featured: linear-gradient(135deg, rgba(139,124,247,0.12) 0%, rgba(34,229,255,0.12) 100%);
  
  --orb-1: rgba(139, 124, 247, 0.2);
  --orb-2: rgba(34, 229, 255, 0.15);
  --orb-3: rgba(255, 128, 128, 0.12);
  --orb-4: rgba(0, 229, 160, 0.1);
  --orb-5: rgba(255, 208, 74, 0.08);
  
  --grid-color: rgba(255, 255, 255, 0.025);
  --header-bg: rgba(10, 14, 26, 0.8);
}

/* ═══════════════════════════════════════════════════════ */
/* RESET & BASE                                            */
/* ═══════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img { max-width: 100%; display: block; }

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

.hidden { display: none !important; }

.hide-mobile {
  display: inline;
}

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

/* ═══════════════════════════════════════════════════════ */
/* ANIMATED BACKGROUND                                     */
/* ═══════════════════════════════════════════════════════ */

.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.bg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  /* HAPUS filter: blur(80px); */
  will-change: transform;
  transform: translateZ(0); /* Paksa masuk ke GPU Layer */
  backface-visibility: hidden;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

/* Gunakan trik radial-gradient untuk efek blur tanpa beban CPU */
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation: float-orb-1 20s infinite alternate;
}

.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  top: 30%; right: -10%;
  animation: float-orb-2 25s infinite alternate;
}

.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 70%);
  bottom: 10%; left: 20%;
  animation: float-orb-3 22s infinite alternate;
}

.bg-orb-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--orb-4) 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: float-orb-4 18s infinite alternate;
}

.bg-orb-5 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--orb-5) 0%, transparent 70%);
  bottom: 30%; right: 20%;
  animation: float-orb-5 23s infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 50px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
  100% { transform: translate(60px, -30px) scale(1.05); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-70px, 60px) scale(1.05); }
  66% { transform: translate(50px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes float-orb-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, -50px) scale(1.08); }
  100% { transform: translate(-60px, 40px) scale(0.97); }
}

@keyframes float-orb-4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.12); }
  100% { transform: translate(40px, 50px) scale(0.93); }
}

@keyframes float-orb-5 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 70px) scale(1.06); }
  100% { transform: translate(-50px, -40px) scale(1.02); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAIAAAACAAICAAAAAgIAAgAAAAIDAJmMBAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAQUlEQVQ4jWNgQALCwMDwH4QZGRkYGP4DCSMjEwPDfxBmMDIyMPwHkoYGBob/IFLDf6ga/kPV8B+qhv9QNfyHqsEAFy4s0eb2dJQAAAAASUVORK5CYII=");
  background-repeat: repeat;
  pointer-events: none;
  /* Tambahkan baris ini agar tekstur dikunci menjadi 1 gambar mati oleh GPU */
  transform: translateZ(0); 
}

/* ═══════════════════════════════════════════════════════ */
/* HEADER                                                  */
/* ═══════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-out-expo);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

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

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  padding: 0 4px;
  justify-content: space-between;
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.theme-icon-sun { color: #FFB800; }
.theme-icon-moon { color: var(--accent-primary); }

[data-theme='light'] .theme-icon-sun { opacity: 1; }
[data-theme='light'] .theme-icon-moon { opacity: 0.3; }
[data-theme='dark'] .theme-icon-sun { opacity: 0.3; }
[data-theme='dark'] .theme-icon-moon { opacity: 1; }

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--bg-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-spring);
}

[data-theme='dark'] .theme-toggle-thumb {
  transform: translateX(24px);
}

/* Nav CTA button */
.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(108,92,231,0.3);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(108,92,231,0.4);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s;
}

.mobile-link:last-child { border: none; }
.mobile-link:hover { color: var(--text-primary); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ═══════════════════════════════════════════════════════ */
/* HERO SECTION                                            */
/* ═══════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-content);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-primary);
  margin-left: 2px;
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.highlight-text {
  color: var(--accent-primary);
  font-weight: 600;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.4);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  position: relative;
  /* Hapus animation: glow-pulse dari sini */
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 4px 30px rgba(108,92,231,0.5), 0 0 60px rgba(108,92,231,0.15);
  opacity: 0;
  z-index: -1;
  animation: glow-pulse-opacity 3s ease-in-out infinite;
  will-change: opacity;
}

@keyframes glow-pulse-opacity {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Floating Cards */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.hfc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hfc-icon-check { background: rgba(0,196,140,0.15); color: var(--accent-success); }
.hfc-icon-mail { background: rgba(108,92,231,0.15); color: var(--accent-primary); }
.hfc-icon-zap { background: rgba(255,184,0,0.15); color: var(--accent-warning); }

.card-1 {
  top: 20%;
  right: 5%;
  animation-name: float-card-1;
}

.card-2 {
  top: 55%;
  left: 3%;
  animation-name: float-card-2;
}

.card-3 {
  bottom: 18%;
  right: 8%;
  animation-name: float-card-3;
}

@keyframes float-card-1 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float-card-2 {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-20px) rotate(1.5deg); }
}

@keyframes float-card-3 {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@media (max-width: 1100px) {
  .hero-floating-card { display: none; }
}

/* ═══════════════════════════════════════════════════════ */
/* SECTION COMMON                                          */
/* ═══════════════════════════════════════════════════════ */

section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════ */
/* PRODUCTS SECTION                                        */
/* ═══════════════════════════════════════════════════════ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  /* Ganti transition: all menjadi spesifik */
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.product-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card-featured {
  background: var(--gradient-featured);
  border-color: rgba(108,92,231,0.2);
}

.product-card-featured:hover {
  border-color: rgba(108,92,231,0.35);
}

.product-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108,92,231,0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: rotate-glow 12s linear infinite;
  will-change: transform; /* Tambahan wajib untuk glow */
}

@keyframes rotate-glow {
  /* Tambahkan translateZ(0) agar rotasi diproses oleh GPU, bukan CPU */
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(360deg) translateZ(0); }
}

.product-header {
  margin-bottom: 20px;
}

.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-bestseller {
  background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,210,255,0.15));
  color: var(--accent-primary);
}

.badge-hemat {
  background: linear-gradient(135deg, rgba(0,196,140,0.15), rgba(0,210,255,0.15));
  color: var(--accent-success);
}

.badge-stock {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.stock-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.product-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-min-order {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--accent-warning);
  font-weight: 500;
}

.product-pricing {
  margin-bottom: 20px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-left: 4px;
}

/* Counter */
.product-counter {
  margin-bottom: 20px;
}

.counter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.counter-control {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.counter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  background: none;
}

.counter-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.counter-btn:active {
  transform: scale(0.9);
}

.counter-input {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 8px;
  -moz-appearance: textfield;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product Total */
.product-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px dashed var(--border-color);
  margin-bottom: 20px;
}

.total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.total-amount {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

/* Order Button */
.btn-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-order::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-order:hover::after { opacity: 1; }

.btn-order-primary {
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(108,92,231,0.25);
}

.btn-order-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108,92,231,0.35);
}

.btn-order-secondary {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.btn-order-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Product Guarantee */
.product-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════ */
/* WHY US / FEATURES                                       */
/* ═══════════════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media (max-width: 500px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Ganti transition: all menjadi spesifik */
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-color-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon-1 { background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,210,255,0.15)); color: var(--accent-primary); }
.feature-icon-2 { background: linear-gradient(135deg, rgba(0,196,140,0.15), rgba(0,210,255,0.15)); color: var(--accent-success); }
.feature-icon-3 { background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,184,0,0.15)); color: var(--accent-warm); }
.feature-icon-4 { background: linear-gradient(135deg, rgba(255,184,0,0.15), rgba(108,92,231,0.15)); color: var(--accent-warning); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--gradient-card);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════ */
/* HOW IT WORKS                                            */
/* ═══════════════════════════════════════════════════════ */

.steps-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.steps-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  border-radius: 2px;
}

.steps-line-progress {
  width: 100%;
  height: 100%; /* Ubah dari 0% menjadi 100% */
  background: var(--gradient-primary);
  border-radius: 2px;
  transform-origin: top; /* Animasi dimulai dari atas */
  transform: scaleY(0); /* Nilai awal scale 0 */
  transition: transform 0.8s var(--ease-out-expo); /* Ganti transition ke transform */
  will-change: transform; /* Beri tahu GPU untuk bersiap */
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.step-number {
  position: absolute;
  left: -60px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-tertiary);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  z-index: 2;
}

.step.in-view .step-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px rgba(108,92,231,0.3);
}

.step-content {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.4s ease;
}

.step:hover .step-content {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.step.in-view .step-icon {
  opacity: 1;
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .steps-container {
    padding-left: 48px;
  }
  .step-number {
    left: -48px;
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
  .step-icon {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════ */
/* TRANSACTION LOG                                         */
/* ═══════════════════════════════════════════════════════ */

.tx-table-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.tx-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-success);
  border-bottom: 1px solid var(--border-color);
}

.tx-live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.tx-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.tx-table thead {
  background: var(--bg-tertiary);
}

.tx-table th {
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  text-align: left;
}

.tx-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.tx-table tr:last-child td {
  border-bottom: none;
}

.tx-table tr {
  transition: background 0.2s;
}

.tx-table tbody tr:hover {
  background: var(--bg-tertiary);
}

.tx-buyer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tx-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(0,196,140,0.12);
  color: var(--accent-success);
}

.tx-status-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.tx-new-row {
  animation: highlight-row 2s ease-out;
}

@keyframes highlight-row {
  0% { background: rgba(108,92,231,0.1); }
  100% { background: transparent; }
}

/* ═══════════════════════════════════════════════════════ */
/* FAQ                                                     */
/* ═══════════════════════════════════════════════════════ */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Ganti transition: all menjadi spesifik */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-color-hover);
}

.faq-item.active {
  border-color: rgba(108,92,231,0.3);
  box-shadow: 0 4px 20px rgba(108,92,231,0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  gap: 16px;
  /* Ganti transition: all menjadi spesifik */
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  transition: all 0.4s var(--ease-spring);
  color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ═══════════════════════════════════════════════════════ */
/* FOOTER                                                  */
/* ═══════════════════════════════════════════════════════ */

.footer {
  padding: 60px 0 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
}

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-links-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-links-group a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.footer-bottom-links a {
  color: var(--text-tertiary);
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--accent-primary);
}

.footer-sep {
  color: var(--border-color);
}

/* ═══════════════════════════════════════════════════════ */
/* FAB (FLOATING ACTION BUTTON)                            */
/* ═══════════════════════════════════════════════════════ */

.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-fab);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108,92,231,0.35);
  transition: all 0.4s var(--ease-spring);
  cursor: pointer;
  border: none;
  position: relative;
}

.fab-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(108,92,231,0.45);
}

.fab-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all 0.4s var(--ease-spring);
}

.fab-icon-open {
  transition: all 0.4s var(--ease-spring);
}

.fab-container.active .fab-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.fab-container.active .fab-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: all 0.4s var(--ease-out-expo);
}

.fab-container.active .fab-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.fab-option:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-xl);
}

.fab-wa:hover { color: #25D366; border-color: rgba(37,211,102,0.3); }
.fab-email:hover { color: var(--accent-primary); border-color: rgba(108,92,231,0.3); }
.fab-warranty:hover { color: var(--accent-warm); border-color: rgba(255,107,107,0.3); }

/* ═══════════════════════════════════════════════════════ */
/* MODAL                                                   */
/* ═══════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  border: none;
}

.modal-close:hover {
  background: var(--accent-warm);
  color: white;
}

.modal-header {
  padding: 32px 32px 0;
  text-align: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-body {
  padding: 24px 32px;
}

.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  gap: 12px;
}

/* Step indicator */
.modal-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.step-dot {
  width: 32px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  transition: all 0.4s ease;
  font-size: 0;
  overflow: hidden;
}

.step-dot.active {
  background: var(--gradient-primary);
  width: 48px;
}

.step-dot.completed {
  background: var(--accent-success);
}

/* Order summary mini */
.order-summary-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.order-summary-total {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 700;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.optional-tag {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8ca7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.checkbox-label input[type='checkbox'] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color-hover);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--gradient-primary);
  border-color: transparent;
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-option {
  cursor: pointer;
}

.payment-option.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.payment-option input { display: none; }

.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.payment-option.active .payment-card {
  border-color: var(--accent-primary);
  background: var(--gradient-card);
  color: var(--text-primary);
}

.payment-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-success);
}

.payment-status.coming-soon {
  color: var(--text-tertiary);
}

/* QR / Payment body */
.payment-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-fake {
  padding: 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.qr-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.payment-amount {
  text-align: center;
}

.payment-amount-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.payment-amount-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.payment-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.payment-supported {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.payment-logos {
  font-weight: 500;
  margin-top: 4px;
}

/* Success */
.success-animation {
  margin: 10px 0 16px;
}

.success-checkmark {
  color: var(--accent-success);
}

.success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: draw-circle 0.6s ease-out 0.2s forwards;
}

.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.4s ease-out 0.7s forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.success-title {
  color: var(--accent-success);
}

/* Account delivery card */
.account-delivery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  gap: 12px;
}

.account-email {
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.account-pass {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.delivery-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(108,92,231,0.08);
  border: 1px solid rgba(108,92,231,0.15);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.tx-id-display {
  text-align: center;
}

.tx-id-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.tx-id-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.tx-id-value code {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  background: none;
}

.btn-copy:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Warranty modal */
.warranty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(255,184,0,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-warm);
}

.warranty-result {
  margin-top: 16px;
}

.warranty-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0,196,140,0.1);
  border: 1px solid rgba(0,196,140,0.2);
  border-radius: var(--radius-md);
  color: var(--accent-success);
}

.warranty-success strong {
  display: block;
  margin-bottom: 4px;
}

.warranty-success p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════ */
/* SCROLL ANIMATIONS                                       */
/* ═══════════════════════════════════════════════════════ */

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Fade Up */
.fade-up {
  transform: translateY(40px);
}
.fade-up.visible {
  transform: translateY(0);
}

/* Slide Right */
.slide-right {
  transform: translateX(-50px);
}
.slide-right.visible {
  transform: translateX(0);
}

/* Slide Left */
.slide-left {
  transform: translateX(50px);
}
.slide-left.visible {
  transform: translateX(0);
}

/* Pop In */
.pop-in {
  transform: scale(0.8);
}
.pop-in.visible {
  transform: scale(1);
}

/* Scale In */
.scale-in {
  transform: scale(0.9);
}
.scale-in.visible {
  transform: scale(1);
}

/* Delays */
.delay-0 { transition-delay: 0ms; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }

/* ═══════════════════════════════════════════════════════ */
/* REDUCED MOTION                                          */
/* ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  .bg-gradient-orb {
    animation: none;
  }
  
  .hero-floating-card {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════ */
/* SCROLLBAR                                               */
/* ═══════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE FINE-TUNING                                  */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .modal {
    max-height: 95vh;
  }
  
  .modal-header, .modal-body, .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .payment-methods {
    grid-template-columns: 1fr;
  }
  
  .fab-container {
    bottom: 16px;
    right: 16px;
  }
  
  .fab-trigger {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .product-card {
    padding: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════ */
/* UTILITY: Selection                                      */
/* ═══════════════════════════════════════════════════════ */

::selection {
  background: rgba(108, 92, 231, 0.25);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  /* Matikan efek kaca (blur) yang bikin lag saat scroll */
  .header, .mobile-menu, .hero-badge, .product-card,
  .feature-card, .step-content, .tx-table-wrap, .faq-item,
  .fab-option, .modal-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Ganti background transparan jadi solid agar tetap estetik dan terbaca */
  [data-theme='light'] .product-card,
  [data-theme='light'] .feature-card,
  [data-theme='light'] .faq-item {
    background: #ffffff !important;
  }
  
  [data-theme='dark'] .product-card,
  [data-theme='dark'] .feature-card,
  [data-theme='dark'] .faq-item {
    background: #141832 !important;
  }

  /* Matikan animasi background orb dan glow pada card yang memakan fill-rate GPU */
  .bg-gradient-orb, .product-card-glow {
    display: none !important;
    animation: none !important;
  }

  /* Matikan tekstur noise karena butuh kalkulasi blending memori tinggi */
  .bg-noise {
    display: none !important;
  }
  
  /* Matikan efek shadow melayang saat di-hover atau aktif di HP */
  .faq-item:hover, .product-card:hover, .feature-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .faq-item.active {
    box-shadow: none !important;
    border-color: var(--accent-primary) !important;
  }
}