:root {
  --bg: #f5efe2;
  --bg-2: #ede6d6;
  --ink: #141416;
  --ink-soft: #2b2b30;
  --mute: #8b847a;
  --line: #dad2bf;
  --ghost: #c5bfae;
  --orange-1: #d9351f;
  --orange-2: #e85a2b;
  --orange-3: #f58b4e;
  --orange-4: #fdc68a;
}

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

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(
    120% 70% at 50% 0%,
    #f8f3e7 0%,
    #f2ead6 60%,
    #e9dec3 100%
  );
  min-height: 100vh;
}

/* Global link fix agar tidak pernah berubah ungu (:visited) dan tanpa garis bawah */
a, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.logo-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange-1), var(--orange-4));
  box-shadow: 0 4px 8px -2px rgba(220, 60, 30, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(120, 20, 0, 0.3);
}

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

/* Diubah jadi abu-abu dan saat di-hover tetap hitam, tidak putih */
.nav-links a {
  color: #6b7280; 
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  text-decoration: none;
  background: var(--ink);
  color: #fafaf7;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.4),
    0 4px 8px -2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}

.nav-cta a, .nav-cta a:visited {
  color: #fafaf7;
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 130px 32px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.small-team {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0;
  z-index: 4;
  position: relative;
}
.small-team .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.small-team .word > span {
  display: inline-block;
  transform: translateY(105%);
}

/* Big results faded back text */
.big-results-wrap {
  position: relative;
  width: 100%;
  margin-top: -20px;
  display: flex;
  justify-content: center;
  z-index: 1;
}
.big-results {
  font-family: "DM Sans", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(110px, 21vw, 300px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--ghost);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(120, 100, 50, 0.04);
}
.big-results .letter {
  display: inline-block;
  transform-origin: bottom;
}

/* Cards row */
.cards-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  height: 320px;
  z-index: 3;
  pointer-events: none;
}
.cards-row > * {
  pointer-events: auto;
}

.card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--orange-1) 0%,
    var(--orange-2) 35%,
    var(--orange-3) 70%,
    var(--orange-4) 100%
  );
  box-shadow: 0 30px 50px -16px rgba(180, 50, 20, 0.5),
    0 14px 26px -8px rgba(140, 40, 10, 0.32),
    0 5px 10px -2px rgba(80, 20, 0, 0.2),
    inset 0 2px 0 rgba(255, 220, 180, 0.45),
    inset 0 -4px 8px rgba(120, 20, 0, 0.4);
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 30%,
    transparent 70%,
    rgba(100, 20, 0, 0.25) 100%
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.card:hover {
  box-shadow: 0 44px 70px -20px rgba(180, 50, 20, 0.6),
    0 22px 38px -10px rgba(140, 40, 10, 0.38),
    0 8px 14px -3px rgba(80, 20, 0, 0.22),
    inset 0 2px 0 rgba(255, 220, 180, 0.5),
    inset 0 -4px 8px rgba(120, 20, 0, 0.4);
}

/* Card sizing/positioning */
.card-1 { width: 130px; height: 180px; left: 4%; top: 30px; z-index: 1; }
.card-2 { width: 160px; height: 220px; left: 12%; top: 50px; z-index: 2; }
.card-3 { width: 200px; height: 270px; left: 22%; top: 20px; z-index: 4; }
.card-4 { width: 150px; height: 200px; left: 36%; top: 70px; z-index: 3; }
.card-5 { width: 230px; height: 310px; left: 44%; top: 0px; z-index: 5; }
.card-6 { width: 160px; height: 215px; left: 59%; top: 55px; z-index: 3; }
.card-7 { width: 175px; height: 240px; left: 70%; top: 30px; z-index: 4; }
.card-8 { width: 130px; height: 175px; left: 84%; top: 50px; z-index: 2; }

/* ============ SECTION 2: TEAM GRID ============ */
.team-section {
  padding: 140px 40px 80px;
  position: relative;
  z-index: 5;
}
.team-head {
  max-width: 1280px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  transition: filter 0.5s, opacity 0.5s;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-1);
  box-shadow: 0 0 0 3px rgba(217, 53, 31, 0.2);
}
.team-head h2 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 600px;
}
.team-head h2 em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-1), var(--orange-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.team-head p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}

.team-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.team-grid:has(.t-card:hover) .t-card:not(:hover) {
  filter: blur(8px) brightness(0.6);
  opacity: 0.7;
  transform: scale(0.95);
}

.team-section:has(.t-card:hover) .team-head {
  filter: blur(6px);
  opacity: 0.4;
}

.t-card {
  width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: transparent; 
  position: relative;
  box-shadow: 0 24px 40px -16px rgba(180, 50, 20, 0.4),
    0 10px 22px -6px rgba(140, 40, 10, 0.22),
    inset 0 2px 0 rgba(255, 220, 180, 0.4);
  cursor: pointer;
  transition: box-shadow 0.5s, filter 0.5s, opacity 0.5s;
}
.t-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 30%,
    transparent 70%,
    rgba(100, 20, 0, 0.22) 100%
  );
  pointer-events: none;
  z-index: 3;
}
.t-card:hover {
  transform: none;
  box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.6);
}

