:root {
  --bg-main: #0f172a;
  --bg-dark: #020617;
  --border-soft: #1e293b;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --accent: #2563eb;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text-main);
}

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

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO REFINED */
.hero {
  padding: 96px 0 72px;
padding-top: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* MASKOT */
.hero-image img {
  max-width: 360px;   /* sebelumnya terlalu besar */
  opacity: 0.95;
}

/* SECTIONS */
section {
  padding: 100px 0;
}

/* SERVICES */
.services {
  background: var(--bg-dark);
}

.services h2 {
  font-size: 36px;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: linear-gradient(180deg, #020617, #020617);
  border: 1px solid var(--border-soft);
  padding: 32px;
  border-radius: 14px;
  transition: border 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 12px;
}

/* ARCHITECTURE */
.architecture ul {
  margin-top: 32px;
  padding-left: 20px;
}

.architecture li {
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* FOOTER */
footer {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    margin-top: 48px;
  }
}

/* =========================
   MOBILE & TABLET REFINEMENT
   ========================= */

@media (max-width: 768px) {

  /* HERO */
  .hero {
    padding: 64px 0 48px;
    padding-top: 140px;
  }

.hero-image {
  margin-top: 16px; /* sebelumnya terlalu jauh */
}

  .hero-grid {
    gap: 32px;
  }

  .hero-badge {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* CTA MOBILE */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }

  /* MASKOT MOBILE */
  .hero-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  /* SERVICES */
  .services h2 {
    font-size: 28px;
    text-align: center;
  }

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

  /* ARCHITECTURE */
  .architecture h2 {
    font-size: 26px;
  }

  .architecture ul {
    padding-left: 16px;
  }
}

/* TABLET LANDSCAPE */
@media (min-width: 769px) and (max-width: 1024px) {

  .hero h1 {
    font-size: 40px;
  }

  .hero-image img {
    max-width: 300px;
  }
}

/*Animasi*/
.fade-in {
  animation: fadeUp 0.6s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-soft),
    transparent
  );
  margin: 56px 0 48px;
}

/* =====================
   NAVBAR
   ===================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar.hide {
  transform: translateY(-100%);
}

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

.nav-brand {
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: #fff;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #020617;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    display: none;
  }

/* AUTO-HIDE NAVBAR */
.navbar {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar.hide {
  transform: translateY(-100%);
}

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 100px;
}
