body {
  margin: 0;
  padding: 0;
  background: #0d0b02;
  color: #fff;
  /* font-family: Arial, sans-serif; */
  font-family: Afacad Flux, sans-serif;

  /* line-height: 20px; */
}

.container {
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 32px 0 24px;
  margin-bottom: 16px;
}

.logo {
  width: 56px;
}

.sign-in {
  background: #79c1ef;
  color: #181818;
  border: none;
  border-radius: 28px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.2s;
}

.sign-in:hover {
  background: #84e8ff;
}

main {
  display: flex;
  justify-content: space-between;
  /* align-items: flex-start; */
  margin-top: 4px;
  padding: 0 32px 0 32px
}

.left {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 350px;
  max-width: 600px;
  /* margin-top: 100px; */
}

.left h1 {
  font-size: 4rem;
  font-weight: 400;
  margin: 0 0 24px 0;
  line-height: 1.1;
}

.left p {
  color: #bdbdbd;
  font-size: 1.2rem;
  margin-bottom: 32px;
  margin-top: 0;
}

.learn-more {
  background: #79c1ef;
  color: #181818;
  border: none;
  border-radius: 28px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}

.learn-more:hover {
  background: #84e8ff;
}

.right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, calc((60vw - 88px) / 3));
  grid-template-rows: repeat(3, calc((100vh - 212px) / 3));
  gap: 24px;
  margin-right: 24px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.video-container .video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.video-container:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.play-overlay::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.7);
  mask: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><polygon points="20,15 50,30 20,45"/></svg>') center/contain no-repeat;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.img1 {
  grid-column: 1;
  grid-row: 1;
  margin-top: 64px;
}

.img2 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 64px;
}

.img3 {
  grid-column: 2;
  grid-row: 1;
}

.img4 {
  grid-column: 2;
  grid-row: 2;
}

.img5 {
  grid-column: 2;
  grid-row: 3;
}

.img6 {
  grid-column: 3;
  grid-row: 1;
  margin-top: 64px;
}

.img7 {
  grid-column: 3;
  grid-row: 2;
  margin-top: 64px;
}

.image-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #222;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

@media (max-width: 1600px) {

  /* html, body {
    overflow: auto;
  } */
  main {
    flex-direction: column;
    align-items: stretch;
  }

  .right {
    justify-content: center;
    margin-top: 32px;
  }

  .image-grid {
    grid-template-columns: repeat(3, calc((100vw - 114px) / 3));
    grid-template-rows: repeat(3, calc((100vw - 114px) / 3 / 1.8));
  }
}

@media (max-width: 900px) {

  /* html, body {
    overflow: auto;
  } */
  .image-grid {
    grid-template-columns: repeat(1, calc((100vw - 64px)));
    grid-template-rows: repeat(7, calc((100vw - 64px) / 1.8));
  }

  .img1 {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  .img2 {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .img3 {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }

  .img4 {
    grid-column: 1;
    grid-row: 4;
    margin-top: 0;
  }

  .img5 {
    grid-column: 1;
    grid-row: 5;
    margin-top: 0;
  }

  .img6 {
    grid-column: 1;
    grid-row: 6;
    margin-top: 0;
  }
  .img7 {
    grid-column: 1;
    grid-row: 7;
    margin-top: 0;
  }
}

/* Modal styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #181818;
  margin: auto;
  padding: 40px 32px 32px 32px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #79c1ef;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

#login-form label {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

#login-form input[type="text"],
#login-form input[type="password"] {
  background: #222;
  color: #fff;
  border: none;
  border-bottom: 1px solid #444;
  padding: 10px 8px;
  font-size: 1rem;
  border-radius: 4px 4px 0 0;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
  border-bottom: 1.5px solid #79c1ef;
}

.login-submit {
  margin-top: 18px;
  background: #79c1ef;
  color: #181818;
  border: none;
  border-radius: 28px;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.login-submit:hover {
  background: #84e8ff;
}

/* 
html, body {
  overflow: hidden;
}  */