.t-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 22px; 
  position: relative;
  z-index: 2;
}

.t-card:nth-child(odd) .t-meta {
  right: 15%;
  left: auto;
}
.t-card:nth-child(odd):hover .t-meta {
  right: calc(100% - 10px);
  opacity: 1;
}

.t-card:nth-child(even) .t-meta {
  left: 15%;
  right: auto;
}
.t-card:nth-child(even):hover .t-meta {
  left: calc(100% - 10px);
  opacity: 1;
}

.t-meta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  background: rgba(30, 24, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fafaf7;
  padding: 16px 24px;
  border-radius: 16px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.t-card:hover .t-meta {
  opacity: 1;
  pointer-events: auto;
}
.t-meta .nm {
  font-weight: 700;
  font-size: 15px;
}
.t-meta .rl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ============ SECTION 3: STATS / CTA (UPDATED TO FLEXBOX) ============ */
.stats {
  padding: 80px 40px 140px;
  position: relative;
  z-index: 5;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 80px 70px;
  color: #f4edde;
  display: flex; /* Menggunakan Flexbox alih-alih Grid */
  flex-wrap: wrap; /* Agar elemen turun di HP */
  justify-content: space-between; /* Membuat jarak antara Teks di Kiri dan Tombol di Kanan */
  align-items: center; /* Sejajar vertikal di tengah */
  gap: 40px;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 0, 0.45),
    0 16px 32px -12px rgba(20, 8, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -3px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.stats-inner::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 90, 43, 0.35), transparent 65%);
  top: -200px;
  right: -100px;
  filter: blur(40px);
}
.stats-inner::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(253, 198, 138, 0.2),
    transparent 65%
  );
  bottom: -150px;
  left: 20%;
  filter: blur(30px);
}

.stats h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  flex: 1 1 400px; /* Memastikan teks tidak terlalu sempit */
}

.stats h3 em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-3), var(--orange-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meet-crew-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(43, 38, 36, 0.7); /* Background tombol agak abu-abu / gelap menyesuaikan desain gambar */
  backdrop-filter: blur(10px);
  color: #fafaf7;
  padding: 24px 32px; /* Dibuat lebih besar secara vertikal & horizontal */
  width: 100%;
  max-width: 420px; /* Maksimal lebarnya dibuat lebih besar */
  flex: 1 1 300px; /* Fleksibel mengisi sisa ruang kotak di kanan */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px; /* Teks dibesarkan */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  margin: 0; /* Menghapus margin auto bawaan agar mematuhi aturan letak flex */
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Border tipis untuk detail */
}

.meet-crew-btn-large:hover {
  transform: translateY(-3px);
  background: rgba(58, 52, 49, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.meet-crew-btn-large .icon-circle {
  width: 44px; /* Icon membesar */
  height: 44px;
  background: #ff5722;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.meet-crew-btn-large:hover .icon-circle {
  transform: rotate(45deg);
}

/* ========================================= */
/*               Responsive                  */
/* ========================================= */

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner {
    padding: 60px 50px;
  }
}

@media (max-width: 750px) {
  .nav {
    padding: 18px 18px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 100px 16px 40px;
  }
  .small-team {
    font-size: 10vw;
  }
  .big-results {
    font-size: 24vw;
  }
  .cards-row {
    height: 220px;
    top: 65%;
  }
  .card-1 { width: 80px; height: 110px; left: 0%; top: 20px; }
  .card-2 { width: 90px; height: 130px; left: 10%; top: 35px; }
  .card-3 { width: 110px; height: 150px; left: 22%; top: 15px; }
  .card-4 { width: 90px; height: 120px; left: 36%; top: 50px; }
  .card-5 { width: 130px; height: 180px; left: 46%; top: 0; }
  .card-6 { width: 95px; height: 130px; left: 62%; top: 40px; }
  .card-7 { width: 100px; height: 140px; left: 74%; top: 20px; }
  .card-8 { width: 80px; height: 110px; left: 87%; top: 35px; }
  
  .team-section {
    padding: 80px 20px 40px;
  }
  .team-grid {
    flex-direction: column; /* Mengubah list kru jadi bersusun di HP */
    align-items: center;
  }
  .stats {
    padding: 20px 20px 60px;
  }
  .stats-inner {
    flex-direction: column; /* Ini membuat teks ada di atas, dan tombol ada di bawah saat di HP */
    align-items: flex-start;
    padding: 40px 30px;
    gap: 32px; /* Jarak antara teks dan tombol di HP */
  }
  .meet-crew-btn-large {
    max-width: 100%; /* Memaksimalkan kepenuhan di HP */
    width: 100%;
  }
}