:root {
  --bg: #ffffff;
  --text: #0f172a;
  --primary: #2563eb;
  --accent: #eff6ff;
  --gray: #64748b;
  --border: #e2e8f0;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Mencegah scroll samping */
  width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-large {
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
}
.btn-primary:hover,
.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}
.btn-text {
  font-weight: 600;
  margin-left: 20px;
  border-bottom: 2px solid transparent;
}
.btn-text:hover {
  border-bottom-color: var(--text);
}
.btn-invert {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

/* --- NAVBAR --- */
.navbar {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 30px;
}
.nav-links {
  display: flex;
  gap: 40px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
}
.mobile-only-btn {
  display: none;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh; /* Full screen di desktop */
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  width: 100%;
  gap: 40px;
}
.hero-text h1 {
  /* Responsive Font: Minimum 2.5rem, Ideal 5vw, Max 5rem */
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-text .highlight {
  color: var(--primary);
  display: inline-block; /* Mencegah potongan aneh */
}
.hero-text p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Hero Visual (Anti-Gravity Floating) */
.hero-visual {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle-bg {
  width: 300px;
  height: 300px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
}
.floating-card {
  position: absolute;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}
/* Ukuran Desktop */
.card-1 {
  width: 120px;
  height: 160px;
  top: 20px;
  left: 10%;
  transform: rotate(-10deg);
  animation-delay: 0s;
}
.card-2 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
  transform: rotate(15deg);
  animation-delay: 2s;
  border-radius: 50%;
}
.card-3 {
  width: 80px;
  height: 80px;
  bottom: 20px;
  left: 30%;
  transform: rotate(-5deg);
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* --- FEATURES --- */
.features {
  padding: 100px 0;
}
.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -1px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: 0.3s;
}
.feature-card:hover {
  background: var(--text);
  color: white;
  transform: translateY(-10px);
}
.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  padding: 100px 0;
  background: #fafafa;
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.left-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child {
  border-bottom: none;
}
.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- CTA FOOTER --- */
.cta-footer {
  padding: 100px 0;
  background: var(--text);
  color: white;
  text-align: center;
}
.cta-footer h2 {
  font-size: 3rem;
  margin-bottom: 40px;
}

/* --- FOOTER --- */
.main-footer {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.links-col a {
  margin-left: 20px;
  color: var(--gray);
}
.links-col a:hover {
  color: var(--primary);
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
  transition-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
  transition-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 768px) {
  /* Navbar Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-actions .btn-primary {
    display: none;
  }
  .mobile-only-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px;
    width: 100%;
    border-radius: 50px;
    text-align: center;
    margin-top: 20px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Layout Reset */
  .hero-container,
  .grid-3,
  .split-layout {
    grid-template-columns: 1fr; /* Stack 1 kolom */
    gap: 30px;
  }

  /* Hero Fixes */
  .hero {
    text-align: center;
    padding-top: 100px; /* Jarak dari navbar */
    padding-bottom: 50px;
    min-height: auto; /* Hilangkan paksaan tinggi */
    height: auto;
  }
  .hero-text {
    margin-bottom: 20px;
  }
  .hero-text h1 {
    font-size: 2.5rem; /* Ukuran pas di HP */
    line-height: 1.2;
    margin-bottom: 15px;
  }
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .btn-text {
    margin-left: 0;
  }

  /* Visual Fix (Kecilkan visualisasi agar muat) */
  .hero-visual {
    height: 300px;
    margin-top: 20px;
  }
  .circle-bg {
    width: 250px;
    height: 250px;
  }
  .card-1 {
    width: 80px;
    height: 110px;
    font-size: 2rem;
    left: 5%;
  }
  .card-2 {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    right: 5%;
  }
  .card-3 {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    left: 25%;
    bottom: 10px;
  }

  /* Content Fixes */
  .features,
  .how-it-works,
  .cta-footer {
    padding: 60px 0;
  }
  .section-header h2,
  .left-content h2,
  .cta-footer h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .links-col a {
    display: block;
    margin: 10px 0;
  }
}
