:root {
  --bg-dark: #0f1115;
  --bg-section: #14161b;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --accent: #ffffff;
  --accent-text: #111111;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.05);
  --cta-start: #1a1d24;
  --cta-end: #0f1115;
}

#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#back-to-top {
  position: fixed;
  bottom: 90px; /* di atas sticky CTA */
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: none;
  transition: all 0.25s ease;
  z-index: 999;
}

#back-to-top:hover {
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-3px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 60px 0;
}

.dark {
  background: var(--bg-section);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

h1 {
  font-size: 48px;
  line-height: 1.1;
}

h2 {
  font-size: 30px;
  margin-bottom: 25px;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  padding: 15px 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

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

/* HERO */
.hero {
  padding-top: 110px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 26px;
  border-radius: 40px;
  text-decoration: none;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 40px;
  text-decoration: none;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 25px;
}

/* CARD */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 22px;
  border-radius: 14px;
}

/* STEP */
.step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 18px;
  border-radius: 10px;
  text-align: center;
}

/* PLACEHOLDER */
.img-placeholder {
  height: 220px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.small { height: 120px; }
.portfolio { height: 250px; }

/* LOGOS */
.logo-strip {
  padding: 30px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.logos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.logo-box {
  opacity: 0.6;
}

/* TESTIMONIAL */
.testimonial-box {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 14px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 15px 0;
  cursor: pointer;
}

.faq-item p {
  display: none;
}

/* CTA */
.cta-section {
  padding: 70px 0;
  text-align: center;
  background: linear-gradient(135deg,var(--cta-start),var(--cta-end));
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

#cta-form-btn {
  padding: 12px 26px;
  border-radius: 40px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size:16px;
}

#cta-form-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}

#cta-form-btn:active {
  transform: translateY(0);
}

#cta-form-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.hidden-form {
  display: none;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
}

/* FOOTER */
.footer {
  padding: 25px 0;
  text-align: center;
  color: var(--text-secondary);
}

/* STICKY CTA */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 40px;
  display: none;
}

.sticky-cta a {
  color: var(--accent-text);
  text-decoration: none;
}

/* ================= MOBILE ================= */

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

  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2,1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .section {
    padding: 50px 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    text-align: center;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-img {
    order: -1;
    margin-bottom: 20px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 85%;
    text-align: center;
  }

  #back-to-top {
    right: 15px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}
