:root {
      --bg: #111;
      --fg: #ececec;
      --accent: #e53e3e;
      --card-bg: #1f1f1f;
      --card-shadow: rgba(0,0,0,0.5);
      --pad: 4rem 1.5rem;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html {
      scroll-behavior: smooth;
      font-size: 16px; 
    }
    body {
      background: var(--bg);
      color: var(--fg);
      font-family: 'Segoe UI', sans-serif;
      line-height: 1.6;
      overflow-x: hidden;
    }
    input, textarea, button { font-size: 16px; } 

    nav {
      position: fixed;
      top: 0; width: 100%;
      background: var(--bg);
      border-bottom: 1px solid rgba(236,236,236,0.1);
      z-index: 1000;
    }
    .nav-wrap {
      max-width: 1200px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1rem;
    }
    .brand {
      font-size: 1.5rem; font-weight: bold;
      color: var(--fg); text-decoration: none;
    }
    .nav-toggle {
      display: none;
      flex-direction: column; justify-content: space-between;
      width: 24px; height: 18px;
      background: none; border: none; cursor: pointer;
    }
    .nav-toggle span {
      display: block; width: 100%; height: 2px;
      background: var(--fg); border-radius: 1px;
    }
    .nav-menu {
      list-style: none; display: flex; gap: 1.5rem;
    }
    .nav-menu a {
      position: relative; color: var(--fg);
      text-decoration: none; padding: .5rem;
    }
    .nav-menu a::after {
      content: '';
      position: absolute; left: 0; bottom: -2px;
      width: 0; height: 2px;
      background: var(--accent);
      transition: width .3s;
    }
    .nav-menu a:hover::after,
    .nav-menu a.active::after { width: 100%; }

    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute; top: 100%; right: 0;
        background: var(--bg); width: 200px;
      }
      .nav-menu.open { display: flex; }
    }

    main { padding-top: 4.5rem; max-width: 1200px; margin: 0 auto; }
    section { padding: var(--pad); text-align: center; }
    h2 { font-size: 2rem; margin-bottom: 1rem; }
    h3 { font-size: 1.25rem; margin-bottom: .75rem; }
    p { font-size: 1rem; line-height: 1.5; }
    ul { list-style: none; padding: 0; margin: 1rem 0; }
    ul li { margin-bottom: .5rem; text-align: left; }
    .btn {
      display: inline-block;
      background: var(--accent);
      color: var(--fg);
      padding: .75rem 2rem;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      transition: background .3s;
    }
    .btn:hover { background: #c53030; }

    #hero {
      background:
        linear-gradient(rgba(17,17,17,0.6), rgba(17,17,17,0.6)),
        url('assets/hero-bg.jpg') center/cover no-repeat;
    }
    #hero h1 { font-size: 2.5rem; margin-bottom: .75rem; }
    #hero p {
      font-size: 1.1rem;
      max-width: 700px;
      margin: 0 auto 1.5rem;
      font-style: italic;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
      gap: 1.5rem;
    }
    .card {
      background: var(--card-bg);
      padding: 1.5rem;
      border-radius: 1rem;
      box-shadow: 0 4px 6px var(--card-shadow);
      transition: transform .3s;
    }
    .card:hover { transform: translateY(-5px); }

    .module-box {
      background: var(--card-bg);
      border: 1px solid rgba(236,236,236,0.2);
      border-radius: 1rem;
      padding: 1.5rem;
      box-shadow: 0 4px 6px var(--card-shadow);
      transition: transform .3s;
    }
    .module-box:hover { transform: translateY(-5px); }
    .module-box small { display: block; color: #aaa; margin-bottom: 1rem; }
    .module-box ul { padding-left: 1.5rem; }

    #testimonials { background: var(--bg); }
    .carousel {
      max-width: 800px; margin: 0 auto;
      overflow: hidden; position: relative;
    }
    .carousel-item {
      position: absolute; width: 100%;
      opacity: 0; transition: opacity 1s ease;
      padding: 1.5rem;
      background: var(--card-bg);
      border-radius: 1rem;
      box-shadow: 0 4px 6px var(--card-shadow);
      font-style: italic;
    }
    .carousel-item.active {
      opacity: 1; position: relative;
    }

    #terms .terms-container {
       font-size: 0.875rem; /* 14px jika root 16px */
      max-width: 800px;
      margin: 0 auto;
      padding: 0 1rem;
      text-align: center;
    }
    #terms .terms-container ul {
      list-style: disc inside;
      display: inline-block;
      text-align: left;
    }

    #payments .payments-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(80px,1fr));
      gap: 1.5rem;
      justify-items: center;
      align-items: center;
      padding-top: 1rem;
    }
    .payment-method img {
      max-width: 60px; opacity: .8;
      transition: transform .3s, opacity .3s;
    }
    .payment-method img:hover {
      transform: scale(1.1); opacity: 1;
    }

    .contact-form {
      display: flex; flex-direction: column; gap: 1rem;
      max-width: 400px; margin: 0 auto;
    }
    .contact-form input,
    .contact-form textarea {
      padding: .75rem;
      border: none;
      border-radius: .5rem;
      background: #222;
      color: var(--fg);
    }
    .contact-form button { align-self: center; }
#about {
  text-align: center;
}

#about ul {
  display: inline-block;
  text-align: left;
  padding-left: 1rem;
  margin-top: 1rem;
}

    footer { padding: 2rem 1.5rem; text-align: center; font-size: .9rem; }
    .hero-image {
  display: block;
  max-width: 30%;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 0.5rem;
}
/* Tambah pembatas (border-top) antar section */
section {
  border-top: 1px solid rgba(236,236,236,0.2);
  /* Sedikit space di atas supaya terlihat rapi */
  padding-top: 3rem;
  margin-top: 3rem;
}

/* Hapus border-top di section pertama */
section:first-of-type {
  border-top: none;
  /* kembalikan padding/margin default jika perlu */
  padding-top: 0;
  margin-top: 0;
}
