@import "tailwindcss";

:root {
  --fontcolor: #1A1F2E;
  --fontcolor-soft: #35405F;
  --colorgray: #ECEEF4;
  --accent-green: #8CC63F;
  --bordercolor: #B3BCD5;
  --softcolor: #F5F6F9;
  --dark: #131236;
}

.preset-h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 150%;
  color: var(--fontcolor);
  margin: 0;
  padding: 0;
}

.preset-p {
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  color: var(--fontcolor-soft);
  margin: 0;
  padding: 0;
}

.preset-poin {
  font-weight: 700;
  font-size: 18px;
  line-height: 155%;
}

header {
  width: 100%;
  height: 88px;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  background: #FFF;
  z-index: 10;
}

header img {
  width: auto;
  height: 40px;
}

header a {
  font-weight: 400;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0%;
}

body {
  font-display: swap;
}

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

.hero-section {
  position: relative;
  padding: 24px 0;
}

.hero-section > img.hero-bg-left,
.hero-section > img.hero-bg-right {
  position: absolute;
  bottom: 0;
  width: 50%;
  z-index: -1;
}

.hero-section > img.hero-bg-right {
  right: 0;
}

.hero .hero-image-wrapper {
  width: 360px;
  background: var(--colorgray);
  border-radius: 24px;
  padding: 24px;
}

.hero .hero-image-wrapper > img {
  width: 100%;
  height: auto;
}

.hero .hero-caption {
  flex: 1;
}

.hero .hero-caption .main-panel {
  background: var(--accent-green);
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero .hero-caption .sub-panel {
  display: flex;
  gap: 24px;
}

.main-panel > h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.5;
  color: #FFF;
  width: 80%;
}

.main-panel > p {
  color: #FFF;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  width: 60%;
}

.main-button {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 8px;
  gap: 0 8px;
  border: 1px solid var(--bordercolor);
  color: var(--fontcolor-soft);
  background: #FFF;
  box-shadow: 0px 1px 2px 0px #0D0D120F;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.sub-panel > .panel {
  padding: 32px;
  border-radius: 24px;
  background: var(--colorgray);
  display: flex;
  flex-direction: column;
}

.sub-panel > .panel:last-child {
  flex: 1;
}

.panel > h4 {
  font-weight: 700; 
  font-size: 24px;
  line-height: 150%;
  color: var(--fontcolor);
}

.panel span {
  font-weight: 400; 
  font-size: 18px;
  line-height: 155%;
  color: var(--fontcolor);
}

.panel .subscriber {
  display: flex;
  align-items: center;
}

.panel .subscriber > img {
  width: 24px;
  aspect-ratio: 1;
}

.main-section {
  padding: 120px 0;
}

.main-section.sm {
  padding: 64px 0;
}

.soft-bg {
  background: var(--softcolor);
}

.accent-bg {
  background: var(--accent-green);
}

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

.secondary-section {
  padding: 74px 0 0 0;
}

.mitra-belt {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mitra-belt > .mitra-belt-inner {
  width: max-content;
  height: 40px;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 48px;
  align-items: center;
  /* animation: belt 15s linear infinite; */
}

.mitra-belt > .mitra-belt-inner > img {
  height: 40px;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
}

.video-wrapper > iframe {
  border-radius: 16px;
}

.about-section {
  padding: 48px 0;
}

/* .about-section::before {
  padding: 48px 0;
} */

.about-section .about-text {
  position: relative;
  width: 40%;
  background: url('../../public/about.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 48px;
}

.about-section .about-text::before {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .5);
  content: '';
  backdrop-filter: blur(40px);
}

.about-section .about-text > h2,
.about-section .about-text > p {
  position: relative;
  z-index: 2;
}

.about-section .about-img {
  width: 60%;
}

.about-section .about-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (width < 768px) {
  .container {
    padding: 0 20px;
  }

  .preset-h3 {
    margin: 0 0 12px 0;
    padding: 0;
  }
  
  .preset-p {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: var(--fontcolor-soft);
    margin: 0;
    padding: 0;
  }
  
  .preset-poin {
    font-weight: 700;
    font-size: 18px;
    line-height: 155%;
  }

  .hero {
    flex-direction: column;
    gap: 24px;
  }
  
  .hero-section {
    position: relative;
    padding: 24px 0;
  }
  
  .hero-section > img.hero-bg-left,
  .hero-section > img.hero-bg-right {
    display: none;
  }
  
  .hero-section > img.hero-bg-right {
    right: 0;
  }
  
  .hero .hero-image-wrapper {
    width: 100%;
    background: var(--colorgray);
    border-radius: 24px;
    padding: 24px;
  }
  
  .hero .hero-image-wrapper > img {
    width: 100%;
    height: auto;
  }
  
  .hero .hero-caption {
    flex: 1;
  }
  
  .hero .hero-caption .main-panel {
    background: var(--accent-green);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  
  .hero .hero-caption .sub-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .main-panel > h1 {
    font-size: 24px;
    width: 100%;
  }
  
  .main-panel > p {
    width: 100%;
  }
  
  .main-button {
    width: 100%;
    justify-content: center;
  }
  
  .sub-panel > .panel {
    padding: 32px;
    border-radius: 24px;
    background: var(--colorgray);
    display: flex;
    flex-direction: column;
  }
  
  .sub-panel > .panel:last-child {
    flex: 1;
  }
  
  .main-section {
    padding: 24px 0;
  }
  
  .main-section.sm {
    padding: 24px 0;
  }
  
  .soft-bg {
    background: var(--softcolor);
  }
  
  .accent-bg {
    background: var(--accent-green);
  }
  
  .dark-bg {
    background: var(--dark);
  }
  
  .secondary-section {
    padding: 48px 0;
  }
  
  .mitra-belt {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .mitra-belt > .mitra-belt-inner {
    animation: belt 15s linear infinite;
  }
  
  .mitra-belt > .mitra-belt-inner > img {
    height: 40px;
  }
  
  .video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
  }
  
  .video-wrapper > iframe {
    border-radius: 16px;
  }
  
  .about-section {
    padding: 48px 0;
  }
  
  .about-section .about-text {
    position: relative;
    width: 100%;
    background: url('../../public/about.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 48px;
  }
  
  .about-section .about-text::before {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .5);
    content: '';
    backdrop-filter: blur(40px);
  }
  
  .about-section .about-text > h2,
  .about-section .about-text > p {
    position: relative;
    z-index: 2;
  }
  
  .about-section .about-img {
    width: 100%;
  }
  
  .about-section .about-img > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
}

@keyframes belt {
  to {
    transform: translateX(-50%);
  }
}